[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Doesn't see elements when using namespaces

Subject: RE: Doesn't see elements when using namespaces
From: "Colin Simpson" <Colin.Simpson@xxxxxxxxxxxxxxx>
Date: Thu, 17 Aug 2006 14:30:13 +0100
colin simpson recruitment
David, thanks very much.  I did check the FAQ, but I obviously wasn't
searching using the correct words to find the solution.

Kind regards

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 17 August 2006 13:14
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Doesn't see elements when using namespaces


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
to your xsl stylesheet and use
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.

(This is a FAQ)

 Blue Arrow is official sponsor and recruitment partner of Team GB, the
 British Olympic Association and OPEN, the Olympic and Paralympic
 Employment Network.

 Your company can become a member of OPEN - the Olympic and Paralympic
 Employment Network today, for free - visit www.bluearrow.co.uk/OPEN

 Find out more about all Blue Arrow recruitment solutions - visit



This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.  If you have received this email in error please notify
the system manager.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.