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

Re[2]: troubles with document()

Subject: Re[2]: troubles with document()
From: Alexey Nickolaenkov <nikolaenkov@xxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 23:12:06 +0300
Re[2]:  troubles with document()
Thursday, January 25, 2007, 11:05:45 PM, you wrote:

>> But here saxon comes up with the following warning:
>> 
>> [FATAL] {xmlcopy} Error reported by XML parser; SystemID:
>> file:/C:/test/images_gallery.xml.html; Line#: 1; Column#: -1

DC> as the error message tries to make clear, the error isnt being raised by
DC> saxon but by the cml parser, saxon is just passing it on.
DC> If your file 

DC> file:/C:/test/images_gallery.xml.html

DC> is not well formed XML (and most files with .html extension are not well
DC> formed) then it can not be used by any XML process.

DC> The actual error message is saying that the file does not have a single
DC> top level "root" element.
DC> so either it's empty or has more than one element, or has text at the
DC> top level or...

I thought about it when I was using much more complex xml as a source
file, but Saxon cannot load even files made by myself. I receive this
error even if I'm trying to load the most simple

<?xml version="1.0" encoding="UTF-8"?>
<aa>
  <bb>test</bb>
</aa>


:-( I dont know what the problem is. Even if I try to load well-formed
xmls (just loaded by another templates) I receive this error.

The only difference in code is the usage of base-uri in document()
function.

so document('my_xml.xml') works great, but
document('../my_xml.xml', /) falls with the error message above.
Though my_xml.xml file is found by parser.


-- 
Alexey                            mailto:nikolaenkov@xxxxxxxxxxxx

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.