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
Ali EbrahimSubject: Removing Prefix namespaces
Author: Ali Ebrahim
Date: 19 Dec 2006 02:42 AM
Hello,


My requirement is when i execute my xslt against my source xml, the outputs target xml should not contain prefix namespaces against each element.


The CRM product we using, Siebel v7.8.x, can't interpret and errors out if the output target xml contains prefixed namespaces against the elements.


Are you able to let me know what I can set in the xslt file or maybe in the source/target xsd that will prevent the prefixed namespaces from appearing in the output target xml?


Attached are 4 files:
Source XSD and XML Files:
- XMLTestBin_1-N43M.xsd
- XMLTestBin_1-N43M.xml

Target XSD:
ListOfOeEaiSpLossNotification-Inbound.xsd

My Created xslt file based on the above:
SC22Response.xslt

Output Target XML:
OutputTarget.xml…..note all prefix namespaces against each element


Thanx and Regards,
Ali


UnknownListOfOeEaiSpLossNotification-Inbound.xsd


UnknownOutputTarget.xml


UnknownSC22Response.xslt


UnknownXMLTestBin_1-N43M.xml


UnknownXMLTestBin_1-N43M.xsd

Posttop
James DurningSubject: Removing Prefix namespaces
Author: James Durning
Date: 19 Dec 2006 10:01 AM
The key is changing your xslt.

Instead of using:
<a:SiebelMessage MessageId="SPLossNotification" IntObjectFormat="Siebel Hierarchical" MessageType="Integration Object">
use
<SiebelMessage MessageId="SPLossNotification" IntObjectFormat="Siebel Hierarchical" MessageType="Integration Object" xmlns="http://www.siebel.com/xml/OE%20EAI%20SP%20Loss%20Notification%20-%20Inbound">

and remove all the other prefixes. 'a:'

 
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.