|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: questions regd namespaces
<center> <all-centers xmlns = "http://www.nda-centres.com/namespaces"> That is a center element in no namespace with child a all-centers element in the namespace http://www.nda-centres.com/namespaces (Do you really want to change namespaces at that point?) An Xpath that selects that would be /center/x:all-centers where x: has been bound to the http://www.nda-centres.com/namespaces namespace so you want <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.nda-centres.com/namespaces"> <xsl:template match="/"> <xsl:value-of select="/center/x:all-centers"/> Xpaths like attribute names do not use the default namespace binding: unprefixed QNames in XPath always refer to elements or attributes in no namespace. David (This is a FAQ) _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. 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
|

Cart








