[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: OO 2.0.3/xhtml export/DCMI
You can automate the zipping/unzipping with a Java servlet such as
Tomcat, e.g.
1. _unzip.jsp_ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %> <c:import url="unzip.xsl" var="xsldoc"/> <x:transform xslt="${xsldoc}"> <x:param name="uri" value="unzip.jsp" /> <c:import url="unzip.jspx"> <c:param name="path" value="C:\\Program Files\\Apache\\Tomcat 5.5\\webapps\\xjsp\\" /> </c:import> </x:transform> 2. _unzip.jspx_ uses java.util.zip to extract meta.xml and writes it to stdout (JspWriter). (email me if you need a copy - too long to post here) 3. Substitute _unzip.xsl_ above with your xslt file. In the other direction, you can use java.util.zip to replace meta.xml with your XSLT-transformed copy and write it to an octet-stream. Great idea - can I borrow it? Other possibilities: 1. A user can login to a webpage and "create" an open office document (the webapp then substitutes their name & details in meta.xml) and the ODT file is then sent back to them as an octet stream 2. Open an MS-Word document in Open Office, save as .ODT, open with java.util.zip, transform and show meta info (originally from MS-Word) On 7/31/06, Gannon Dick <gannon_dick@xxxxxxxxx> wrote:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|