This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DTD type that allows XHTML?



 Hello everybody,

 maybe this is not the list to post this issue, but I'm stuck and I need
some help:

 I'm trying to create a DTD to validate an xml document. The problem is
that I have one tag  in my xml that can contain welll formed HTML:

   <myTag>
          Any kind of <font size="2">text</font> and
        <br/> well-formed HTML
   </myTag>

 I would like my DTD to allow any kind of text and tags inside <myTag>.
I read somewhere that this can be done using ANY for the type of
element:

  <!ELEMENT myTag ANY>

 but I get the error:

    Element type "font" must be declared.

 Using (#PCDATA) instead of ANY I get the same error.
 I'm using SAXParser, any suggestion?

 Thanks in advance..

//Ruben



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]