xsl-list
[Top] [All Lists]

RE: [xsl] xmlns print and enumerate

2006-03-08 14:44:36
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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>