...

View Full Version : CSS Validation Error



bbowman84
06-06-2007, 08:42 AM
At the bottom of my style.css file, I have this xsl coding and I get an error when I am doing my CSS Validation. When I had it in the HTML, I received a validation error on that as well which is why I put it into the .css file.

When I had it in the html, it was as follows.

<script type="javascript" src="http://website.com/dn.js" xmlns:ext="urn:ext" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:math="http://exslt.org/math"></script>

<script type="text/javascript" language="javascript" xmlns:ext="urn:ext" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:math="http://exslt.org/math">


This is how it looks in my style.css file.

.style27 {
color: #3399FF;
font-size: 11px;
font-family: tahoma;
text-decoration:none

<xsl:stylesheet version="1.0"
xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:math="http://exslt.org/math"
xmlns:ext="urn:ext">


Thanks,
Brad

Arbitrator
06-06-2007, 09:07 PM
When I had it in the html, it was as follows.

<script type="javascript" src="http://website.com/dn.js" xmlns:ext="urn:ext" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:math="http://exslt.org/math"></script>

<script type="text/javascript" language="javascript" xmlns:ext="urn:ext" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:math="http://exslt.org/math">HTML does not support namespaces; none of those xmlns attributes are valid in HTML. Even if you were using XML, I have no clue why you would want to declare namespace prefixes like that on a script element since that element canít contain other elements.


This is how it looks in my style.css file.

.style27 {
color: #3399FF;
font-size: 11px;
font-family: tahoma;
text-decoration:none

<xsl:stylesheet version="1.0"
xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:math="http://exslt.org/math"
xmlns:ext="urn:ext">You donít put an XSL style sheet inside of a CSS file. XSL has its own file extensions (*.xsl or *.xslt) and media type (application/xml). Assuming that that tag were to go into an XSL file, you forgot to declare the namespace for the xsl prefix.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum