Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Victory has been declared in the schema wars ...

From: "Rick Jelliffe" <rjelliffe@-------.---.-->
To: "peter murray-rust" <pm286@---.--.-->
Date: 12/2/2006 8:09:00 PM
> This starts to show the limitations of Schematron/XSLT. There are
> actually 3 stop codon sequences so the description is either verbose
> or nested or impossible.

Oops, typo

   <pattern is-a="DNAStopCodon" >
      <param name="CodonName" value="'UAA'"/>
      <param name="DNAString" value=" DNASequence " />
      <param name="CodonPath"
             value="U[following-sibling::A[following-sibling::A]]"/>
   </pattern>

   <pattern is-a="DNAStopCodon" >
      <param name="CodonName" value="'UGA'"/>
      <param name="DNAString" value=" DNASequence " />
      <param name="CodonPath"
             value="U[following-sibling::G[following-sibling::A]]"/>
   </pattern>

   <pattern is-a="DNAStopCodon" >
      <param name="CodonName" value="'UAG'"/>
      <param name="DNAString" value=" DNASequence " />
      <param name="CodonPath"
             value="U[following-sibling::A[following-sibling::G]]"/>
   </pattern>


> So I would like to be able to call a function like:
> DNAPROG.isStopCodon(...)

Oh, its just an example. You could certain have

     <rule
context="DNASequence/U[following-sibling::A[following-sibling::G or
following-sibling::A] or
following-sibling::G[following-sibling::A]]">
        <assert test=" something "> ....

with no abstract patterns, at the expense of losing declarative labels
(which has the side-effect of verbosity, cannot be helped.)

Cheers
Rick Jelliffe


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent