[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Match prefix
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> References: <FBE4EA33792BD4118DE300D0B723F9686FE62B@jupiter> Subject: Re: Match prefix Date: Thu, 30 Aug 2001 16:18:51 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Hi Viktor! > How Can I match the Elements with prefix(e.g. Project:InvoiceNum) which are > in xml file? > if I use <xsl:value-of select="Project:InvoiceNum" /> in my xsl, It returns > null value. If (1) you have at least one element named Project:InvoiceNum in your document and (2) that element has at least one child node (which could be simply text content) and (3) <xsl:value-of select="Project:InvoiceNum" /> returns a null value that means that ProjectInvoiceNum isn't a child of the context node at the point where the <xsl:value-of ..> is being invoked. So you'll need to add some path information to the value of the select attribute, or maybe alter your enclosing template so that the context node is different when it fires. If that answer doesn't make sense to you, it might be worth your while spending some time studying some tutorial material to get a clearer grasp of XSLT's way of working and its terminology. That would allow you to post your problems in a way that might get you more help. Michael --------------------------------------------------------- Michael Beddow http://www.mbeddow.net/ XML and the Humanities page: http://xml.lexilog.org.uk/ --------------------------------------------------------- XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|