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
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1IwfWh-0002Tr-Sl@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5285

           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 2.0.0.9 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:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.djg-muenchen.de%2F
(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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:59 GMT