Re: ITS as a microformat (proposal)

Felix Sasaki wrote:

> If you have two values depending on each other, yes. But how would you
> validate that a singular span element needs to have a class attribute with
> the value "translateno" to express its:translate="no", without excluding
> other values for span elements?

It depends on how far and how strict you want to be. But I think that in
this case, rule like

<rule context="*[starts-with(@class, 'translate')]">
  <assert test="@class = 'translateyes' or @class =
'translateno'">Translatability of content must be marked by
class="translateyes" or class="translateno".</assert>
</rule>

This example is just simplified, there could be more values in one
class, so @class should be tokenized before testing.

-- 
------------------------------------------------------------------
  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
------------------------------------------------------------------

Received on Wednesday, 1 July 2009 21:11:59 UTC