Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2007, 01:03 PM
Registered User
 
Join Date: Dec 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Select XML Node - Name space qualified

I have to parse/select a namespace qualified node, where i don;t have idea of that namespace value and hence i need a generic XPATH expression or some thing similar to select the node.


will [*/local-name()='my node'] helps ? Tried with this got a different error.

Reg
aintvoguish

 
Old December 28th, 2007, 02:07 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Code:
*[local-name() = 'foo']
selects all elements where the local name is 'foo'.
With XSLT/XPath 2.0 you can also use
Code:
*:foo
 
Old December 28th, 2007, 03:45 PM
Registered User
 
Join Date: Dec 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Martin,
Can you please explain the above expression.

does '*' represents the namespace of each context node?

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Select range node Christ M XSLT 4 January 25th, 2008 12:47 PM
how to append child node after an node in XML + C# vishnu108mishra XML 5 November 13th, 2007 05:30 AM
XML: How to select a node with ' in it using Xpath guozai BOOK: Professional C#, 2nd and 3rd Editions 1 October 6th, 2006 12:37 PM
Help: Select every node except these nodes arcuza XSLT 8 May 25th, 2005 08:07 AM
select single node bcadmin BOOK: XSLT Programmer's Reference, 2nd Edition 1 November 10th, 2004 12:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.