Subject: Re: [xsl] How to output a xmlns:prefix attribute (special case) From: "Richard Gruet" <rgruet@xxxxxxxxxxxxx> Date: Wed, 11 Jul 2001 20:13:23 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to output a xmlns:pre, William Lam | Thread | Re: [xsl] How to output a xmlns:pre, David Carlisle |
Re: [xsl] How to output a xmlns:pre, William Lam | Date | Re: [xsl] cutting it short!, Adam Turoff |
Month |