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
Jean FarnsworthSubject: Defining a DTD element content model that contains #PCDATA and child elements
Author: Jean Farnsworth
Date: 24 Feb 2005 10:17 AM
I'm not clear on how Stylus Studio accommodates mixed content models in DTDs, if at all. I have several elements in my DTD that require a definition that includes both #PCDATA and a whole list of inline elements, all optional and in no particular order. The DTD training I have had suggests defining an entity for #PCDATA, and then using that entity within ELEMENT declarations rather than #PCDATA. I've done that. My XML editor has no problem with this, but Stylus Studio doesn't like it and (incidentally), neither does our transformation software. Any suggestions? I can send you the DTD if you need it.

Posttop
(Deleted User) Subject: Re: Defining a DTD element content model that contains #PCDATA and child elements
Author: (Deleted User)
Date: 24 Feb 2005 11:40 AM
Hi Jean,
the XML specs requires mixed content to be defined using this structure

(#PCDATA | child1 | child2 | child3)*

You can use a parameter entity like %PC; instead of #PCDATA, but the final
result must be this (#PCDATA must be the first item, and there must be no
extra parenthesis or '?' after a child element name).

If you already followed these guidelines please post (or send me by e-mail)
the DTD in question.

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.