[XSL-LIST Mailing List Archive Home]
how to refer to xml elements when using the document() function
I have been searching for the use of the document() function but I have
found very little information and in some cases some of the examples didn't
work when I tried them.
I have to work with two different xml sources and I've been using document
() but my question is what syntax to use to refer to individual elements
belonging to 2 different input sources. I'm using xt and so far the only
result I get is no result or the whole xml document is pasted into the
I have tried:
<xsl:variable name="cmissions"><xsl:value-of select="document
and then refer to elements in the following way:
<xsl:value-of select="$cmissions/mission/country_code"/>. This gives me an
"unable to resolve node-set error".
I also need to get the contents of <misscity> for each <hom_country> ie
hom_country_code and hom_country have to be compared and the corresponding
city has to be part of the output. How do I refer to each hom_country and
I'd appreciate it if you could help.
Teresa Mairal Barreu
Public Diplomacy Division
Images of Australia Branch
International Media Strategies Section
Australian Department of Foreign Affairs and Trade
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list