xsl-list
[Top] [All Lists]

Re: returning to initial document after changing context via document()

2005-02-22 05:19:20

tis a faq.

/ means the root node of the current document (ie the document that the
current node is in)

so this

  <xsl:for-each select="/vbtn:issue/vb

is looking below _that_ root_

you want

  <xsl:for-each select="$input/vbtn:issue/vb

where

<xsl:variable name="input" select="/"/>

is a stored reference to your original root node, eg at the top level of
your stylesheet.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>