Jeremias Maerki wrote:
document('urltoyourxmlfile')/mystuff/entry[position() = 3]/text
...
If you wrap the result using node-set() function
(See Xalan documentation) you can even apply templates from your
stylesheet to it.

No need for doing this: <xsl:apply-templates select="document('urltoyourxmlfile' )/mystuff/entry[position() = 3]/text"/>

works.
You can even do
 <xsl:variable name="mystuff" select="document('urltoyourxmlfile')/mystuff"/>
 ...
  <xsl:value-of select="$mystuff/entry[position() = 3]/text"/>

or whatever. Using keys to select stuff from $mystuff is
a bit trickier.
Questions about details should be sent to the XSL list
  http://www.mulberrytech.com/xsl/xsl-list/

J.Pietschmann





Reply via email to