xsl-list
[Top] [All Lists]

Re: [xsl] improving performance in creating ids

2019-04-23 18:25:26
On Tue, 2019-04-23 at 12:08 +0000, Pieter Lamers
pieter(_dot_)lamers(_at_)benjamins(_dot_)nl wrote:
Hi All,

I need generated-ids on elements in a BITS file

I’ve often used nearby content to generate IDs (e.g. a section title
for the id of a setion); then in XSLT you can use a key to make sure
it's going to be unique (e.g. if there are duplicate section titles)
and in XQuery with a little care the key() will be done natively by the
database index so that should be fast too.

This probably doesn’t work so well if you are giving every element an
ID though.

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Web slave for vintage clipart http://www.fromoldbooks.org/
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>