[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to output a xmlns:prefix attribute (special ca
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|