Results 1 to 4 of 4

Thread: XSL default namespace!?

  1. #1
    Join Date
    Aug 2011

    XSL default namespace!?

    The default namespace used in XSL is:


    Even if a single character is changed in the namespace (inside quoted tags), I get parsing error.

    The file is parsed successfully only if i gave the default namespace and parsing fails when I give any other URL.

    1)So, I take it that its a pre-defined namespace..is that correct?

    2)Also I wanted to know, whenever this default namespace is parsed,does the browser/parser logically checks for something in that web address?

  2. #2
    Join Date
    Nov 2002
    Baltimore, Maryland
    1) I wouldn't call it pre-defined. It's just that what you think of as "xsl:stylesheet" is really "http://www.w3.org/1999/XSL/Transform:stylesheet". If you change even one character then you have changed the element name. You can, however, do this
    <foo:stylesheet xmlns:foo="http://www.w3.org/1999/XSL/Transform">
    2) Namespaces aren't checked and there is no requirement that they actually point to anything. They are only used as a unique identifier.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Aug 2011
    Thanks for the reply

  4. #4
    Join Date
    Sep 2011


    I can see that it can be pre-defined and you need a unique identifier.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles