From: "Jesper Tverskov" <jesper(_at_)tverskov(_dot_)dk>
As a follow-up to "the collection() function" thread,
http://www.biglist.com/lists/xsl-list/archives/200705/msg00369.html
I have made a tutorial for how to use the collection() function in XSLT
2.0:
"Collection() and REGEX in XSLT",
http://www.xmlplease.com/collection
I have some comments that I hope may be useful.
First, I think that your statement that we have only 2 major XSLT 2.0
processors is incorrect. I fail to see how Gestalt is less major than
Altova.
In gestalt, the collection function currently only accepts a file: URI which
must be a legitimate file URI
pointing to a directory. All files in this directory that sucessfully parse
as xml create a document node in the directory.
Secondly, it would be better in your example to change the template with
match="/" to one with name="initial". Asking the user to supply a dummy
document is senseless.
Thirdly, I think it is very bad of Saxon to have two completely different
meaning for the file URI scheme in the collection function (I refer to the
catalog and the wild-card forms, both of which have a completely different
meaning).
The catalog form is at least a legalfile URI, although it's meaning is so
unintuitive that I think a different (custom) URI scheme should be used.
The form with wildcards is just not legal according to RFC 1738.
So I cannot recommend standardizing on Saxon's usage here.
_________________________________________________________________
PC Magazine?s 2007 editors? choice for best Web mail?award-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--