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
Jeremy TurnerSubject: Join subnodes together
Author: Jeremy Turner
Date: 26 Mar 2006 10:15 PM
Hi,

I am writing an xslt 2.0 file to convert some xml data from one schema to another. How do I join several subnodes together to use the same node? for example convert

<Path>
<IsWorkingPath>true</IsWorkingPath>
<PathType>Working</PathType>
<FacilityAssoc>
<FromChannel>2</FromChannel>
<ToChannel>2</ToChannel>
</FacilityAssoc>
</Path>
<Path>
<IsWorkingPath>true</IsWorkingPath>
<PathType>Working</PathType>
<FacilityAssoc>
<FromChannel>2</FromChannel>
<ToChannel>2</ToChannel>
</FacilityAssoc>
</Path>

to

<Path>
<IsWorkingPath>true</IsWorkingPath>
<PathType>Working</PathType>
<FacilityAssoc>
<FromChannel>2</FromChannel>
<ToChannel>2</ToChannel>
</FacilityAssoc>
<FacilityAssoc>
<FromChannel>2</FromChannel>
<ToChannel>2</ToChannel>
</FacilityAssoc>
</Path>

Any tips/pointers would be appreciated! Thanks

Jeremy

Posttop
Minollo I.Subject: Join subnodes together
Author: Minollo I.
Date: 26 Mar 2006 10:22 PM
Looks like you want to group on <Path> elements according to values of <IsWorkingPath> and <PathType>? If that's the case, you may want to search for "grouping" in this forum.

Minollo

 
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.