Query on YAPP Usage
Hi,
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:template match=”/”>
.
.
<xsl:call-template name="p:Expression">
<xsl:with-param name="in" select="'123 + 456 - 789'"/>
</xsl:call-template>
.
.
</xsl:template>
Any sort of help would be highly appreciated.
Thanks & Regards,
Pnvd Sudhir
|
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. www.wipro.com |
_______________________________________________ o-xml mailing list o-xml@... http://lists.pingdynasty.com/mailman/listinfo/o-xml
RSS Feed