xsl-list
[Top] [All Lists]

RE: Conditionally compare dates from two XML docs?

2003-02-21 02:58:19
How do I access the 'date1' from the original source tree, 
now that I'm processing the external document 'AddNews.xml'? 
i.e, change context from one document to another?

Bind a variable to the original context before calling document(), and
then use path expressions that start with that variable:

<xsl:variable name="d" select="."/>

  ...


<xsl:value-of select="$d/x/y/z"/>

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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