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]

OT: RE: DTD type that allows XHTML?



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.

HTH
Lee



<!-- W3C XHML Entities: http://www.w3.org/TR/xhtml1/#mods -->

<!-- Either:
<!ENTITY % HTMLspecial  PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"; "xhtml-special.ent">
<!ENTITY % HTMLsymbol   PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent"; "xhtml-symbol.ent">
<!ENTITY % HTMLlat1     PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"; "xhtml-lat1.ent">

or: -->

<!ENTITY % HTMLspecial  PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" 
"xhtml-special.ent">
<!ENTITY % HTMLsymbol   PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" 
"xhtml-symbol.ent">
<!ENTITY % HTMLlat1     PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
"xhtml-lat1.ent">

%HTMLspecial;
%HTMLsymbol;
%HTMLlat1;




At 09:33 28/03/2001 -0500, Blake, Stephen wrote:

>Hi Lee,
>
>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.
>
>Stephen Blake
>
>-----Original Message-----
>From: Lee Goddard [mailto:home@leegoddard.com]
>Sent: Tuesday, March 27, 2001 4:10 AM
>To: xsl-list@lists.mulberrytech.com
>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.
>
>Lee
>
>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
> >
> >



























 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]