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

Re: Validator ignores xml-stylesheet PI

From: olivier Thereaux <ot@w3.org>
Date: Mon, 26 Nov 2007 10:04:58 +0900
Cc: W3C CSS Validator ML <www-validator-css@w3.org>
Message-Id: <90CC44F6-EE2C-4B25-89E8-DA8E6AA2A245@w3.org>
To: Peter Neumann <peter.neumann@dark-chiaki.net>

Hi Peter,


On 25 nov. 07, at 23:08, Peter Neumann wrote:
> 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.

This is quite likely a bug, thanks for noticeing it. Could you add it  
to bugzilla?
http://www.w3.org/Bugs/Public/enter_bug.cgi?product=CSSValidator

Thank you
-- 
olivier
Received on Monday, 26 November 2007 01:05:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:19 GMT