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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Larry AiSubject: mixed content mapping
Author: Larry Ai
Date: 03 Oct 2008 10:10 AM
Can I map mixed content using xml-to-xml data mapper?

Such as: map <temp>H<sub>2</sub>O</temp> to <mf>H<b>2</b>O</mf>

Posttop
Alberto MassariSubject: mixed content mapping
Author: Alberto Massari
Date: 06 Oct 2008 10:38 AM
Hi Larry,
Mapper can help you mapping the XML elements, but in order to pick the right text node you will have to complete the mapping by manually adding the <xsl:value-of select="temp/text()[2]"/> instructions.
However, if your mapping is only going to change the names of the XML elements, it's better if you write an identity transformation that preserves all the data and only changes the names.

Hope this helps,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.