Re: Referring to instance data in a stylesheet

Posted by Duane Gran on
URL: https://discuss.orbeon.com/Referring-to-instance-data-in-a-stylesheet-tp26988p26993.html

Mathew,

You would reference the instance as follows:

<xsl:for-each select="doc('input:instance')">

Duane

On Jan 20, 2006, at 10:11 PM, Matthew Graham wrote:

> Hi,
>
> I have a xhtml page in which I am also declaring xsl:version="2.0"  
> at the top since I need to dynamically generate stuff based on the  
> output of a pipeline. However, there are static elements that I am  
> defining in an xforms:instance at the top of the page and I was  
> wondering how I can access these in an xsl statement lower down:
>
> <html xsl:version="2.0">
> <head>
> <xforms:models>
> <xforms:instance id="types">
>  <type>...
>  <type>...
>  ...
> </xforms:instance>
> ...
> </xforms:model>
> </head>
> <body>
> ...
> <xsl:for-each select="instance('types')">
> ...
> </xsl:for-each>
> </body>
> </html>
>
>    Cheers,
>
>    Matthew
>
>
> --
> You receive this message as a subscriber of the ops-
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/ 
> wws



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws