[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Trouble with namespaces and running identity trans

Subject: Re: Trouble with namespaces and running identity transform on XHTML
From: Kevin Jones <kjones@xxxxxxxxxxx>
Date: Wed, 10 Mar 2004 00:08:04 +0000
xslt trouble with namespaces
On Tuesday 09 March 2004 21:49, James J. Ramsey wrote:
> I've tried variants on this with the
> exclude-result-prefixes attribute of xsl:stylesheet
> and also tried messing with the xsl:namespace-alias
> element, but can't seem to this to produce the same
> output on both xsltproc and Saxon, and I keep getting
> invalid output with attributes like xmlns="" or
> xmlns:h="http://www.w3.org/1999/xhtml".
>

Hi James,

I would think the problem is that what you are thinking of as  
"invalid output" is in fact correct for XSLT. The processors can 
and will add namespace decalrations like xmlns="" if they are 
needed to preserve the namespaces of the elements/attributes you 
are generating and different processors do this in different 
ways.

Perhaps a way forward would be to state what type of transform 
you would like to perform on the XHTML and I am sure somebody 
will be along very quickly to help.

Kev.





 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.