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

one xsl file for two parsings

Subject: one xsl file for two parsings
From: Joseph Vallot <jvallot@xxxxxxxxxxxxxx>
Date: Tue, 04 Apr 2000 15:22:32 +0200
nesting xsl files
Hello...

I want to write an xsl file to process several xml files, and result
(parsing)
would depend on a given field value, and I don't see how to do that.

Example:

xml #1 would be 
===
<?xml version="1.0"?>
<mymsg>
  <qty>123</qty>
  <type>new</type>
  <code>5173</code>
</mymsg>
===
and parsed into 
===
<?xml version="1.0"?>
<new>
  <qty>123</qty>
  <code>5173</code>
</new>
===

when xml #2 would be
===
<?xml version="1.0"?>
<mymsg>
  <qty>123</qty>
  <type>cancel</type>
  <code>5173</code>
</mymsg>
===
and parsed into 
===
<?xml version="1.0"?>
<cancel>
  <code>5173</code>
</cancel>
===


In this example, parsing depend on <type> value.

If somebody could help...

(some pointers to tutorials where I could have find an answer are
welcome !)

Thank you
-- 
Joseph


 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.