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

XSL namespace output inconsistency

Subject: XSL namespace output inconsistency
From: "Kevin L. Cobb" <kevin.cobb@xxxxxxxxxxxx>
Date: Fri, 2 Sep 2005 14:28:00 -0400
xsl namespace output
(Not sure this is the correct forum for this question since it mixes
Java with XSL, but what the heck)

I am running an XSL against an XML document. The XSL changes the
namespace of some internal elements. When I run this on my local machine
(Win XP) I get the result I expect ... the namespace and declarations
gets added to the document as expected. Something like this:

      <ruleMsg>
         <ruleResult>
            <ee:ADT xmlns:ee="http://www.mydomain.com/ee"
xmlns:eea="http://www.mydomain.com/eea">
               <ee:MessageInformation>

<eea:DateTimeOfMessage>20050601</eea:DateTimeOfMessage>
		   </ee:MessageInformation>
		</ee:ADT>
	  </ruleResult>
	</ruleMsg>

However, when this is run on another machine (AIX), the namespace
prefixes are getting added but not the namespace declarations. Like
this:

      <ruleMsg>
         <ruleResult>
            <ee:ADT>	<!-- Missing namespace declarations -->
               <ee:MessageInformation>

<eea:DateTimeOfMessage>20050601</eea:DateTimeOfMessage>
		   </ee:MessageInformation>
		</ee:ADT>
	  </ruleResult>
	</ruleMsg>

I have to think that this is a difference between the parser being used
between the two machines. However, I've tried to set up the two
instances to use the same parser. The JRE on the AIX machine has the
jaxp.properties file set with these results:


javax.xml.transform.TransformerFactory=org.apache.xalan.processor.Transf
ormerFactoryImpl

javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFacto
ryImpl

javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Document
BuilderFactoryImpl

When I run the parse on my local machine, I set the -D options on the
Java call to these same values.


Any help would be much approciated.

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.