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
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Denis GenardSubject: Invalid generated DTD
Author: Denis Genard
Date: 18 Nov 2003 07:46 AM
With StylusStudio 5.0.127e, when generating automatically a DTD for an XML document, the generated DTD is invalid. The type of attributes in an ATTLIST is missing.

Can a default attribute type (such as CDATA) be used for these attributes ?

Moreover, an attribute
xmlns CDATA #FIXED ''
is added to each element, which is quite annoying if you don't care about namespaces.
Can I prevent StylusStudio to generate this ?

Posttop
(Deleted User) Subject: Re: Invalid generated DTD
Author: (Deleted User)
Date: 18 Nov 2003 11:16 AM
At 08.11 18/11/2003 -0500, stylus-studio-tech Listmanager wrote:
>From: "Denis Genard"
>
>With StylusStudio 5.0.127e, when generating automatically a DTD for an XML
>document, the generated DTD is invalid. The type of attributes in an
>ATTLIST is missing.
>
>Can a default attribute type (such as CDATA) be used for these attributes ?

Unfortunately that's is a bug in a third-party tool we ship with Stylus,
TRANG, and we have no control on it.
The known workarounds are
1) manually fix the generated DTD
2) build an internal DTD, instead of an external one; in this case, we
detect that the DTD is invalid and regenerate it from scratch using our code.


>Moreover, an attribute
> xmlns CDATA #FIXED ''
>is added to each element, which is quite annoying if you don't care about
>namespaces.
>Can I prevent StylusStudio to generate this ?

No, TRANG has no option to turn this attribute generation off.

Hope this helps,
Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.