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

Re: Splitting a xmt into multile xmls based on a crite

Subject: Re: Splitting a xmt into multile xmls based on a criteria using xsl
From: Jarkko.Moilanen@xxxxxx
Date: Sun, 26 Jan 2003 17:37:46 +0200
sudeep sahdeva
See for example for using Xalan:
1.The redirect extension is what you need....
http://xml.apache.org/xalan-j/extensionslib.html

2.And to develop the xslt to do this of course.

Cheers, 
Jarkko

Lainaus Sudeep Sahdeva <ssahdeva@xxxxxxxxxxx>:

| Hi,, I am new to xml. I would like to split an incoming xml based on a 
| certain criteria. For example In comming XML:
| <?xml version="1.0"?>
| <?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
| <TRANS>
| 	<ID>009</ID>
| 	<DESC>New Product</DESC>
| 	<VENDOR>
| 		<NAME>ACME</NAME>
| 		<ADDRESS>45 Cross Street</ADDRESS>
| 	</VENDOR>
| 	<BRANCH>4007</BRANCH>
| 	<BRANCH>5007</BRANCH>
| 	<BRANCH>6007</BRANCH>
| </TRANS>
| 
| My output should be as follows:
| 
| <?xml version="1.0"?>
| <?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
| <TRANS>
| 	<ID>009</ID>
| 	<DESC>New Product</DESC>
| 	<VENDOR>
| 		<NAME>ACME</NAME>
| 		<ADDRESS>45 Cross Street</ADDRESS>
| 	</VENDOR>
| 	<BRANCH>4007</BRANCH>
| </TRANS>
| ========================================================================
| 
| <?xml version="1.0"?>
| <?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
| <TRANS>
| 	<ID>009</ID>
| 	<DESC>New Product</DESC>
| 	<VENDOR>
| 		<NAME>ACME</NAME>
| 		<ADDRESS>45 Cross Street</ADDRESS>
| 	</VENDOR>
| 	<BRANCH>5007</BRANCH>
| 	</TRANS>
| ========================================================================
| 
| <?xml version="1.0"?>
| <?xml-stylesheet type="text/xsl" href="C:\projects\xml\dat\TEST2.xsl"?>
| <TRANS>
| 	<ID>009</ID>
| 	<DESC>New Product</DESC>
| 	<VENDOR>
| 		<NAME>ACME</NAME>
| 		<ADDRESS>45 Cross Street</ADDRESS>
| 	</VENDOR>
|         <BRANCH>6007</BRANCH>
| </TRANS>
| 
| 
| Thanks in advance
| 
| 
| Sudeep
| 
| _________________________________________________________________
| Add photos to your messages with MSN 8. Get 2 months FREE*.  
| http://join.msn.com/?page=features/featuredemail
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 
| 


***************************************************
* Jarkko Moilanen                                 *
* Project Researcher, ITCM (www.itcm.org)         *
* Profound XML technology Expert                  *
* University of Tampere                           *
* Hypermedia Laboratory                           *
***************************************************

 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.