|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: removing namespaces
I'm not totally sure of what you mean by "hiding" a namespace, which is
impossible. Either you remove it (which means you change the QName of
the elements) or you leave it in. Cleaning up namespaces (putting there
declarations on top of the XML) is possible by declaring the namespaces
in the xsl:stylesheet declaration element (and I'm sure there are other
ways, but I believe that's the way I did it). Then, all you need to do
is use the prefixes in your element names:
<xsl:element name="myns:method">.... etc using an AVT is also ok, as long as it resolves to an existing namespace. Btw, your code is not complete and as it is, it is a bit misty for me why it creates the output you say it does (you do not show declarations for prefixes "scrcml" and "srcml-new" which are the ones you wanted out of your way because they were not used in all elements, right?). Anyway, bottom line is: often it is easiest to declare namespaces as early as you can so that you have a clearer document to read. Cheers, -- Abel Braaksma Garvin Riensche wrote: Hello,
|
Back To School Sale!Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop. 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
|






