p:label-elements builtin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Some small changes would make this a _much_ more useful step:

 1) Add an 'attribute' option, default value 'xml:id';
 2) Generate sequential integers, and default the 'prefix' option to
    '_';
 3) Remove the 'must detect duplicates' error.

That way, I can use this to generate XSDL-style keys, or keys for
stylesheets, etc., and people who don't want to be constrained to
NCNames don't have to be.

Removing the error is much less of a big deal than it might at first
appear -- in its current form it doesn't guarantee no duplicates, and
people using this to fill gaps in a set of partially-labelled
documents will expect to use a prefix and/or suffix to avoid
collisions.

I request discussion on this to be limited to 5 minutes, followed by
an up/down vote.

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFG3CiukjnJixAXWBoRAqYtAJ4+7cJB1YOWN6PfTTAbS0dN8BYVUgCfbfnM
AFZrTQQrrbFwy+wA20wSk2M=
=j/9+
-----END PGP SIGNATURE-----

Received on Monday, 3 September 2007 15:31:03 UTC