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]

Re: DTD or no DTD?


Dave,

> There is a DTD at http://www.openebook.org/dtds/oeb-1.0/oebdoc1.dtd
> [...]

> Problem.
> 
> With the document and stylsheet as given,
> the html template never triggers.
> 
> If I remove the doctype from the document,
> leaving it well formed, it triggers.

The DTD contains the declaration

<!ATTLIST html
  %InternationalAttributes;
  xmlns         %URI;   #FIXED  
"http://openebook.org/namespaces/oeb-document/1.0/"
  xmlns:xlink   %URI;   #FIXED  "http://www.w3.org/XML/XLink/"
>

I.e. with DOCTYPE the html element is in the namespace "http://openebook ...",
without it it's in the null namespace.

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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]