|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Doesn't see elements when using namespaces
//CodingNoticesP6P6B"
That selects all CodingNoticesP6P6B in no-namespace in the whole
document, and then since you are using value-of in xslt1, it discards
all but the first.
However your document has no such elements, it has CodingNoticesP6P6B
in namespace http://www.govtalk.gov.uk/taxation/CodingNoticesP6P6B/2
so add
xmlns:c2="http://www.govtalk.gov.uk/taxation/CodingNoticesP6P6B/2"
to your xsl stylesheet and use
select="c2:CodingNoticesP6P6B"
so you select elements in the right namespace and only children of the
current element.
Similarly remove other uses of // and refer to other elements in the
right namespace,
<xsl:value-of select="Name"/>
<xsl:value-of select="TaxCode"/>
should also both use c2: namespace.
David
(This is a FAQ)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








