[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

doc() function failing to load DTD

Michael Ludwig mlu at as-guides.com
Thu Apr 9 18:57:57 PDT 2009


  doc() function failing to load DTD
The XQuery implementation of an XML database fails to resolve the URI
of the DTD specified in the SYSTEM identifier.

dbxml> query { doc('file:/home/milu/xpg/xml/Sender.xml') }
1 objects returned for eager expression
' doc('file:/home/milu/xpg/xml/Sender.xml') '

dbxml> print
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE Senderliste SYSTEM "Sender.dtd">
<Senderliste Name="KOMPLETT">
	&Sender;
	<SenderJeSeite> 3 </SenderJeSeite>
	&Gruppen;
</Senderliste>

DTD loading attempted, but failing:

dbxml> query { doc('file:/home/milu/xpg/xml/Sender.xml')/* }
stdin:55: query failed, Error:
XML Indexer: Fatal Parse error in document at line, 2, char 43.
Parser message: An exception occurred!
Type:RuntimeException, Message:Could not open DTD file 'Sender.dtd'

Changing the URI to file:///home/milu/xpg/xml/Sender.xml doesn't help.

The DTD is in the same directory as the document, and parsing the
document from other contexts works fine.

So I think the database engine should be able to retrieve it using the
base URI of the document. Is this assumption correct?

Michael Ludwig


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.