XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Arun MPSubject: Problem with transforming XMLs containing namespaces.
Author: Arun MP
Date: 10 Aug 2006 12:45 AM
We are able to transform an XML using an XSLT and create an HTML output using Xalan, but when the XML has any namespace in it and when we try to transform it, we get the output as a text format ie, without any HTML tags in it.

Postnext
Minollo I.Subject: Problem with transforming XMLs containing namespaces.
Author: Minollo I.
Date: 10 Aug 2006 01:10 PM
Arun,
what Stylus Studio version and build number are you running? (Help > About).

Can you post a simple example (XSLT + XML) of the files you are using?

Posttop
James DurningSubject: Problem with transforming XMLs containing namespaces.
Author: James Durning
Date: 10 Aug 2006 05:14 PM
You have at least a couple options.
1. Name the namespace, and change all your xpaths to use these namespaces.
eg, instead of <xsl:template match="someelem">
you have <xsl:template match="ddy:someelem">
and a xmlns:ddy="somenamespace.com" in your stylesheet node.

2. Change your xpaths to use wildcards, and use the local-name() function. eg.
<xsl:template match="*[local-name()="someelem"]>
This solution is better if you have no idea what namespace your xml is coming in as.

Would need to see a snippet of your xml/xslt to say anymore.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.