Make a DTD usable (standalone problem)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent Lefevre

    #1

    Make a DTD usable (standalone problem)

    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[color=blue]
    >[/color]

    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 <vincent@vinc17 .org> - 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
  • Vincent Lefevre

    #2
    Re: Make a DTD usable (standalone problem)

    In article <bfgh13$6ic$1@p c-news.cogsci.ed. ac.uk>,
    Richard Tobin <richard@cogsci .ed.ac.uk> wrote:
    [color=blue]
    > 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.[/color]

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

    --
    Vincent Lefèvre <vincent@vinc17 .org> - 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

    Comment

    • Vincent Lefevre

      #3
      Re: Make a DTD usable (standalone problem)

      In article <20030721151725 $3880@vinc17.or g>,
      Vincent Lefevre <vincent+news@v inc17.org> wrote:
      [color=blue]
      > In article <bfgh13$6ic$1@p c-news.cogsci.ed. ac.uk>,
      > Richard Tobin <richard@cogsci .ed.ac.uk> wrote:
      >[color=green]
      >> 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.[/color]
      >
      > OK, so is it a problem with the configuration of the XSLT processor
      > (Sablotron)?[/color]

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

      --
      Vincent Lefèvre <vincent@vinc17 .org> - 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

      Comment

      Working...