W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2007

[Bug 5285] Validator ignores "xml-stylesheet" PI in XHTML 1.0 where's no link element

From: <bugzilla@wiggum.w3.org>
Date: Mon, 26 Nov 2007 15:05:35 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IwfWh-0002Tr-Sl@wiggum.w3.org>


           Summary: Validator ignores "xml-stylesheet" PI in XHTML 1.0
                    where's no link element
           Product: CSSValidator
           Version: CSS Validator
          Platform: All
               URL: http://www.djg-muenchen.de/
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
        AssignedTo: ot@w3.org
        ReportedBy: peter.neumann@dark-chiaki.net
         QAContact: www-validator-cvs@w3.org

I got a problem with the W3C CSS Validator while trying to validate a document
(written in XHTML 1.0 Strict, served as application/xhtml+xml, encoding UTF-8,
validated by W3C Validator) in wich the stylesheet is referenced with a XML
processing instruction as follows:

<?xml-stylesheet alternate="no" href="URI" type="text/css" media="all" ?>

Since Firefox is cappable of this notation, the CSS Validator says
"No Errors or Warnings found. No Stylesheet found."
and validates nothing at all. The validation only works (and is successful), if
I additionally include a reference with the link element as follows:

<link rel="stylesheet" href="URI" type="text/css" media="all" />

Occurs on any Platform/OS/UA, direct and with referer-link, used browsers are
Firefox and IE 7.0 (itself not cappable of XHTML, but doesn't change
the failded validation).

To reproduce the error/failing, try to get a validation with:
(Page in german language, but this shouln't be relevant for testing.)

Best regards,
Peter Neumann
Received on Monday, 26 November 2007 15:05:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:30 UTC