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
Abhishek SalviSubject: Need Help In XSLT Mapping
Author: Abhishek Salvi
Date: 15 Oct 2008 03:26 AM
Hi All,

I have a scenario in which I need to perform the following mapping logic:

Source Structure:
<SrcMsg>
<Node1>
<Details>"<Name>XYZ</Name><Description>Desc1</Description><Id>ID123</Id>"</Details>
</Node1>
</SrcMsg>

Target Structure:

<TrgMsg>
<Node1>
<TargetID>ID123</TargetID>
</Node>
</TrgMsg>

i.e. I need to extract the data from Id tag within Details of Source message.
The Details node will have the following data as string:
<Name>XYZ</Name><Description>Desc1</Description><Id>ID123</Id>

How to perfrom this using XSLT Mapping.

Thanks,
Abhishek.

Postnext
Alberto MassariSubject: Need Help In XSLT Mapping
Author: Alberto Massari
Date: 21 Oct 2008 09:01 AM
Hi Abhishek,
if you have already loaded the source and target tree in XSLT Mapper with the XML/XSD you are going to use, you can just drag a link from Id to TargetID. Or were you asking a different question?

Alberto

Posttop
Ivan PedruzziSubject: Need Help In XSLT Mapping
Author: Ivan Pedruzzi
Date: 21 Oct 2008 04:03 PM

having double quotes around your tags does not make it a string but rather a mixed content.

Are you sure you have markup inside the element "Details" rathern the escape text that looks like this?

<SrcMsg>
<Node1>
<Details>"&lt;Name&gt;XYZ&lt;/Name&gt;&lt;Description&gt;Desc1&lt;/Description&gt;&lt;Id&gt;ID123&lt;/Id&gt;"</Details>
</Node1>
</SrcMsg>

If you have something like the above XSLT would not work for you


Hope this help
Ivan Pedruzzi
Stylus Studio Team

 
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.