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

saxon fatal error reports odd location

Subject: saxon fatal error reports odd location
From: "Dave Gomboc" <dave@xxxxxxxxxxxxxx>
Date: Tue, 14 Nov 2000 19:44:05 -0700
saxon fatal error
When attempting to process a (65Mb -- thank goodness for saxon:preview! ;-)
file, I'm getting the following error from instant-saxon 5.5.1:

Fatal error reported by XML parser: required string (expected "BIOGPROSE")
  URL:    file:/C:/Documents and Settings/dave/Desktop/XSLT/all.xml
  Line:   27643
  Column: 1982
Transform failed:  required string (expected "BIOGPROSE")

Unfortunately, an inspection of line 27643 reveals that it is actually only
11 characters long.  I'm also a bit puzzled about the error: I'm not
providing saxon with a DTD, so how can it know to expect "BIOGPROSE"?  Is
the situation actually that the parser (the default that ships with Saxon)
is expecting a close, e.g. </BIOGPROSE>?  It would be helpful if some sort
of "error in context" was displayed.

Aha, hunting around a bit, I've managed to find the error on line 27561.
Indeed, a closing </BIOGPROSE> was split: "</B\nIOGPROSE>".  It seems rather
odd that the reported line number is quite different.  Has anyone else seen
such behaviour?  Perhaps my editor is counting newlines differently from
Saxon, e.g. it's supposed to be using "cr+lf" newlines, but if there are a
few lone "cr"s (or "lf"s) scattered through the data accidentally, would
Saxon count those as newlines as well?

I considered posting this message at http://saxon.xsl.listbot.com/, but I
couldn't find a way to post to it without actually registering and
subscribing, which I presumed would flood my mailbox -- thank goodness for
XSL-List digests!  However if this discussion is considered inappropriate
for XSL-List then I'll grit my teeth and take it over there.

Thanks,
Dave



 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.