On 15.5.2014 9:06, Bergfrid Skaara wrote:
> At this point I get validation errors like "group of string or data
> element". How do I tweak the docbookxi.rng (in my customization layer rng
> file) to allow this construction with semicolons, which is clearly allowed
> by the shema without enforcing enumeration values?

List types in RELAX NG are only space separated. You can either use
space instead of semicolons to separate profiling values (there is
parameter profile.separator in stylesheet to support such change).

If you want to stick with semicolon, you can use regular expression in
schema to validate your profiling values:

<define name="my.audience">
  <data type="string">
      <param name="pattern">(gui|admin|...)*</param>
    </data>
</define>

                                        Jirka


-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: ji...@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to