Query on YAPP Usage
2007-08-22 12:45:08 GMT
We have a query on YAPP usage.
A brief about our requirement:
A BNF rule has to be used to validate a data to see whether it is as per that BNF rule. (Assume 3.45 (data) is according to BNF rule say Fraction Number)
Our understanding about YAPP:
We understand from the document available <at> http://www.o-xml.org/yapp/ that YAPP can be used to convert a BNF rule into XML and XSLT, and it also says that the parser can be called using the call-template from another xsl stylesheet.
We have added a small BNF Rule to the existing xpath-grammar.bnf under <bnf> element as below.
number ::= [.0123456789];
Expression ::= AdditiveExpression end;
AdditiveExpression ::= number | AdditiveExpression minus number | AdditiveExpression plus number;
After giving make, we see a <xsl:template name="p:AdditiveExpression"> .. .. .. .. </xsl:template> in the bnf-parser.xsl file.
When we tried calling this name template through an outsider xsl stylesheet we are getting compilation issue.
Pls help us to know if our understanding about YAPP is correct or not and how to use the bnf-parser.xsl file. Also, it would be great for us if we are provided with YAPP detailed documentation or any user guide to understand it’s specifications & usage thoroughly.
Below is the snapshot of our xsl style sheet.
<xsl:with-param name="in" select="'123 + 456 - 789'"/>
Any sort of help would be highly appreciated.
Thanks & Regards,
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
_______________________________________________ o-xml mailing list o-xml@... http://lists.pingdynasty.com/mailman/listinfo/o-xml