[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: xslt select expression

Subject: Re: Re: xslt select expression
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx>
Date: Tue, 21 Aug 2001 22:34:36 +0100
xsl select and
On Tuesday, August 21, 2001 9:29 PM
Mark Feblowitz wrote:

> Not true. It's the w3c, but the URL is "w3.org".
>
> We spent a full day trying to debug some XML that
> used "w3c" in the URI rather than w3. The parser
> (MSXML) couldn't validate against a URI that it
> couldn't find and didn't report why it couldn't validate;
> thus, the lost day.

Not quite. w3.org and w3c.org are equivalent if you're actually trying
to connect to the servers. But URI's in namespace identifiers aren't an
instruction to contact a server, so "finding" the URI isn't the issue.
They are simply there as unique identifiers, which may or may not
be actual hostnames. And the specified namespace identifiers
happen to use w3.org, so that's what you have to use -- and still
would have to even if w3.org stopped being a resolvable domain.
The parser simply took the wrong identifier you gave it and did 
what it could with it, i.e. nothing much.

The desperately bored can head up their sheets with
<banana:stylesheet version="1.0"
xmlns:banana="http://www.w3.org/1999/XSL/Transfom">

and then write <banana:apply-templates/> etc. The XSLT processor won't
notice anything odd, because the namespace prefixes in XML are purely
local and arbitrary. It's the identifier string that has to be right;
but it doesn't have to point to a real location.

Michael
---------------------------------------------------------
Michael Beddow   http://www.mbeddow.net/
XML and the Humanities page:  http://xml.lexilog.org.uk/
---------------------------------------------------------





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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.