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

RE: reading a text file and putting out an xml file us

Subject: RE: reading a text file and putting out an xml file using xslt 2.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 29 Oct 2009 17:32:40 -0000
RE:  reading a text file and putting out an xml file us
> Can someone please let me know if I am doing something wrong here?

This isn't an XSLT problem, it's an XML problem. Saxon is telling you quite
clearly that the error comes from the XML parser.

> > SXXP0003: Error reported by XML parser: Content is not allowed in
prolog.
> > While processing bk1-im1.tif: Run-time errors were reported

It looks as if the XML parser is trying to parse the content of bk1-im1.tif
as XML and failing. Perhaps that's because you have an entity reference
&im1; somewhere in your source - that's not allowed with unparsed entities.
However, I can only speculate.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
> 
> On Wed, Oct 28, 2009 at 2:23 PM, a kusa <akusa8@xxxxxxxxx> wrote:
> > Thank you. This worked.
> >
> > But I have anther problem. I am applying a transformation 
> style sheets 
> > to another set of xml files to generate another xml output.
> > These files have images as entities in beginning:
> >
> > <!DOCTYPE books[
> > <!NOTATION ccitt4 PUBLIC '-//USA-DOD//NOTATION CCITT Group4 
> > Facsimile//EN' > <!ENTITY im1 SYSTEM "bk1-im1.tif" NDATA ccitt4> 
> > <!ENTITY im2 SYSTEM "bk1-im2.tif" NDATA ccitt4> ]>

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-2011 All Rights Reserved.