|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: More namespace fun?
David Carlisle
>well grep agrees with me that it isn't used
>(if we are talking about the same file)
Yes we are :-(
Just as I thought.
{Sound of head hitting basket}
>
>
>change your template to
>
><xsl:for-each select="namespace::*">
> NS name: <xsl:value-of select="name(.)"/>
> NS value : <xsl:value-of select="."/>
></xsl:for-each>
>
></tag>
Far more interesting.
So, for instance the para tag has
a whole host of namespaces 'attached' to it.
E.g.
NS name: ns1
NS value : http://ns1.com
NS name: ns3
NS value : http://ns3.com
NS name: long
NS value : A long namespace uri
I may as well keep on with the daft questions.
I know this is a contrived example, but
what earthly use is this information?
I also note that the namespaces are provided
in document order, almost the reverse of
any interest that I might have in them.
Regards, DaveP
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








