Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 54103 invoked from network); 28 Apr 2004 15:23:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Apr 2004 15:23:52 -0000 Received: (qmail 85723 invoked by uid 500); 28 Apr 2004 15:23:42 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 85681 invoked by uid 500); 28 Apr 2004 15:23:41 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 85607 invoked from network); 28 Apr 2004 15:23:41 -0000 Received: from unknown (HELO smtp1.synygy.com) (207.106.136.36) by daedalus.apache.org with SMTP; 28 Apr 2004 15:23:41 -0000 Received: from localhost (unknown [127.0.0.1]) by smtp1.synygy.com (Postfix) with ESMTP id 9B144194144 for ; Wed, 28 Apr 2004 10:24:12 -0400 (EDT) Received: from smtp1.synygy.com ([127.0.0.1]) by localhost (smtp1.synygy.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21315-03 for ; Wed, 28 Apr 2004 10:24:12 -0400 (EDT) Received: from webb.synygy.net (webb.synygy.net [10.12.0.217]) by smtp1.synygy.com (Postfix) with ESMTP id 1153E194071 for ; Wed, 28 Apr 2004 10:24:12 -0400 (EDT) Received: by webb.synygy.net with Internet Mail Service (5.5.2657.72) id <2NC62ML5>; Wed, 28 Apr 2004 11:22:36 -0400 Message-ID: From: "Inger, Matthew" To: "'commons-dev@jakarta.apache.org'" Subject: [Velocity-DVSL] Adding directives to DVSL Date: Wed, 28 Apr 2004 11:22:32 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new at synygy.com 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 > Can anyone tell me how to add a directive which will be available to dvsl? > > I have created a directive named "redirect", which serves the same > function > as the Xalan redirect extension. It will allow you to send the contents > of the > enclosed block to a specific file. This is useful when generating > multiple outputs > from the same XML file, such as when generating HTML with frames. > > However, I am having difficulty plugging in the attribute. I have tried > the > > under the element with no luck. I keep getting the following > error: > > E:\home\inger\jakarta-velocity-dvsl\mytest\build.xml:20: > org.apache.velocity.exception.ParseErrorException: Encountered "#end\r\n" > at line 23, column 1. > > with this dvsl fragment: > > #match ( "html" ) > #redirect ( "$attrib.path" ) > > > $node.copy($node.children()) > > > #end > #end > > > Any help would be appreciated. > > ---------------------- > Matthew Inger > Design Architect > Synygy, Inc > 610-664-7433 x7770 > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org