xsl-list
[Top] [All Lists]

Re: [xsl] OO 2.0.3/xhtml export/DCMI

2006-08-03 05:10:08
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(_at_)yahoo(_dot_)com> wrote:

I describe
1. a process for managing the meta data in (*.odt) OpenDocument Text
files and
2. give a transform to rewrite and supplement the meta data in a xhtml
export to use exclusively DCMI elements and terms.

http://www.geocities.com/gannon_dick/MetaData.pdf

Any comments would be appreciated.

Gannon

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>