This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to output a xmlns:prefix attribute (special case)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]