W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > December 2008

RE: uuid question

From: <Toman_Vojtech@emc.com>
Date: Fri, 5 Dec 2008 07:26:22 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870DAFA84D@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

> Hi all,
> Does p:uuid generate *one* UUID, or separate UUIDs for each of the
> matching nodes? I think it is the former, but it is not 100% clear in
> the spec.

Also, I think we are missing something in the declaration of p:uuid. If
you want to generate level 3/5 UUIDs (MD5/SHA-1 hash based), you need to
be able to pass an input value for the UUID algoritm. Perhaps we could
do the same thing as with p:hash and add the "value" option to p:uuid
(...or we could simply say that level 3/5 UUIDs are not supported).


I also have one general (and heretical?) question about p:uuid and
p:hash: Why do we have these steps at all? They are just a special form
of p:string-replace, ...so what if we had p:uuid() and p:hash() as XPath
extension functions? I know it would mean to define a nice APIs for
these functions, whether and how they accept additional parameters etc.,
but in the end, I think we could gain much more flexibility. But it is
probably too late for considering such a big change, plus there may be
other serious arguments against this which I don't see... But I am just
curious about your opinion.

Received on Friday, 5 December 2008 12:27:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC