[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Value dependency between nested attributes

Subject: Value dependency between nested attributes
From: "xyz xyz" <xyz197408@xxxxxx>
Date: Sun, 18 Oct 2009 02:19:12 +0200
 Value dependency between nested attributes
Hello

Output format shall be same than input format (XML-->XML Transformation):

<A name="a" test1="vw" test2="cd" test3="ef" test4="gh"/>
<A name="b" test1="vw" test2="cd" test3="ef" test4="gh" test7="ee"/>
<A name="c" test1="vw" test2="cd" test3="ef" test4="gh"/>
<A name="d" test1="xy" test2="ij" test3="kl" test4="mn" test5="op"/>


I want to give some params to the processor to change some (not all) "test" values. The values for the change depend on the value of the "name" attribute. 

For example: if value of name = "a" then test2 value="$XX" and test3 value="$YY"
and if name="b" then test2 value="$VV" and test3 value="$WW"

There are 4 different values for 'name' --> 4 A lines

It is my first try to build a xsl file -- so sorry if this question is stupid.
I tried to customize the "Identity change template" (http://www.dpawson.co.uk/xsl/sect2/identity.html#d5687e43 ) for my needs, but i am not experienced enough to get this running for my situation.

If someone could show me some templates to solve this problem...

Thank you very much
Karl
-- 
Neu: GMX DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
http://portal.gmx.net/de/go/dsl02

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.