Closed Bug 156098 Opened 23 years ago Closed 23 years ago

When xsl:output method is set to xml, Mozilla ignores css

Categories

(Core :: XSLT, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jwb, Assigned: peterv)

References

()

Details

When the method attribute of the xsl:output element is set to xml instead of html, stylesheets are ignored completely. The expected rendering would be matching references in the stylesheet to elements in the xml file (like <p> matches p { ... } )
you don't output html, that is, the generated XML doesn't belong to any namespace, so none of the generated content has any inherit behaviour. So the <html> ain't a HTML html, and the head ain't a head and last, but important, the <link> isn't a link. So it doesn't load a stylesheet. If you want this to work, generate XHTML by using the XHTML namespace. Check you pages with document inspector, Tools->Web Development->DOM Inspector it shows the namespace (and other great stuff)
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.