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

Validator ignores xml-stylesheet PI

From: Peter Neumann <peter.neumann@dark-chiaki.net>
Date: Sun, 25 Nov 2007 15:08:57 +0100
Message-Id: <910234827@web.de>
To: W3C CSS Validator ML <www-validator-css@w3.org>

Hello Everyone,

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 Stylesheet found." and validates nothing at all. The validation only works, if I additionally include a reference with the link element as follows:

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

Is the link element required for XHTML to use stylesheets? Or is this a bug in the CSS Validator? I went through the FAQ and known bugs, but didn't find anything usefull for this case.

Please direct answers to my address (to/cc/bcc), since I'm not subscribed on this mailling list. Thank You.

Best regards,
Peter Neumann

Make sure You've read RFC 1855, before sending any electronic mail.
RFC 1855: Netiquette Guidelines <http://tools.ietf.org/rfc/rfc1855.txt>
Received on Sunday, 25 November 2007 19:29:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:44 UTC