PageRenderTime 66ms CodeModel.GetById 59ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/Console/console/commands/openjade_HTML.xml

#
XML | 75 lines | 58 code | 16 blank | 1 comment | 0 complexity | a9387b91cffcd01a84bdae480ae9dc8a MD5 | raw file
 1<?xml version="1.0" ?>
 2
 3<!-- This was based around openjade (openjade.sourceforge.net) version 1.3 -->
 4
 5<!DOCTYPE COMMANDO SYSTEM "commando.dtd">
 6
 7<COMMANDO>
 8	<UI>
 9		<CAPTION LABEL="Generic parameters">
10
11		<FILE_ENTRY LABEL="Stylesheet" VARNAME="stylesheet" />
12		<DIR_ENTRY LABEL="Output directory" VARNAME="dir" DEFAULT="." />
13		<ENTRY LABEL="Declaration" VARNAME="dcl" />
14		<FILE_ENTRY LABEL="File name" VARNAME="file"
15			EVAL="buffer.getPath()" />
16
17		</CAPTION>
18
19		<CAPTION LABEL="Stylesheet parameters">
20
21		<TOGGLE LABEL="No chunks (DocBook only)" VARNAME="nochunks" />
22		<TOGGLE LABEL="Write root chunk (DocBook only)" VARNAME="rootchunk" />
23		<ENTRY LABEL="Additional parameters" VARNAME="extra" />
24
25		</CAPTION>
26	</UI>
27
28	<COMMANDS>
29		<COMMAND CONFIRM="FALSE" SHELL="System">
30			buf = new StringBuffer("openjade");
31
32			if(!stylesheet.equals(""))
33			{
34				buf.append(" -d \"");
35				buf.append(stylesheet);
36				buf.append('"');
37			}
38
39			if(!dir.equals(""))
40			{
41				buf.append(" -D \"");
42				buf.append(dir);
43				buf.append('"');
44			}
45
46			buf.append(" -t sgml");
47
48			if(nochunks)
49				buf.append(" -Vnochunks");
50
51			if(rootchunk)
52				buf.append(" -Vrootchunk");
53
54			if(!extra.equals(""))
55			{
56				buf.append(' ');
57				buf.append(extra);
58			}
59
60			if(!dcl.equals(""))
61			{
62				buf.append(" \"");
63				buf.append(dcl);
64				buf.append('"');
65			}
66
67			buf.append(" \"");
68			buf.append(file);
69			buf.append('"');
70
71			// return value
72			buf.toString();
73		</COMMAND>
74	</COMMANDS>
75</COMMANDO>