Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile CSS Validation Error

    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

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,338
    Thanks
    29
    Thanked 282 Times in 276 Posts
    Quote Originally Posted by bbowman84 View Post
    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.

    Quote Originally Posted by bbowman84 View Post
    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.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •