XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Fred FooSubject: Ignore DTD
Author: Fred Foo
Date: 07 Nov 2012 08:53 PM
Originally Posted: 07 Nov 2012 08:52 PM
How can I ignore a DTD reference in my input XML file when running an xquery?

Postnext
Ivan PedruzziSubject: Ignore DTD
Author: Ivan Pedruzzi
Date: 07 Nov 2012 09:24 PM
Hi Fred

Which Stylus Studio version are you running?
Which XQuery processor?

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Fred FooSubject: Ignore DTD
Author: Fred Foo
Date: 09 Nov 2012 12:21 AM
Stylus Studio 2010 Build 1540b
DataDirect XQuery processor

Postnext
Ivan PedruzziSubject: Ignore DTD
Author: Ivan Pedruzzi
Date: 09 Nov 2012 01:04 AM

DataDirect XQuery makes use of a StAx parser, I would be surprised if it does something with the DTD declaration.

Why you need to ignore the DTD? which side effects you are trying to avoid?

Is this happening while running inside the XQuery editor or in your standalone Java application?

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Fred FooSubject: Ignore DTD
Author: Fred Foo
Date: 12 Nov 2012 11:35 PM
Thanks Ivan. The incoming file references a DTD which is not available (and is not needed anyway). XQuery fails because it can't find the DTD. I'd just like to set an option ignore it.

Postnext
Ivan PedruzziSubject: Ignore DTD
Author: Ivan Pedruzzi
Date: 13 Nov 2012 01:48 AM

Currently Stylus Studio does not expose any settings to ignore the DTD.

Could you please post a screenshot of the error and how shom me how the DTD is referenced in the DOCTYPE?

The only workaround is to open the XML document in the Stylus Studio XML Editor and remove the DOCTYPE.

Thanks!
Ivan Pedruzzi
Stylus Studio Team

Posttop
Fred FooSubject: Ignore DTD
Author: Fred Foo
Date: 14 Nov 2012 06:10 PM
Originally Posted: 13 Nov 2012 04:32 PM
This is the reference:
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.009/InvoiceDetail.dtd">

The error is really just a time-out. If the query processor can't reach DTD, either out on the internet or on an unavailable host, you get a time-out.


Imagetimeout.png

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.