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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
- XQuery Help and Discussion (2017)
-> + Issue with Processing Instruct... (2)
-> + problem converting json to XML... (2)
-> + Problem base64 decoding string... (3)
-> + Problems posting multipart for... (5)
-> + trouble with download of price... (2)
-> + Problem with http-post not bei... (3)
-> + path problem, xps_file:writeAl... (9)
-> + Xquery update support? (2)
-> + problem with Stylus studio try... (5)
-> + adding dtd reference to xml ou... (4)
-> + xquery escaping ambarsand when... (3)
-> + Whitespace problem when return... (5)
-> + Problem with namespace prefix ... (5)
-> - Sending via SFTP returns unexp... (1)
-> + Query and Sftp clent (4)
-> + xquery and try - catch (3)
-> + Query + ddtek:http-post optio... (5)
-> + Example files referenced in do... (3)
-> + Automatic Error Detection and ... (3)
-> + Working with result of ddtek:h... (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.