<xsl:output doctype-*="x"/>

Question:

If the ExternalID (either Public or System) is optional in a DOCTYPE
declaration:

(Quoted from http://www.w3.org/TR/REC-xml)
[28]  doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('['
        (markupdecl | DeclSep)* ']' S?)? '>'

[75]  ExternalID ::= 'SYSTEM' S SystemLiteral
        'PUBLIC' S PubidLiteral S SystemLiteral

Then, why isn't the SYSTEM or PUBLIC specifier optional in XSLT?  (Only
doctype-public or doctype-system exist.)

(The only way I know to output a DOCTYPE without a SYSTEM or PUBLIC is
to:
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE X&gt;</xsl:text>

Keep in mind, I mention this only to see if I could hear the sound of
skin crawling.  And possibly to motivate a change in the spec.)



Thanks.

Philip King

Received on Sunday, 8 July 2001 06:36:16 UTC