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

RE: XSLT: Transforming one markup to another markup

Subject: RE: XSLT: Transforming one markup to another markup
From: "Tedla, Sridhar \(LNG-CSP\)" <Sridhar.Tedla@xxxxxxxxxxxxxx>
Date: Mon, 1 May 2006 22:01:42 -0600
transforming one xml to another
The question is converting an xml into another xml i.e. one type of markup(X)
needs to be converted into another type of markup(Y).
I have mentioned X markup and Y markup i.e. With XSLT ---convert X Markup to Y
Markup.


________________________________

From: Kamal Bhatt [mailto:kbhatt@xxxxxxxxx]
Sent: Mon 5/1/2006 9:40 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  XSLT: Transforming one markup to another markup




What's the question?

Tedla, Sridhar (LNG-CSP) wrote:

>Hi!
>The X markup needs to be converted into Y markup.
>The X markup is as follows:
>
>
><class scheme="SAT">
>   <classitem>
>        <identifier>
>               <name>Sales </name>
>               <code>1234</code>
>        </identifier>
>        <classitem>
>          <identifier>
>                 <name> Tax</name>
>                 <code>5678</code>
>          </identifier>
>        <classitem>
>          <identifier>
>                <name>Items  </name>
>                <code>9101</code>
>          </identifier>
>         <classitem>
>            <identifier>
>               <name>Manufacturing </name>
>               <code>1121</code>
>            </identifier>
>           </classitem>
>       </classitem>
>     </classitem>
>    </classitem>
></class>
>
>The Y Markup is has follows:
>
><hier>
>  <hierlev role="ancestor">
>     <heading>
>       <title>Sales</title>
>     </heading>
>
>     <hierlev role="ancestor">
>        <heading>
>          <title> Tax</title>
>         </heading>
>
>         <hierlev role="ancestor">
>       <heading>
>              <title>Items </title>
>       </heading>
>            <hierlev role="ancestor">
>              <heading>
>                 <title>Manufacturing </title>
>              </heading>
>                  <hierlev role="ancestor">
>                  <heading>
>                       <title>Revised Code </title>
>                   </heading>
>               </hierlev>
>               <hierlev role="me">
>                   <heading>
>                       <title> Title Value</title>
>                    </heading>
>                </hierlev>
>           </hierlev>
>          </hierlev>
>     </hierlev>
>   </hierlev>
></hier>
>
>Now two rules for the above conversion:
>1)In X markup--The classitem depth is arbitary.
>2)In Y Markup--- always the last hierlev element contains two  hierlev
>as children.
>
>
>Sridhar
>
>
>
>


--
Kamal Bhatt


--
Disclaimer: This email is confidential and may contain privileged information
for the sole use of the person or business to which it is addressed. If you
are not the intended recipient, please notify the sender by return e-mail or
phone as you must not view, disseminate, distribute or copy this email without
our consent. We do not accept any liability in connection with any computer
virus, data corruption, incompleteness, or unauthorised amendment of this
email. It is the sole responsibility of the receiver to scan for viruses
before opening.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.