Subject: Re: [xsl] Copy idiom and overriding namespaces: trying to be smart, finding approaches From: Abel Braaksma Online <abel.online@xxxxxxxxx> Date: Thu, 27 Jul 2006 01:30:37 +0200 |
Abel Braaksma www.nuntia.nl
Yes, that's a good solution. It doesn't copy any namespaces that aren't actually used, but that's OK if your source document doesn't use QNames-in-content (such as xsi:type="xs:integer"). And it doesn't change the namespace of any attributes.
You can read namespaces nodes using the namespace axis, and in 2.0 you can
create namespace nodes using the xsl:namespace instruction; but none of this
changes the name of an element or attribute. Element and attribute names
consist of a namespace URI plus local name, and to change the namespace URI
of the node you need to use the namespace attribute of xsl:element or
xsl:attribute.
Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Copy idiom and overriding, Michael Kay | Thread | [xsl] table preceding row, child en, Sonja.Hendrick |
RE: [xsl] Copy idiom and overriding, Michael Kay | Date | RE: [xsl] Removing Blank pages from, Shailesh Shinde |
Month |