Subject: Re: Re: [xsl] xslt select expression From: "Michael Beddow" <mbnospam@xxxxxxxxxxx> Date: Tue, 21 Aug 2001 22:34:36 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Re: [xsl] xslt select expressio, Mark Feblowitz | Thread | [xsl] <xptr> to range of locations, James Cummings |
Re: Re: [xsl] xslt select expressio, Wendell Piez | Date | [xsl] how to extract chid node?, Sunil Dua |
Month |