Subject: Re: question about generate-id()
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Fri, 6 Aug 2010 12:31:15 +0100
|
On Fri, 6 Aug 2010 09:56:10 +0100
Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> >> > 16.6.4
> >> > There is no guarantee that a generated unique identifier will be
> >> > distinct from any unique IDs specified in the source document.
> >> >
> >> > Yuk. IMHO that's a spec weakness. More constrained, surely
> >> > it's not rocket science to implement.
> >>
> >> You could do it yourself
> >
> > Which would IMHO be a kludge to work round a spec weakness.
> > Yes. Lots of ways to do it as this thread has shown.
>
> If I've followed this thread, the problem is that generate-id() might
> clash with some existing id in the source? Mixing 2 ways of creating
> the ids seems odd, and using a single consistent approach should make
> the problem go away Ultimately though, you should be validating the
> result -
If implementations did what the casual reader might assume
I wouldn't have to Andrew?
The spec, read today, with xml:id existent, is misleading.
--
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
|