[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

Subject: Re: How to output a xmlns:prefix attribute (special case)
From: "Richard Gruet" <rgruet@xxxxxxxxxxxxx>
Date: Wed, 11 Jul 2001 20:13:23 -0700
axmlns
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.