Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: removing spurious namespace declarations on XSLT output >Thread Next - Re: removing spurious namespace declarations on XSLT output Re: removing spurious namespace declarations on XSLT outputTo: NULL Date: 5/4/2007 9:59:00 AM the issue is that I don't know what namespace prefix might have been used in the source document. in the output document I want to use the same namespace I'm using in the stylesheet I did investigate <xsl:namespace-alias> but I can't see how this would help. "Joe Kesselman" <keshlam-nospam@c...> wrote in message news:kd-dnd6IwcfBf6jbnZ2dnUVZ_rylnZ2d@c...... > Andy Fish wrote: >> I have used something similar to this technique. unfortunately yours >> creates a namespace node on the copied node of the result tree and I >> wanted to just use the prefix. > > XSLT is namespace-aware. When you copy a node, you copy it with its > namespace context, because that's part of the meaning of the node. > > If you really want to break namespace-aware behavior, then yes, > hand-constructing a new node is one solution. But I strongly suspect that > what you're really looking for is > http://www.w3.org/TR/1999/REC-xslt-19991116#element-namespace-alias > > > -- > () ASCII Ribbon Campaign | Joe Kesselman > /\ Stamp out HTML e-mail! | System architexture and kinetic poetry | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
