This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Namespace Identifiers - URI, URN, URL?


On Wed, Aug 29, 2001 at 07:25:12AM -0400, Hewko, Doug wrote:
> We all know the prolog of our XSL documents look something like this;
> 
> <?xml version="1.0" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
> 

Someone who still uses the MSXSL dialect :)

> Does the namespace 'xmlns:xsl="http://www.w3.org/TR/WD-xsl";' actually refer
> to a URL or is this an alias that is contained within my XML parser? I can
> not disable my internet connection from work, so I can not test whether when
> I open my XSL document, if "www.w3.org/TR/WD-xsl" is actually being
> referenced or if not. 
> 

You don't seem to understand how XML Namespaces really work.  Read
http://www.jclark.com/xml/xmlns.htm for an explanation of what the URI
in a namespace declaration is for and what it signifies.

Short answer: it doesn't need to point to anything.  It's just an
identifier that identifies the namespace you're using.  By the way,
you should really be using "http://www.w3.org/1999/XSL/Transform";
instead of "http://www.w3.org/TR/WD-xsl";.  That refers to an older,
deprecated version of the standard which nobody but microsoft has an
interest in supporting.

-- 
Rafael R. Sevilla <sevillar@team.ph.inter.net>   +63(2)   8177746 ext. 8311
Programmer, InterdotNet Philippines              +63(917) 4458925
http://dido.engr.internet.org.ph/                OpenPGP Key ID: 0x5CDA17D8

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]