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

InnerElement attribute needs to be set for parent

Subject: InnerElement attribute needs to be set for parent
From: Arulraj <p_arulraj@xxxxxxxxx>
Date: Sat, 10 May 2008 12:40:22 +0530 (IST)
 InnerElement attribute needs to be set for parent
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

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.