Referring to instance data in a stylesheet

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

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 [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