[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: a kusa <akusa8@xxxxxxxxx>
Date: Wed, 28 Oct 2009 14:23:47 -0500
Re:  reading a text file and putting out an xml file us
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>
]>

I am using saxon9 to run this in a batch mode. So my source points to
a directory with all the xml files and images.
java net.sf.saxon.Transform -s:c:\sampleset -xsl:test.xsl -o:c:\output

But I get this error on running it in batch mode.

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

Can you please tell me what I am doing wrong here?


On Wed, Oct 28, 2009 at 10:40 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>
>> Thank you. I have saxon9 downloaded. But I am not sure how to
>> run a transformation on the command line for a text input.
>> Any help?
>>
>
> Typically
>
> java net.sf.saxon.Transform -xsl:stylesheet.xsl -it:main
>
> or you might want to supply the name of the unparsed text file as a
> parameter:
>
> java net.sf.saxon.Transform -xsl:stylesheet.xsl -it:main input=text.xml
>
> with
>
> <xsl:param name="input"/>
>
> and
>
> select="unparsed-text($input)"
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

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.