Re: [xsl] Tutorial for collection()

Subject: Re: [xsl] Tutorial for collection()
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Thu, 17 May 2007 17:26:48 +0100
From: David Carlisle <davidc@xxxxxxxxx>

> The form with wildcards is just not legal according to RFC 1738

but surely the argument to collection() (like all "URI" in XPath)
doesn't have to match URI syntax.(either that of 1738 or the newer
definition of URI in RFC 3986).


It just needs to be a string that can be made into a legal URI by %-encoding characters as necessary.


Yes, maybe.


What I object to though is using the file scheme for a non-legal file-scheme URI (i.e. query parameters are not allowed with the file scheme).

It's one reason why I haven't adopted the same filtering scheme, which I admit is very useful, - I would have to invent a new URI scheme (local-directory might perhaps be a good name), unless one already exists, and I am reluctant to do that on my own.

The other reason is laziness - no-one has asked me to do it, so I can't be bothered.

I also implemented default-collection to be the equivalent of specifying collection with a file-scheme URI pointing to the current working directory.

Which I think is an excellent implementation for an environment where the concept of current working directory is meaningfull.

_________________________________________________________________
Txt a lot? Get Messenger FREE on your mobile. https://livemessenger.mobile.uk.msn.com/


Current Thread