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
Neal WaltersSubject: Group Move
Author: Neal Walters
Date: 05 Sep 2006 02:40 PM
I'm trying to start a map using the XSLT Mapper GUI, then I will customize in the XSLT code.

When you drag a group element on the source doc to a group element on the target doc - is there any trick to get it to map all data under the node? In my case the source and target have the same schema.

Or do I have to drag and drop the dozens of elements under it?


Thanks,
Neal Walters

Postnext
Ivan PedruzziSubject: Group Move
Author: Ivan Pedruzzi
Date: 05 Sep 2006 03:53 PM

If you need to copy verbatim all child elements add the following instruction to the for-each body

<xsl:copy-of select="*"/>

For example

<xsl:for-each select="books/book">
<Book>
<xsl:copy-of select="*"/>
</Book>
</xsl:for-each>



Ivan Pedruzzi
Stylus Studio Team

Postnext
Neal WaltersSubject: Group Move
Author: Neal Walters
Date: 05 Sep 2006 05:19 PM
Also <xsl:copy-of select="@"/>
to copy the attributes.

I hate to keep comparing to Biztalk, but that's why they call their "Mass Copy" functoid. Biztalk also allows you to hold down the shift key when you drag and drop, and this connects all the children on the GUI diagram.

So this is one of those cases I cannot use your drag and drop GUI.
I just thought for sure this would be a drag and drop feature you would have handled.

Neal Walters

Posttop
Ivan PedruzziSubject: Group Move
Author: Ivan Pedruzzi
Date: 05 Sep 2006 09:08 PM

if you need to copy elements an attributes use

<xsl:copy-of select="*|@*"/>

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.