Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Make a DTD usable (standalone problem)

Reply
Thread Tools

Make a DTD usable (standalone problem)

 
 
Vincent Lefevre
Guest
Posts: n/a
 
      07-20-2003
In some DTD, I'd like to include latin-1 entities as XHTML does:

<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
"xhtml-lat1.ent">
%HTMLlat1;

but also do this kind of things (as XHTML does):

<!ENTITY % URI "CDATA">

<!ELEMENT root (#PCDATA)>
<!ATTLIST root
blah %URI; #IMPLIED
>


But such a DTD can't be used with XSLT because

blah %URI; #IMPLIED

requires standalone="yes" in the XML file[*], but in this case,
I can no longer use the entities defined by xhtml-lat1.ent!

Is there a solution?
[*] See the discussion
https://sourceforge.net/tracker/inde...27&atid=110127

At least sablotron detects the problem.

TIA,

--
Vincent Lefèvre <> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
 
Reply With Quote
 
 
 
 
Vincent Lefevre
Guest
Posts: n/a
 
      07-21-2003
In article <bfgh13$6ic$>,
Richard Tobin <> wrote:

> But why are you in this situation at all? You need the parser to
> process all parameter entities, so that you can use the Latin-1
> entities. Your document is *not* standalone, so don't declare it
> standalone. Make sure (external) parameter entity processing is
> turned on.


OK, so is it a problem with the configuration of the XSLT processor
(Sablotron)?

--
Vincent Lefèvre <> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
 
Reply With Quote
 
 
 
 
Vincent Lefevre
Guest
Posts: n/a
 
      07-21-2003
In article <20030721151725$>,
Vincent Lefevre <vincent+> wrote:

> In article <bfgh13$6ic$>,
> Richard Tobin <> wrote:
>
>> But why are you in this situation at all? You need the parser to
>> process all parameter entities, so that you can use the Latin-1
>> entities. Your document is *not* standalone, so don't declare it
>> standalone. Make sure (external) parameter entity processing is
>> turned on.

>
> OK, so is it a problem with the configuration of the XSLT processor
> (Sablotron)?


Hmmm... using --flags=2 with Sablotron seems to be the solution.

--
Vincent Lefèvre <> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML file from one DTD to another DTD test Java 2 07-28-2006 08:48 PM
How to specify DTD to DTD.getDTD for DocumentParser? Ronald Fischer Java 4 03-17-2005 09:37 AM
Removing the dtd name when using print(...) on the dtd generated class Joseph Tilian Java 0 12-21-2004 02:58 PM
Including a dtd into another dtd... possible? Asfand Yar Qazi XML 1 09-19-2003 12:10 PM
Make an image from a dtd - file naklov XML 1 07-22-2003 01:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57