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

RE: Differing behavior of Xalan and Saxon with namespa

Subject: RE: Differing behavior of Xalan and Saxon with namespaces. Who's right?
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Thu, 13 Mar 2003 14:53:21 -0500
xalan extra namespaces
Both Xalan and Saxon are correct.  True, the Xalan output declares an
extra namespace, but the FitnessCenter element does not belong to that
namespace. So the presence of the declaration has no effect on the
interpretation of the document.

Cheers,

Tom P

[Roger L. Costello]

> I have observed a difference in behavior of Xalan and Saxon with
> namespaces.  Consider this stylesheet:
> 
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 xmlns:fit="http://www.keeping-fit.org"
>                 version="1.0">
>  
>     <xsl:output method="xml"/>
> 
>     ...
> 
> </xsl:stylesheet>
> 
> Note the namespace declaration in the stylesheet: 
> 
>     xmlns:fit="http://www.keeping-fit.org"
> 
> When I run Xalan I get this output:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <FitnessCenter xmlns:fit="http://www.keeping-fit.org">
>     ...
> </FitnessCenter>
> 
> Observe that the namespace declaration from the stylesheet has been
> carried over to the result document.
> 
> Now, here is the output from running Saxon:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <FitnessCenter>
>     ...
> </FitnessCenter>
> 
> Notice that the namespace declaration from the stylesheet was NOT
> carried over to the result document.
> 
> Which is correct - Xalan or Saxon?  /Roger
> 
> 

 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.