|
Subject: [xsl] How do I suppress a namespace declaration for "xml:" using Saxon? From: "David Penton" <dpenton@xxxxxxxxxxxxx> Date: Mon, 25 Mar 2002 21:39:00 -0500 |
I am using saxon to convert a bunch of files that used the attribute
"xml-lang" instead of "xml:lang" (this was because of a historical bug in
XMetal, I am told).
To make a long story short, I have a template in my transform like this:
<xsl:template match="@xml-lang">
<xsl:attribute name="xml:lang">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
This works, except I get declaration like this on the output element:
<thingy xmlns:xml="xml" xml:lang="en">. . .etc.
I know that namespace prefixes xml (and case variations) are reserved. The
declaration above is unnecessary. Is it harmful? How would I suppress it?
Thanks. And everyone please say a prayer for me, as I seem to be stuck
permanently at the beginner level, even after a year of using xslt.
Probably it was all that beer I drank as an undergraduate.
- Dave -
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL question, Jeni Tennison | Thread | Re: [xsl] How do I suppress a names, David Carlisle |
| [xsl] XSL question, Manoj Jha | Date | Re: [xsl] Calling SAXON parser from, David Penton |
| Month |