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

Should I use XSLT or DOM

Subject: Should I use XSLT or DOM
From: Junk Junk <xline1@xxxxxxxxx>
Date: Wed, 14 Jun 2000 13:17:58 -0700 (PDT)
should i use xslt
I'm new to XSLT, although I have a fair
understanding of XML, SAX and DOM 
processing. For a new project, I need
to transform one XML document to another.
However, the transformation is not direct.
I need to be able to manipulate the source
tree. The destination tree will be
different from the source tree with element 
and attribute values from the source tree 
becoming element/attribute values of a
totally different tree structure.

Example: 

Source document:

<?xml version="1.0"?>
<element1  a1="value_1" a2="value_2">
   <element2 a3="value_3"  
         a4="value_4">SomeText</element2>
   <element3>MoreText</element3>
   <element4 a5="value_5"/>
</element1>


Destination document

<?xml version="1.0"?>
<element0>
  <element1 a1="value_5">
    <element2 a2="MoreText"/>
    <element3 a2="value_3">SomeText</element3>
  </element1>
  <element4>
    <element5>value_4</element5>
  </element4>
</element0>

I know the above doesn't make practical 
sense, but it is something like what I need
to do. 

I was wondering if any experienced XML/XSLT
folks might be willing to tell me if XSLT
would be an appropriate tool to use for the
purpose or if I should use DOM parsing
via Java instead?

Thanks much.

Alan V.

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.