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
Aswath SatrasasalaSubject: xml to xml mapping
Author: Aswath Satrasasala
Date: 12 Sep 2001 01:40 PM
Hi,
I have the following input XML


state1
city1
1000


state1
city2
2000


state2
city3
3000


state2
city4
4000



I have the following output xml



state1
3000


state2
7000


How do I sum up the cities population
and show them, using stylus studio

I am fairly new to this stylus studio. Editor is great I like it.
But, I am interest in the mapping feature
of stylus studio.

Thanks
-Aswath


Posttop
(Deleted User) Subject: RE: xml to xml mapping
Author: (Deleted User)
Date: 13 Sep 2001 11:27 AM

Hi,

mapper does not have the direct visual representation for this kind of
mapping.
you have to switch to text tab to modify the xsl text to perform your
transformation.

in case you don't know how to do it in xsl, here is a code example.


xmlns:xsl="http://www.w3.org/1999/XSL/Transform">




select="//Population[preceding-sibling::State=$state_name]"/>











hope this helps.

song


> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager]
> Sent: Wednesday, September 12, 2001 1:47 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: xml to xml mapping
>
>
> From: "Aswath Satrasasala"
>
> Hi,
> I have the following input XML
>
>
> state1
> city1
> 1000
>

>
> state1
> city2
> 2000
>

>
> state2
> city3
> 3000
>

>
> state2
> city4
> 4000
>

>

>
> I have the following output xml
>
>
>
> state1
> 3000
>

>
> state2
> 7000
>

> >
> How do I sum up the cities population
> and show them, using stylus studio
>
> I am fairly new to this stylus studio. Editor is great I like it.
> But, I am interest in the mapping feature
> of stylus studio.
>
> Thanks
> -Aswath
>
>
>
>
>
> To reply: mailto:stylus-studio-tech.3670@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-tech@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

 
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.