Subject: OT: RE: [xsl] DTD type that allows XHTML?|
From: Lee Goddard <home@xxxxxxxxxxxxxx>
Date: Wed, 28 Mar 2001 17:33:28 +0100
In your DTD you will need to define an entity to represent the external DTD, and then use the entity. For XHTML this looks like the below.
%HTMLspecial; %HTMLsymbol; %HTMLlat1;
I'm actually interested in hearing how to do this. I don't have xhtml in my documents, but I am going to have to do something like this in the near future:
<!-- my tags here --> <foo_report> <!-- some foo report in XML with it's own tags --> </foo_report> <!-- more of my tags -->
Where the report should be "pluggable," that is, each report will be known, but we need to have the flexibility to add more in the future. I would like to do this in a modular fashion. Will your technique work in this case? Would namespaces help me? We will have control over the XML format in the reports.
Thanks for any advice you can provide.
-----Original Message----- From: Lee Goddard [mailto:home@xxxxxxxxxxxxxx] Sent: Tuesday, March 27, 2001 4:10 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] DTD type that allows XHTML?
Could you not pull in the XHTML DTD as an external entity? Mail me off-list on how to do this: this is not really the place to discuss DTDs.
At 09:42 27/03/2001 +0200, you wrote:
> 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 > >