Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 91022 invoked from network); 11 Dec 2003 11:21:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Dec 2003 11:21:38 -0000 Received: (qmail 44859 invoked by uid 500); 11 Dec 2003 11:21:10 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 44705 invoked by uid 500); 11 Dec 2003 11:21:10 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 44688 invoked by uid 500); 11 Dec 2003 11:21:09 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 44685 invoked from network); 11 Dec 2003 11:21:09 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 11 Dec 2003 11:21:09 -0000 Received: (qmail 90919 invoked by uid 1509); 11 Dec 2003 11:21:36 -0000 Date: 11 Dec 2003 11:21:36 -0000 Message-ID: <20031211112136.90917.qmail@minotaur.apache.org> From: stephan@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/blocks/chaperon/samples/stylesheets quote2page.xsl X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N stephan 2003/12/11 03:21:36 Modified: src/blocks/chaperon/samples/grammars quote.grm quote.xgrm quote.xlex src/blocks/chaperon/samples/stylesheets quote2page.xsl Log: Update grammar for CSV files, old grammar had a shift/reduce conflict. Revision Changes Path 1.2 +13 -5 cocoon-2.1/src/blocks/chaperon/samples/grammars/quote.grm Index: quote.grm =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/grammars/quote.grm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- quote.grm 9 Mar 2003 00:02:54 -0000 1.1 +++ quote.grm 11 Dec 2003 11:21:36 -0000 1.2 @@ -1,19 +1,27 @@ %ignore "^#(.*)"; %token Comma "\,"; %token Value "[^\n\r\,]+"; -%token SoftBreak "\r(\n?) | \n"; +%token Break "\r(\n?) | \n"; %start document; %% +// with optional last break document - : document SoftBreak row - | row SoftBreak - | row + : rows Break + | rows ; +// each row seprated with one break +// and optional last space +rows + : rows Break row + | row + ; + +// values separated by spaces row - : row Comma Value + : row Comma Value | Value ; 1.2 +11 -7 cocoon-2.1/src/blocks/chaperon/samples/grammars/quote.xgrm Index: quote.xgrm =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/grammars/quote.xgrm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- quote.xgrm 9 Mar 2003 00:02:54 -0000 1.1 +++ quote.xgrm 11 Dec 2003 11:21:36 -0000 1.2 @@ -1,21 +1,25 @@ - + + - + - - - + + + + + + + - - + 1.2 +6 -5 cocoon-2.1/src/blocks/chaperon/samples/grammars/quote.xlex Index: quote.xlex =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/grammars/quote.xlex,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- quote.xlex 9 Mar 2003 00:02:54 -0000 1.1 +++ quote.xlex 11 Dec 2003 11:21:36 -0000 1.2 @@ -1,11 +1,12 @@ - + + - + @@ -17,7 +18,7 @@ - + @@ -25,11 +26,11 @@ - + - + 1.3 +4 -0 cocoon-2.1/src/blocks/chaperon/samples/stylesheets/quote2page.xsl Index: quote2page.xsl =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/stylesheets/quote2page.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- quote2page.xsl 4 Oct 2003 01:51:58 -0000 1.2 +++ quote2page.xsl 11 Dec 2003 11:21:36 -0000 1.3 @@ -51,6 +51,10 @@ + + + +