limit on number of attributes
Wednesday, 9 March 2011 · 3 messages · last reply 10 Mar 2011
CG
...thanks for your e-mail. We are glad to report that this issue has been fixed since Version 6.5 of BaseX; we now support up to 2^31 attributes per element. If the issue should persist for some other reason, feel free to give us more details on the documents in question.
Hope this helps,
Christian
PS: Do you have a link to the XML version of the Unicode Database?
Quoted text · C. M. Sperberg-McQueen · 31 lines
On Wed, Mar 9, 2011 at 11:05 PM, C. M. Sperberg-McQueen <cmsmcq at blackmesatech.com> wrote: > Trying to use BaseX to index the XML version of the > Unicode Database, I got a message saying an > element had been encountered with too many attributes > (more than 32). > > Is there a way to lift this limit for a particular database? > If one wants to work with the Unicode database in XML > (and let's face it, it will be a lot nicer in XML than in the > semicolon-delimited form of the early Unicode releases), > then one is going to have to work with elements which > have a lot of attributes (haven't counted, probably > fewer than a hundred). > > -- C. M. Sperberg-McQueen > **************************************************************** > * C. M. Sperberg-McQueen, Black Mesa Technologies LLC > * http://www.blackmesatech.com > * http://cmsmcq.com/mib > * http://balisage.net > **************************************************************** > > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
CS
C. M. Sperberg-McQueen10 Mar 2011 00:06 #
Trying to use BaseX to index the XML version of the
Unicode Database, I got a message saying an
element had been encountered with too many attributes
(more than 32).
Is there a way to lift this limit for a particular database? If one wants to work with the Unicode database in XML
(and let's face it, it will be a lot nicer in XML than in the semicolon-delimited form of the early Unicode releases),
then one is going to have to work with elements which
have a lot of attributes (haven't counted, probably
fewer than a hundred).
-- C. M. Sperberg-McQueen
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com
* http://cmsmcq.com/mib
* http://balisage.net
****************************************************************
CG
Dear Michael,
I had a quick look at the Unicode XML files located at
http://www.unicode.org/Public/6.0.0/ucdxml/
and the following query returns an element with the impressing number of 167 attributes with the latest version of BaseX:
(for $n in //*
order by count($n/@*) descending
return $n)[1]All the best,
Christian
Quoted text · Christian Grün · 36 lines
On Wed, Mar 9, 2011 at 11:13 PM, Christian Grün <christian.gruen at gmail.com> wrote: > ...thanks for your e-mail. We are glad to report that this issue has > been fixed since Version 6.5 of BaseX; we now support up to 2^31 > attributes per element. If the issue should persist for some other > reason, feel free to give us more details on the documents in > question. > > Hope this helps, > Christian > > PS: Do you have a link to the XML version of the Unicode Database? > > > On Wed, Mar 9, 2011 at 11:05 PM, C. M. Sperberg-McQueen > <cmsmcq at blackmesatech.com> wrote: >> Trying to use BaseX to index the XML version of the >> Unicode Database, I got a message saying an >> element had been encountered with too many attributes >> (more than 32). >> >> Is there a way to lift this limit for a particular database? >> If one wants to work with the Unicode database in XML >> (and let's face it, it will be a lot nicer in XML than in the >> semicolon-delimited form of the early Unicode releases), >> then one is going to have to work with elements which >> have a lot of attributes (haven't counted, probably >> fewer than a hundred). >> >> -- C. M. Sperberg-McQueen >> **************************************************************** >> * C. M. Sperberg-McQueen, Black Mesa Technologies LLC >> * http://www.blackmesatech.com >> * http://cmsmcq.com/mib >> * http://balisage.net >> ****************************************************************
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery