Hi all,
I'm generating some code using XSLT
but the generated sources should be localized in a set of distinct files. Is there a tool/format (based on XML ?) that could be used to store the files in a jar/ar/tar-like format . I'm thinking of something like this:
<?xml version="1.0"?>
<archive>
<file path="test/Test01.java" content-type="plain-text" checksum="something">
package test;
public class Test01
{
}
</file>
<file path="test/data.properties" content-type="plain-text" checksum="something">
prop1=value1
</file>
</archive>
Updated So I want to generate this kind of XML-archive: using
xsltproc xml2java.xslt my-structure-defined-as-xml.xml > myarchive.xml
or
my-xar-tool cvf myarchive.xml test/data.properties test/Test01.java
#adding test/data.properties
#adding test/Test01.java
and to extract the content of this archive:
my-xar-tool xvf myarchive.xml
#extracting test/data.properties
#extracting test/Test01.java
Is there already an existing XML Schema describing such archive ?