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

Just for fun: spot the error

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Tue, 17 Feb 2009 15:44:01 +0000 (GMT)
To: <public-xml-core-wg@w3.org>
Message-Id: <20090217154401.505995C6D8D@macpro.inf.ed.ac.uk>
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?

-- Richard

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
Received on Tuesday, 17 February 2009 15:44:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:40 UTC