Subject: RE: Check for duplicate @id's - collection()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 19 Jul 2008 20:03:08 +0100
|
> Can you elaborate on >id="gen.{generate-id()}
>
> I have never scene this syntax gen.
>
It's a standard attribute value template. Any attribute of a literal result
element can include embedded XPath expressions within curly braces.
Perhaps you're more used to seeing cases where the whole attribute is a
single embedded expression, as in
id="{generate-id()}"
Michael Kay
http://www.saxonica.com/
|