Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8" ?>
|
---|
2 |
|
---|
3 | <project name="xslt" default="xslt" basedir=".">
|
---|
4 | <target name="init">
|
---|
5 | <mkdir dir="xml/out"/>
|
---|
6 | </target>
|
---|
7 |
|
---|
8 | <target name="teardown">
|
---|
9 | <delete dir="xml/out"/>
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <target name="testCatchNoDtd" depends="init">
|
---|
13 | <style basedir="xml" destdir="xml/out"
|
---|
14 | includes="about.xml"
|
---|
15 | extension=".txt"
|
---|
16 | style="xml/doc.xsl">
|
---|
17 | </style>
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <xmlcatalog id="xdocs.catalog">
|
---|
21 | <dtd publicID="-//stevo//DTD doc 1.0//EN"
|
---|
22 | location="xml/doc.dtd"/>
|
---|
23 | </xmlcatalog>
|
---|
24 |
|
---|
25 | <target name="testCatalog" depends="init">
|
---|
26 | <style destdir="xml/out"
|
---|
27 | includes="about.xml"
|
---|
28 | extension=".txt"
|
---|
29 | style="xml/doc.xsl">
|
---|
30 | <xmlcatalog refid="xdocs.catalog"/>
|
---|
31 | </style>
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | <target name="testOutputProperty" depends="init">
|
---|
35 | <style in="xml/test.xml"
|
---|
36 | out="xml/out/test-out.xml"
|
---|
37 | style="xml/test.xsl">
|
---|
38 | <outputproperty name="method" value="xml"/>
|
---|
39 | <outputproperty name="standalone" value="yes"/>
|
---|
40 | <outputproperty name="encoding" value="iso8859_1"/>
|
---|
41 | <outputproperty name="indent" value="yes"/>
|
---|
42 | </style>
|
---|
43 | </target>
|
---|
44 |
|
---|
45 |
|
---|
46 | <target name="testFactory" depends="init">
|
---|
47 | <style in="xml/test.xml"
|
---|
48 | out="xml/out/test-out.xml"
|
---|
49 | style="xml/test.xsl">
|
---|
50 | <factory name="org.apache.xalan.processor.TransformerFactoryImpl"/>
|
---|
51 | </style>
|
---|
52 | </target>
|
---|
53 |
|
---|
54 | <target name="testAttribute" depends="init">
|
---|
55 | <style in="xml/test.xml"
|
---|
56 | out="xml/out/test-out.xml"
|
---|
57 | style="xml/test.xsl">
|
---|
58 | <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
|
---|
59 | <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
|
---|
60 | </factory>
|
---|
61 | </style>
|
---|
62 | </target>
|
---|
63 |
|
---|
64 |
|
---|
65 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.