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
Manic RajSubject: Recursively update node value to a variable
Author: Manic Raj
Date: 11 Nov 2009 04:09 AM
Hi everybody,
I am new to XSLT programming,
I have an XML like the foll.


<?xml version="1.0" encoding="iso-8859-1" ?>
<catalog>
<offering offeringId="9628">
<metadata name="Name" value="LOR" />
<metadata name="Actors" value="Toby Mc" />
<metadata name="Actors" value="Tom" />
<metadata name="Actors" value="Waveman" />
<metadata name="Director" value="Lichtenstein" />
</offering>
</catalog>

I need to get the final o/p as

<film>
<name>LOR</name>
<actor>Toby Mc, Tom,Lichtenstein, Mitchell</actor>
<director>Lichtenstein</director>
</film>

Based on the name="Actors" I need to form the comma separated <actor> value
I stuck here updating a variable in a loop and reading the value outside.
Can somebody help me to get this one out.

Thanks in advance... :)


Thanks,
~Manic

Posttop
Alberto MassariSubject: Recursively update node value to a variable
Author: Alberto Massari
Date: 12 Nov 2009 04:13 AM
Hi,
which version of Stylus Studio are you using, and which processor have you selected in the Scenario Dialog?

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.