This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: how to refer to xml elements when using the document() function
- To: xsl-list at mulberrytech dot com
- Subject: Re: how to refer to xml elements when using the document() function
- From: Michael Hoffmann <m-hoffmann at ti dot com>
- Date: Tue, 28 Nov 2000 08:06:07 +0100
- Organization: Texas Instruments
- References: <OFE75F0C3A.2F95C367-ONCA2569A5.001B78E9@dfat.gov.au>
- Reply-To: xsl-list at mulberrytech dot com
teresa...
> <xsl:variable name="cmissions"><xsl:value-of select="document
> ('../missions/missions.xml', /)"/></xsl:variable>
try <xsl:variable name="cmissions"
select="document('../missions/missions.xml')/missionspage" />
and then refer to the elements like
<xsl:value-of select="$cmissions//mission/country_code" />
this worked for me (cocoon) hope it helps...
michael
p.s. more about document function see...
http://www.dpawson.co.uk/xsl/N2602.html
(and for sure the W3C Sites...)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list