[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: xslt select expression
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|