Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 71442 invoked by uid 500); 17 Jul 2003 21:49:23 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 71432 invoked from network); 17 Jul 2003 21:49:22 -0000 Received: from delorean.solidusdesign.com (65.42.172.208) by daedalus.apache.org with SMTP; 17 Jul 2003 21:49:22 -0000 Received: (qmail 25438 invoked from network); 17 Jul 2003 21:49:28 -0000 Received: from unknown (HELO localhost) (192.168.3.2) by 0 with SMTP; 17 Jul 2003 21:49:28 -0000 Received: from c-67-167-164-121.client.comcast.net (c-67-167-164-121.client.comcast.net [67.167.164.121]) by secure.solidusdesign.com (IMP) with HTTP for ; Thu, 17 Jul 2003 17:40:29 -0400 Message-ID: <1058478029.3f1717cd4ec81@secure.solidusdesign.com> Date: Thu, 17 Jul 2003 17:40:29 -0400 From: Dave Brondsema To: forrest-dev@xml.apache.org Subject: Re: text2document References: <1058452088.3f16b278365e2@secure.solidusdesign.com> <1058473702.3f1706e6b2e11@secure.solidusdesign.com> <3F171125.7020600@che-che.com> In-Reply-To: <3F171125.7020600@che-che.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 67.167.164.121 X-Spam-Status: No, hits=-20.2 required=7.0 tests=HTML_20_30,IN_REP_TO,MSG_ID_ADDED_BY_MTA_3, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_IMP version=2.53 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Any plaintext file will work. The is added at the end of each line, it is not in the source file. Thanks! Quoting Juan Jose Pablos : > Dave, > > I will have a look.. have you got a test.txt this stuff? > > Make sure it got the ' ', so I can see the error as well.. > > > Cheers > > Cheche > > > > Dave Brondsema wrote: > > Quoting Dave Brondsema : > > > > > >>I would like to put some .txt files in the xdocs directory and have them > >>generate documents where the content is all the text within a tag. > > >>This seems like it would be easy to implement, but I'm not very familiar > with > >>forrest's pipelines. Anyone up for it? > >> > >>TIA, > >> > > > > > > Well.. I did it myself. It's not pretty how it takes care of line endings, > but > > it works. If someone knows how to fix it that'd be great. > > > > To implement this, use the attached files and add the following to > forrest.xmap > > in the source formats section: > > > > > > /> > > src="resources/grammars/text.xlex"/> > > src="resources/grammars/text.xgrm"/> > > src="resources/stylesheets/text2document.xsl"> > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > xmlns:st="http://chaperon.sourceforge.net/schema/syntaxtree/1.0" > > exclude-result-prefixes="st"> > > > > > method="html" > > doctype-public="-//APACHE//DTD Documentation V1.1//EN" > > doctype-system="document-v11.dtd" > > cdata-section-elements="source"/> > > > > > > > > > > > >
> > > > <xsl:value-of select="$name"/> > > > >
> > > > > > > > > > > > > > > > > > > > > > > >
> >
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
>