|
Subject: [xsl] InnerElement attribute needs to be set for parent From: Arulraj <p_arulraj@xxxxxxxxx> Date: Sat, 10 May 2008 12:40:22 +0530 (IST) |
Hello,
i have the following input xml, i am using XSL for the transformation.
<?xml version="1.0" encoding="UTF-8"?>
<extraList
jcr:primaryType="extraList" >
<customerInfo
jcr:primaryType="customerinfo">
<propertyList>
<property name="betriebsnummer_str" value="54321"/>
<property
name="email_str" value="test"/>
</propertyList>
</customerInfo>
<info>
<propertyList>
<property name="yyy_str" value="123"/>
<property name="email_str" value="yahoo.com"/>
</propertyList>
<info>
</extraList>
My expected output as follows:
<extraList
jcr:primaryType="extraList">
<customerInfo
jcr:primaryType="customerinfo">
<propertyList
betriebsnummer_str="54321" email_str="test"/>
</customerInfo>
<info>
<propertyList yyy_str="123" email_str="yahoo.com"/>
<info>
</extraList>
How to copy the attributes from the <property> name and value to
<propertyList> with name as the attribute ?
Please suggest to solve this.
Thanks
Regards,
Raj
Meet people who discuss and share your passions.
Go to http://in.promos.yahoo.com/groups/bestofyahoo/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] does variable contain a , Michael Kay | Thread | Re: [xsl] InnerElement attribute ne, Mukul Gandhi |
| RE: [xsl] Which Java version do I n, Michael Kay | Date | Re: [xsl] InnerElement attribute ne, Mukul Gandhi |
| Month |