Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Michael Kay <michael.h.kay@nt...> - 2002-03-26 11:33:22
|
This looks like bug http://sourceforge.net/tracker/index.php?func=detail&aid=509821&group_id=298 72&atid=397617 which should be cleared in 6.5.1. Which version are you using? Michael Kay Software AG home: Michael.H.Kay@... work: Michael.Kay@... > -----Original Message----- > From: saxon-help-admin@... > [mailto:saxon-help-admin@...]On Behalf Of > David Penton > Sent: 26 March 2002 09:59 > To: saxon-help@... > Subject: [saxon] How do I suppress a namespace declaration for "xml:" > using Saxon? > > > I posted the question below on the mulberry tech list, and > got one response > response to the effect that the behavior I am observing is > not expected of > an xslt processor. Hence my re-post here. > > 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. > > Neither the stylesheet nor the input doc contain any such declaration. > > I know that namespace prefixes "xml" (and case variations) > are reserved, so > the > declaration above should be unnecessary. Is it harmful? > What do I do to > suppress it? > > - Dave - > > > > _______________________________________________ > saxon-help mailing list > saxon-help@... > https://lists.sourceforge.net/lists/listinfo/saxon-help > |