|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xmlns print and enumerate
> I have a couple of questions for XSLT 1.0:
>
> Given the document
>
> <a/>
>
> howe do I transform it to:
>
> <b xmlns:h='http://foo'/>
<xsl:template match="/">
<b xmlns:h='http://foo'/>
</xsl:template>
> and given
>
> <a xmlns:h='http://foo'/>
>
> how do I transform it to:
>
> <b>
> <ns prefix='h' uri='http://foo'/>
> </b>
>
<xsl:template match="a">
<b>
<xsl:for-each select="namespace::*">
<ns prefix="{name()}" uri="{.}"/>
</
</
</
Michael Kay
http://www.saxonica.com/
|
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








