On 12 Jul 2010, at 06:08, Norman Walsh wrote: > I want to add an element to the existing DocBook RNG schema which has > as its content model "text or any valid DocBook element". I don't want > "any element in the DocBook namespace" and I don't want to specify a > choice of all the hundreds of possible patterns.
I think you have to make that enumeration, sorry. I have been fighting these "any element" patterns for years in the TEI world for various reason (probably similar to yours), and I have not found any other solution. In the case of the TEI, because all schemas are generated from a higher-level representation, its pretty easy to get the "a | b | c" generated for the subset of TEI you have defined. so take the hit, and generate the extra grammar file as part of the build procedure. -- Sebastian Rahtz Information Manager, Oxford University Computing Services 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431 Sólo le pido a Dios que el futuro no me sea indiferente