[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|