[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating multiple xmls using xslt1.0
I guess you could: 1. Run one preliminar transformation that only outputs the total number of rows (M). 2. Run a script that calls the XSLT processor M times, passing it the iteration number (N) as a parameter, and thus run the transformation on the row with index N. Jorge El 17/05/2012, a las 13:50, Michael Kay escribis: > In XSLT 1.0, each transformation can only produce one result document. So you will have to organize some kind of script that invokes the same transformation repeatedly, supplying parameters to indicate which range of rows you want to select on each run. > > Michael Kay > Saxonica > > On 17/05/2012 12:21, Siddhi Thakkar wrote: >> Hi experts, >> >> I have an xml file like this: >> >> <Data> >> <Row> >> <Cell1>text 1</Cell1> >> <Cell2>text 2</Cell2> >> </Row> >> <Row> >> <Cell1>text 3</Cell1> >> <Cell2>text 4</Cell2> >> </Row> >> <Row>.....<Row> >> <Row>.....<Row> >> ..... >> </Data> >> >> >> >> And I have thousands of<Row> elements like this. For the first 50 rows, I should be able to create an output xml with name Data1.xml, for next 50 rows output xml should be data2.xml, for next 50 rows output should be data3.xml and so on until all the rows are complete. And I have to achieve this with XSLT 1.0. Can anybody please help? >> >> Thanks, >> Siddhi
|
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
|