Re: Parsing XML files as text with collection()
Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> Sat, 10 Oct 2020 10:11:17 +0100
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
I suspect the history here is that I implemented "?" as ".?" because that's the meaning I grew up with and forgot that UNIX globs were different, and then when I disccovered the discrepancy, decided to leave it in the interests of compatibility. Michael Kay Saxonica > On 9 Oct 2020, at 22:34, Chapman Flack <chap-JULfBfA8satPFr4CO1/[email protected]> wrote: > > Tangentially, I just took a look at the documentation for this, and saw > > https://www.saxonica.com/html/documentation/sourcedocs/collections/ > > More generally, the pattern is converted to a regular expression by > prepending "^", appending "$", replacing "." by "\.", "*" by ".*", > and "?" by ".?" > > Is that a typo? I would think the regex equivalent of glob "?" to be > simply "." and not ".?". > > Regards, > -Chap > > > On 10/09/20 15:43, Michael Kay wrote: >> This is very much the kind of use case for which uri-collection was introduced. > > > > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > [email protected] > https://lists.sourceforge.net/lists/listinfo/saxon-help _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help