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

Re: Just for fun: spot the error

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Tue, 17 Feb 2009 16:22:14 +0000 (GMT)
To: Thomas Roessler <tlr@w3.org>, Richard Tobin <richard@inf.ed.ac.uk>
Cc: <public-xml-core-wg@w3.org>
Message-Id: <20090217162214.22CBC5C6E26@macpro.inf.ed.ac.uk>

> >  <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()}?

Yes, which is an xml:id error, because of the non-name-characters.

I exaggerated when I said it doesn't work, because it's not a fatal
error, but the stylesheet document does not conform to xml:id.

-- Richard

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
Received on Tuesday, 17 February 2009 16:22:54 GMT

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