Using Xsl-copy and/or Xi:include

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using Xsl-copy and/or Xi:include

Ganaphathy, Karunamoorthy

Hey,

 

1. I wanted to include a certain xml file depending on the user login. How do I do that? When I tried that as below, the include is not happening as because I think it is needed in compile time. Is there a way I do it in run time?

Note: xi:include works if not in if condition.

<xforms:action ev:event="xforms-valid" if="instance('security-instance')/user = 'admin'">

<xi:include href="../../metadata_editor/kganaphathy_xmde/ANIL_TEST2_VOB/fdsys/implementation/cmspillar/editor/WebContent/common/bills.xml"/>

</xforms:action>

2. I tried xsl:copy it is not working on both time? not even transforming any clue?

<xsl:copy-of select="doc('../../editor/common/bills.xml')"/>

 

Thanks for your time.

 

Thanks

 

Karun

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Using Xsl-copy and/or Xi:include

Betty Harvey
You should be able to use <xforms:group> to handle the decision
point:

<xforms:group ref="instance('security-instance')/user[. = 'admin']">
   <xi:include href="..."/>
</xforms:group>

Good luck!

Betty

> Hey,
>
> 1. I wanted to include a certain xml file depending on the user login. How
> do I do that? When I tried that as below, the include is not happening as
> because I think it is needed in compile time. Is there a way I do it in
> run time?
> Note: xi:include works if not in if condition.
> <xforms:action ev:event="xforms-valid"
> if="instance('security-instance')/user = 'admin'">
> <xi:include
> href="../../metadata_editor/kganaphathy_xmde/ANIL_TEST2_VOB/fdsys/implementation/cmspillar/editor/WebContent/common/bills.xml"/>
> </xforms:action>
> 2. I tried xsl:copy it is not working on both time? not even transforming
> any clue?
> <xsl:copy-of select="doc('../../editor/common/bills.xml')"/>
>
> Thanks for your time.
>
> Thanks
>
> Karun
>
>
>

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[hidden email]                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Using Xsl-copy and/or Xi:include

Ganaphathy, Karunamoorthy
Great!!!! It works. Appreciate your help!

Thanks
Karun


-----Original Message-----
From: Betty Harvey [mailto:[hidden email]]
Sent: Friday, October 30, 2009 4:21 PM
To: [hidden email]
Cc: Ganaphathy, Karunamoorthy
Subject: Re: [ops-users] Using Xsl-copy and/or Xi:include

You should be able to use <xforms:group> to handle the decision
point:

<xforms:group ref="instance('security-instance')/user[. = 'admin']">
   <xi:include href="..."/>
</xforms:group>

Good luck!

Betty

> Hey,
>
> 1. I wanted to include a certain xml file depending on the user login. How
> do I do that? When I tried that as below, the include is not happening as
> because I think it is needed in compile time. Is there a way I do it in
> run time?
> Note: xi:include works if not in if condition.
> <xforms:action ev:event="xforms-valid"
> if="instance('security-instance')/user = 'admin'">
> <xi:include
> href="../../metadata_editor/kganaphathy_xmde/ANIL_TEST2_VOB/fdsys/implementation/cmspillar/editor/WebContent/common/bills.xml"/>
> </xforms:action>
> 2. I tried xsl:copy it is not working on both time? not even transforming
> any clue?
> <xsl:copy-of select="doc('../../editor/common/bills.xml')"/>
>
> Thanks for your time.
>
> Thanks
>
> Karun
>
>
>

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[hidden email]                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws