Re: [xsl] Splitting a xmt into multile xmls based on a criteria using xsl

Subject: Re: [xsl] 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
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