Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Processing multiple files

From: "Sam Byland" <shbyland@----------->
To:
Date: 9/1/2004 3:22:00 PM
Years ago we addressed a similar problem using SAXON 6.5.x and no Java etc.
as follows:

We created a "table of contents" XML file that was basically a list of
entities where each entity was a filename with a full path spec.  If a new
file was added or changed, we just updated the "entity DTD" the TOC file
used and/or updated the list in the TOC XML file itself.

We then used the TOC file as the principal source file and looped through it
using the document() function.  We had to output two different files for
each input file, so we had two xsl:document statements within the
xsl:for-each loop.

Having to maintain the TOC XML file could be viewed as a drawback, but in
our case it worked out well since not all of the files needed to be
processed all the time; some of the "files" in the toc list are in "if"
statements that are resolved at publish time...

Someday, when funding permits, we might try something more interesting now
that SAXON 8 using XSLT 2.0 capabilities are available :)

cheers,

...sam


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent