OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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: jirka@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 member
------------------------------------------------------------------

OpenPGP digital signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]