W dniu 2014-03-22 14:45, Dave Pawson pisze:
> Schematron[1] is a tool to allow subtle checking of XML content.
> My previous example I now find is wrong semantically?
>
> I *think* that
>
> <rule id="CONFUSION_OF_bare_bear" name="confusion of bare/bear">
>      <pattern>
>          <token>bear</token>
>      </pattern>
>      <message>Did you mean <suggestion>bare</suggestion> feet?</message>
>      <example type="incorrect">Sorry for my <marker>bear</marker> 
> feet.</example>
>      <example type="correct">Sorry for my bare feet.</example>
> </rule>
>
> is correct. One Schematron check which could be done
> is to ensure that /rule/pattern/token = /example[@type='incorrect']/marker
>
> Just to check that the examples are the right way round?
> Would this be helpful?
>
> [1] http://www.schematron.com/

Well, we already have this check in place in our JUnit tests. I'm not 
sure if adding a single Schematron check just to check what is already 
checked is not really overkill. Sure, it's not a check in XML but on the 
level of our rule tests but the rules have to be tested anyway.

Regards,
Marcin

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to