This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to refer to xml elements when using the document() function


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]