W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > February 2009

Re: Just for fun: spot the error

From: Thomas Roessler <tlr@w3.org>
Date: Tue, 17 Feb 2009 17:11:33 +0100
To: Richard Tobin <richard@inf.ed.ac.uk>
Message-Id: <D2CA8438-DFD9-4662-B019-44895FAD2C9A@w3.org>
Cc: <public-xml-core-wg@w3.org>
On 17 Feb 2009, at 16:44, Richard Tobin wrote:

> I had an XSLT stylesheet that generated elements with id attributes
> like this:
>
>  <place id="p-{generate-id()}">
>    ...
>
> and I wanted to use xml:id instead.  So I changed it to
>
>  <place xml:id="p-{generate-id()}">
>
> Can you see why this doesn't work?

Because it's a place element which has an ID of p-{generate-id()}?

I'm curious...
Received on Tuesday, 17 February 2009 16:11:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 February 2009 16:11:44 GMT