[Home] [By Thread] [By Date] [Recent Entries]
Philippe Poulard wrote:
> > Mmh. Saxon uses a standard XPath function that takes
> > a URI as parameter. I don't see what is not "à la
> > XPath". You use an unknown function. They smell
> > equally XPath IMHO.
> Read again my first post : the purpose is neither the name
> of the function nor about how to get the content of the
> file
No. You said "Saxon's syntax (sic) is not a la XPath,
mine is".
> My answer is : "why not using XPath everywhere in XML
> applications ?"
Because we can use XML, also :-p.
> Pros :
> -a single syntax
About syntax, the Saxon way *is* XPath, so nothing new.
> -a well-known syntax
Yes, in both case. In the other hand, one use a
well-known function, the other not.
> > BTW, how do you specify to recurse or not?
> //* recurse
> /* do not recurse
> It's XPath
So you can't specify recurse or not. At least in XPath.
The function *have* to recurse and construct a document
containing information about all the subtree. What about:
collection('file:///?select=*.xml;recurse=no')
vs/
file('file:///')/*[matches(@extension, '\.xml$')]
if / contains recursively milions of files?
> And to validate or not?
> What means "validating a file" ?
Not a file. A document. Remember we are speaking about
collection(), and collection() retrieve documents.
> > And how do you get the actual content of the files? Are
> > they encapsulated directly in the result of file() (I
> > hope they are not), or do you need a second function
> > (something like open-file())?
> Everything can be considered here ; have a look at
> RefleX : there are
Mmh, I speak about the concrete example you gave us:
file('...')//*[...]. You didn't say what file() returns.
It is a crucial point.
> > But your approach is interesting, IMHO, with optional
> > arguments to specify switches, and assuming it returns
> > only file infos, not actual content.
> Of course, the content is returned only when it is
> required
How it is required?
Regards,
--drkm
p5.vert.ukl.yahoo.com uncompressed/chunked Mon Aug 28 12:13:42 GMT 2006
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences.
http://fr.answers.yahoo.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



