Closed Bug 61044 Opened 24 years ago Closed 22 years ago

<xsl:output doctype-system="some.dtd"/> not working

Categories

(Core :: XSLT, defect, P5)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: gartside, Assigned: peterv)

References

Details

(Whiteboard: standalone)

A directive in an xsl sheet such as: <xsl:output doctype-system="mathml.dtd"/>
doesnt seem to be having the desired effect -ie- the output document having
<!DOCTYPE html SYSTEM @mathml.dtd"> in its preamble.

A test style sheet, input xml doc and transformiix's output follow.

My mozilla (and transformiix) are up to date (as of Thursday 23rd Nov 2000).

I apologise if the error is mine and not transformiix. I have checked against
4xslt 's output (python xslt transformer), and that does output <!DOCTYPE html
SYSTEM etc>.

---

Stylesheet:

<?xml version="1.0"?>

<!DOCTYPE  html  SYSTEM "mathml.dtd">

<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



<xsl:output method="xml"/>
<xsl:output doctype-system="mathml.dtd"/>
<xsl:output indent="yes"/>

<!-- main rule for document element -->
<xsl:template match="document">

<html xmlns:math="http://www.w3.org/1998/Math/MathML"
      xmlns="http://www.w3.org/TR/REC-html40">

<head>
    <title>Test for Doctype</title>
</head>


<body bgcolor="#FFFFFF" text="#000000">

  <font color="blue" style="text-align: center">
<b>Test for Doctype</b></font>
</body>
</html>

</xsl:template>

</xsl:stylesheet>

Input xml file:

<?xml version="1.0"?>

<document>

Stuff....


</document>

Output xml file:

<?xml version="1.0"?>
<html xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/T
R/REC-html40">

    <head>
      <title>Test for Doctype</title>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
      <font color="blue" style="text-align: center">
        <b>Test for Doctype</b>
      </font>
    </body>

</html>
*** Bug 61045 has been marked as a duplicate of this bug. ***
It was never implemented. Accepting.
Status: NEW → ASSIGNED
Taking over.
Assignee: kvisco → peterv
Status: ASSIGNED → NEW
Target Milestone: --- → mozilla0.9
Blocks: 63906
Post-poning a bit.
Target Milestone: mozilla0.9 → mozilla0.9.1
Target Milestone: mozilla0.9.1 → mozilla1.1
No longer blocks: 63906
Priority: P3 → P5
this was fixed for module in the output rewrite (i'm starting to sound like a
broken record :-) )
Whiteboard: standalone
Broken record says it is fixed. Reopen if he's wrong.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
we didn't verify for a long time.
I really checked, so VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.