[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How do I suppress a namespace declaration for "xml:" u

Subject: 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
david penton
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.