This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]