You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ve...@jakarta.apache.org on 2004/07/21 18:29:36 UTC
[Jakarta-Velocity Wiki] New: DVSLExamples
Date: 2004-07-21T09:29:36
Editor: TimColson <tc...@cisco.com>
Wiki: Jakarta-Velocity Wiki
Page: DVSLExamples
URL: http://wiki.apache.org/jakarta-velocity/DVSLExamples
no comment
New Page:
DVSL examples -- at some point these might be added to the Velocity DVSL documentation.
Java Streams makes DVSL usable in any Java App:
{{{
PrintWriter out = resp.getWriter();
DVSL dvsl = new DVSL();
Reader in = new InputStreamReader(System.in);
dvsl.setStylesheet("e:/xdocs/example1.dvsl");
in = new FileReader("e:/xdocs/example1.xml");
dvsl.transform(in, out);
out.flush();
}}}
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org