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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + get the current position as pa... (2)
-> - unable to get Parameter from x... (1)
-> + get key value from xslt to jav... (2)
-> + Xpath insensitive search? (3)
-> + relative path 2 (10)
-> + sum and group attrs, list only... (3)
-> - Simple multiplication.... but ... (1)
-> + .NET issue (2)
-> + Grouping items (9)
-> - Group Move (4)
-> ->Group Move
-> ->Group Move
-> ->Group Move
-> + Problem with DateTime manipula... (2)
-> + xls fo positioning in block (2)
-> + Filtering with XSLT not workin... (3)
-> + Petri net to BPEL model transf... (3)
-> + Selecting specific child eleme... (2)
-> + Grouping and summing ... (3)
-> + XSL-FO question: can't get ext... (2)
-> + for each with a parallel nodel... (3)
-> + unable to load schmea with tar... (5)
-> + Translating svg path data to x... (5)
-- Previous [1321-1340] [1341-1360] [1361-1380] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.