Re: [docbook-apps] Using Schematron to define templates

From
Jirka Kosek <>
Date
2008-05-21T15:32:44+00:00
ID
Thread
Re: [docbook-apps] Using Schematron to define templates
Keith Fahlgren wrote:

>       <report test='imageobject[@role="web"]/imagedata[@format[not(.="PNG")
> and not(.="JPG") and
> not(.="GIF")]]'>imageobject[@role="web"]/imagedata must be
> @format="PNG|GIF|JPG"</report>

Just quick note, in XPath 2.0 there are sequences as a new datatype and 
you can write:

not(. = ('PNG', 'JPG', 'GIF'))

But sorry for OT on DocBook list ;-)

			Jirka

-- 
------------------------------------------------------------------
   Jirka Kosek      e-mail:       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 member
------------------------------------------------------------------