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

RE: breaking up a big xml file into smaller xml files

Subject: RE: breaking up a big xml file into smaller xml files
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Fri, 19 Mar 2004 10:51:40 +0000
msn names
Hi Don,

It seems that you have copied and pasted an output from IE view, so I don't know if the output you showed us is representative of your data output. Looking at the output below, it seems that the different XML documents are not valid. You have unclosed elements in the first output file and you have closing element tags in the fith output file, with no matching start tags.

This makes me unsure of what you really are trying to achieve, wherefore I can't say anything from your XSL file.

You have a sample XML file in your mail - could you say what output files you would like from this file?

Regards,
Ragulf Pickaxe :)

Using document() I extract the data from the large XML file and store it in
a new file using saxon:output. Everything's straightforward so far. Here's
where things start to get complicated. Each output xml file will contain a
sequence of sections from the large XML file based on author and unbroken
sequence of nodes. Sorry, difficult to explain. Here's an example of the
output I'm trying to get. Given the above listing the result of processing
should be 10 XML files.


Output file 1 contains the following sections:
  <chapter id="1" name="Overview" author="rpo">
      <section name="Mission Statement" author="rpo" />
-     <section name="Around Campus" author="rpo">
        <subsection name="Students and Faculty" author="rpo" />

Output file 2 contains:
        <subsection name="Students and Faculty" author="rpo" />

Output file 3:
        <subsection name="The Campus" author="rtdavis" />

And so on.

Note, output file 5 contains:
        <subsection name="Accreditation" author="rpo" />
      </section>
-     <section name="Administrative Organization" author="rpo">

As you can see from this last example the sections used to create the output
xml isn't necessarily from the descendent axis. The only restriction is
that an output file can only contain sections from within a chapter.

_________________________________________________________________
Add photos to your e-mail 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



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.