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

Re: processing multiple documents concatenated into on

Subject: Re: processing multiple documents concatenated into one
From: "Geert Bormans geert@xxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 Jun 2018 13:58:14 -0000
Re:  processing multiple documents concatenated into on
mmh, why not, but still that is some sort of preprocessing.
Will see what my options are there, thanks

At 14:09 3/06/2018, you wrote:
Would not an xinclude pass suffice to merge the 3 into 1?

regards

On 3 June 2018 at 13:03, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Well, sadly enough the input stream is of the second kind (having all the
> xml declarations inside)
> We are preprocessing the input now before we parse
>
> Thanks for the suggestions
>
>
> Best regards,
>
> Geert Bormans
>
> --------------------------------------------------------------
> Markup UK - a conference about XML and other mark-up languages
> London, June 9-10 2018
> Programme now available at http://markupuk.org/speakers.xhtml
> Register at http://markupuk.org/registration.xhtml
>
> ________________________________
> Van: "Abel Braaksma, (Exselt) abel@xxxxxxxxxx"
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
> Aan: "xsl-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Verzonden: Dinsdag 29 mei 2018 09:59:49
> Onderwerp: Re:  processing multiple documents concatenated into one
>
> If the file is in the form
>
> <root>
>   ....
> </root>
> <root>
> ....
> </root>
>
> then you should be able to present to the XML parser a skeleton document
of
> the form
>
> <!DOCTYPE dummy [
> <!ENTITY x "multidoc.xml"/>]
> <dummy>&x;</dummy>
>
> and the XSLT stylesheet will just see this is a normal standard (and
> streamable) XML input.
>
> If however the file is in the form
>
> <?xml version="1.0"?>
> <root>
>   ....
> </root>
> <?xml version="1.0"?>
> <root>
> ....
> </root>
>
> then you have a bit more work to do, because this isn't a well formed
> external entity. Assuming Java, you will need to write an implementation
of
> the Java InputStream class that filters the input document and removes
the
> XML declarations, and present this InputStream as the input to the XML
> parser.
>
> Michael Kay
> Saxonica
>
> On 29 May 2018, at 07:49, Geert Bormans geert@xxxxxxxxxxxxxxxxxxx
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> All,
>
> I am (using XSLT3 streaming) processing files that are occasionaly a
> concatenation of multiple XML files
> Before I start cutting documents apart before processing,
> I wondered, maybe there is an XSLT streaming solution all the way.
> Any ideas
>
>
> Best regards,
>
> Geert Bormans
>
> --------------------------------------------------------------
> Markup UK - a conference about XML and other mark-up languages
> London, June 9-10 2018
> Programme now available at http://markupuk.org/speakers.xhtml
> Register at http://markupuk.org/registration.xhtml
> XSL-List info and archive
> EasyUnsubscribe (by email)
>
>
> XSL-List info and archive
> EasyUnsubscribe (by email)
>
> XSL-List info and archive
> EasyUnsubscribe (by email)



--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

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.