xsl-list
[Top] [All Lists]

Re: XSLT document() function!!!

2003-08-07 02:30:18

<xsl:variable name="XMLfile" select="document('myxmlfile.xml')"/>

now the content of the variable "XMLfile" is a nodeset. the first node is the 
root node of 'myxmlfile.xml'.

You can access the nodes in the variable like:

<xsl:value-of select=$XMLfile/child/@attOfChild/>

Hope this helps

 

 

xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com schrieb am 07.08.03 11:06:45:

hi,

Can anyone tell me how to use the XSLT document() function in order to 
access another XML document different from the input xml?????

Thanks...

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



______________________________________________________________________________
Mehr Spass mit E-Mails - Smilyes, Bilder, Briefpapier und Design-Mails
WEB.DE FreeMail Deutschlands beste E-Mail - http://f.web.de/?mc=021140


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



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