This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to output a xmlns:prefix attribute (special case)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] How to output a xmlns:prefix attribute (special case)
- From: "Richard Gruet" <rgruet at intraware dot com>
- Date: Wed, 11 Jul 2001 20:13:23 -0700
- Organization: Intraware, Inc
- References: <20010712012131.12765.qmail@web14502.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
William Lam wrote:
> This will allow you to put the xmlns:prefix attribute in SAXON
> <xsl:attribute name="prefix:blah" namespace="URI">blah</xsl:attribute>
> However, you will be left with this:
> xmlns:prefix="URI" prefix:blah="blah"
>
> So, if you can live with the blah, this is the way to go.
Thanks for the hint, but I'm afraid the target output element
(xsd:schema) will not accept those blah...
> Otherwise switch to Xalan, and you can just do a
>
> <xsl:attribute name="xmlns:prefix"
> namespace="">URI</xsl:attribute>
>
> Note: Xalan does not conform to the XSLT standard in this aspect.
I was using Xalan before and I switched to Saxon ! I'd prefer to conform
to the XSLT standard, if possible, but is there a way ?
For now, I generate a fake "axmlns:prefix=URI" to avoid the problem
and.... replace it with "xmlns" in the output file. I wish I could find a
more elegant solution ;-)
Richard Gruet
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list