PPT Slide
xml ::= XML_DECLARATION DOCTYPE_DECLARATION bookCatalogue:b {: System.out.println(b); :}
bookCatalogue ::= BookCatalogue_ST books:b BookCatalogue_ET
{: RESULT = "<HTML><BODY><TABLE border=\"1\">" + b + "</TABLE></BODY></HTML>"; :}
books ::= book:b1 {: RESULT = b1; :}
books:b1 book:b2 {: RESULT = "" + b1 + b2; :}
book ::= Book_ST title:t author:a date:d isbn:i publisher:p Book_ET
{: RESULT = "<TR>" + t + a + d + i + p + "</TR>"; :}
title ::= Title_ST PCDATA:title Title_ET {: RESULT = "<TD>" + title + "</TD>"; :}
author ::= Author_ST PCDATA:author Author_ET {: RESULT = "<TD>" + author + "</TD>"; :}
date ::= Date_ST PCDATA:date Date_ET {: RESULT = "<TD>" + date + "</TD>"; :}
isbn ::= ISBN_ST PCDATA:isbn ISBN_ET {: RESULT = "<TD>" + isbn + "</TD>"; :}
publisher ::= Publisher_ST PCDATA:publisher Publisher_ET {: RESULT = "<TD>" + publisher + "</TD>"; :}