Skip to content

Commit 312fd94

Browse files
committed
Update to Passthrough 4.0
- Update test - Update POM - Update plugin
1 parent cb2d833 commit 312fd94

File tree

20 files changed

+3787
-1720
lines changed

20 files changed

+3787
-1720
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
**/temp/**
33
**/tmp/**
44

5+
target/
6+
classes/
7+
lib/ant-*.jar
8+
lib/ant-launcher-*.jar
9+
510
.scannerwork/
611

712
*~

Customization/xsl/class.xsl

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
This file is part of the DITA-OT Doxygen Plug-in project.
44
See the accompanying LICENSE file for applicable licenses.
55
-->
6-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6+
<xsl:stylesheet exclude-result-prefixes="dita-ot" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
77
xmlns:xs="http://www.w3.org/2001/XMLSchema"
88
xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot"
9-
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
109
version="2.0">
1110
<!--
1211
Class Overview
1312
-->
1413
<xsl:template match="compounddef" mode="class">
15-
<topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" xmlns:dita="http://dita-ot.sourceforge.net/ns/201007/dita-ot" class="- topic/topic " ditaarch:DITAArchVersion="1.3" props="doxygen">
14+
<topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" class="- topic/topic " props="doxygen">
1615
<xsl:attribute name="id">
1716
<xsl:value-of select="dita-ot:name-to-id(compoundname)"/>
1817
</xsl:attribute>
@@ -36,13 +35,13 @@
3635
<xsl:if test="basecompoundref/@refid">
3736
<xsl:if test="starts-with(basecompoundref/@refid, 'interface')">
3837
<p class="- topic/p ">
39-
<b class=" hi-d/b ">
38+
<b class="+ topic/ph hi-d/b ">
4039
<xsl:text>All Implemented Interfaces:</xsl:text>
4140
</b>
4241
</p>
43-
<ul class=" topic/ul ">
42+
<ul class="- topic/ul ">
4443
<xsl:for-each select="basecompoundref">
45-
<li class=" topic/li ">
44+
<li class="- topic/li ">
4645
<xsl:call-template name="add-link" >
4746
<xsl:with-param name="type" select="'topic'" />
4847
<xsl:with-param name="href" select="concat('#', .)" />
@@ -55,13 +54,13 @@
5554
</xsl:if>
5655
<xsl:if test="derivedcompoundref">
5756
<p class="- topic/p ">
58-
<b class=" hi-d/b ">
57+
<b class="+ topic/ph hi-d/b ">
5958
<xsl:text>Direct Known Subclasses:</xsl:text>
6059
</b>
6160
</p>
62-
<ul class=" topic/ul ">
61+
<ul class="- topic/ul ">
6362
<xsl:for-each select="derivedcompoundref">
64-
<li class=" topic/li ">
63+
<li class="- topic/li ">
6564
<xsl:call-template name="add-link" >
6665
<xsl:with-param name="type" select="'topic'" />
6766
<xsl:with-param name="href" select="concat('#', .)" />
@@ -72,10 +71,10 @@
7271
</ul>
7372
</xsl:if>
7473

75-
<codeblock class=" pr-d/codeblock ">
74+
<codeblock class="+ topic/pre pr-d/codeblock ">
7675
<xsl:attribute name="xtrc" select="concat('codeblock:',generate-id(.),'1')"/>
7776
<xsl:value-of select="concat(@prot, ' class ')"/>
78-
<b class=" hi-d/b "><xsl:value-of select="replace(compoundname,'^.*::','')"/></b>
77+
<b class="+ topic/ph hi-d/b "><xsl:value-of select="replace(compoundname,'^.*::','')"/></b>
7978
<xsl:choose>
8079
<xsl:when test="basecompoundref/@refid">
8180
<xsl:variable name="extends" select="basecompoundref/@refid"/>
@@ -174,23 +173,23 @@
174173
Constructor Summary
175174
-->
176175
<xsl:template name="add-constructor-summary">
177-
<table class=" topic/table " outputclass="constructor_summary">
178-
<tgroup class=" topic/tgroup " cols="1">
179-
<colspec class=" topic/colspec " colname="c1" colnum="1" colwidth="100%"/>
180-
<thead class=" topic/thead ">
181-
<row class=" topic/row ">
182-
<entry class=" topic/entry " colname="c1" dita-ot:x="1" align="left">
176+
<table class="- topic/table " outputclass="constructor_summary">
177+
<tgroup class="- topic/tgroup " cols="1">
178+
<colspec class="- topic/colspec " colname="c1" colnum="1" colwidth="100%"/>
179+
<thead class="- topic/thead ">
180+
<row class="- topic/row ">
181+
<entry class="- topic/entry " colname="c1" align="left">
183182
<xsl:text>Constructor and Description</xsl:text>
184183
</entry>
185184
</row>
186185
</thead>
187-
<tbody class=" topic/tbody ">
186+
<tbody class="- topic/tbody ">
188187
<xsl:for-each select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']">
189188
<xsl:sort select="name"/>
190189
<xsl:variable name="constructor" select="name"/>
191-
<row class=" topic/row ">
192-
<entry class=" topic/entry " colname="c1" dita-ot:x="1" align="left">
193-
<codeph class=" pr-d/codeph ">
190+
<row class="- topic/row ">
191+
<entry class="- topic/entry " colname="c1" align="left">
192+
<codeph class="+ topic/ph pr-d/codeph ">
194193
<xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'1')"/>
195194
<xsl:call-template name="add-link" >
196195
<xsl:with-param name="type" select="'table'" />
@@ -221,7 +220,7 @@
221220
<xsl:template match="memberdef" mode="constructor">
222221
<xsl:variable name="constructor" select="name"/>
223222
<xsl:variable name="constructor_details">
224-
<codeblock class=" pr-d/codeblock ">
223+
<codeblock class="+ topic/pre pr-d/codeblock ">
225224
<xsl:attribute name="xtrc" select="concat('codeblock:',generate-id(.),'9')"/>
226225
<xsl:value-of select="$constructor"/>
227226
<xsl:call-template name="add-signature"/>
@@ -237,7 +236,7 @@
237236
<xsl:call-template name="parameter-description"/>
238237
</xsl:variable>
239238

240-
<table class=" topic/table " outputclass="constructor_details">
239+
<table class="- topic/table " outputclass="constructor_details">
241240
<xsl:attribute name="id">
242241
<xsl:value-of select="concat('constructors_',$constructor)"/>
243242
<xsl:if test="count(../memberdef[name=$constructor])&gt;1">
@@ -258,36 +257,36 @@
258257
Field Summary
259258
-->
260259
<xsl:template name="add-field-summary">
261-
<table class=" topic/table " outputclass="field_summary">
262-
<tgroup class=" topic/tgroup " cols="2">
263-
<colspec class=" topic/colspec " colname="c1" colnum="1" colwidth="25%"/>
264-
<colspec class=" topic/colspec " colname="c2" colnum="2" colwidth="75%"/>
265-
<thead class=" topic/thead ">
266-
<row class=" topic/row ">
267-
<entry class=" topic/entry " colname="c1" dita-ot:x="1" align="left">
260+
<table class="- topic/table " outputclass="field_summary">
261+
<tgroup class="- topic/tgroup " cols="2">
262+
<colspec class="- topic/colspec " colname="c1" colnum="1" colwidth="25%"/>
263+
<colspec class="- topic/colspec " colname="c2" colnum="2" colwidth="75%"/>
264+
<thead class="- topic/thead ">
265+
<row class="- topic/row ">
266+
<entry class="- topic/entry " colname="c1" align="left">
268267
<xsl:text>Modifier and Type</xsl:text>
269268
</entry>
270-
<entry class=" topic/entry " colname="c2" dita-ot:x="2" align="left">
269+
<entry class="- topic/entry " colname="c2" align="left">
271270
<xsl:text>Field and Description</xsl:text>
272271
</entry>
273272
</row>
274273
</thead>
275-
<tbody class=" topic/tbody ">
274+
<tbody class="- topic/tbody ">
276275
<xsl:for-each select="sectiondef[contains(@kind,'-attrib')]/memberdef[@kind='variable' and @prot='public']">
277276
<xsl:sort select="name"/>
278277
<xsl:variable name="field" select="name"/>
279-
<row class=" topic/row ">
280-
<entry class=" topic/entry " colname="c1" dita-ot:x="1" align="left">
281-
<codeph class=" pr-d/codeph ">
278+
<row class="- topic/row ">
279+
<entry class="- topic/entry " colname="c1" align="left">
280+
<codeph class="+ topic/ph pr-d/codeph ">
282281
<xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'3')"/>
283282
<xsl:call-template name="add-modifiers"/>
284283
<xsl:call-template name="add-class-link">
285284
<xsl:with-param name="class" select="type"/>
286285
</xsl:call-template>
287286
</codeph>
288287
</entry>
289-
<entry class=" topic/entry " colname="c2" dita-ot:x="2" align="left">
290-
<codeph class=" pr-d/codeph ">
288+
<entry class="- topic/entry " colname="c2" align="left">
289+
<codeph class="+ topic/ph pr-d/codeph ">
291290
<xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'4')"/>
292291
<xsl:call-template name="add-link" >
293292
<xsl:with-param name="type" select="'table'" />
@@ -317,7 +316,7 @@
317316
<xsl:template match="memberdef" mode="field">
318317
<xsl:variable name="field" select="name"/>
319318
<xsl:variable name="field_details">
320-
<codeph class=" pr-d/codeph ">
319+
<codeph class="+ topic/ph pr-d/codeph ">
321320
<xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'5')"/>
322321
<xsl:value-of select="concat(@scope, ' ')"/>
323322
<xsl:if test="@static='true'">
@@ -334,7 +333,7 @@
334333
<xsl:call-template name="parse-detailed-description"/>
335334
</xsl:variable>
336335

337-
<table class=" topic/table " outputclass="field_details">
336+
<table class="- topic/table " outputclass="field_details">
338337
<xsl:attribute name="id">
339338
<xsl:value-of select="concat('fields_',$field)"/>
340339
<xsl:if test="count(../memberdef[name=$field])&gt;1">

Customization/xsl/enum.xsl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
This file is part of the DITA-OT Doxygen Plug-in project.
44
See the accompanying LICENSE file for applicable licenses.
55
-->
6-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6+
<xsl:stylesheet exclude-result-prefixes="dita-ot" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
77
xmlns:xs="http://www.w3.org/2001/XMLSchema"
88
xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot"
9-
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
109
version="2.0">
1110

1211
<!--
1312
Enumeration Overview
1413
-->
1514
<xsl:template match="compounddef" mode="enum">
16-
<topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" xmlns:dita="http://dita-ot.sourceforge.net/ns/201007/dita-ot" class="- topic/topic " ditaarch:DITAArchVersion="1.3" props="doxygen">
15+
<topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" class="- topic/topic " props="doxygen">
1716
<xsl:attribute name="id">
1817
<xsl:value-of select="dita-ot:name-to-id(compoundname)"/>
1918
</xsl:attribute>
@@ -30,10 +29,10 @@
3029
</searchtitle>
3130
</titlealts>
3231
<body class="- topic/body " outputclass="java">
33-
<codeblock class=" pr-d/codeblock ">
32+
<codeblock class="+ topic/pre pr-d/codeblock ">
3433
<xsl:attribute name="xtrc" select="concat('codeblock:',generate-id(.),'2')"/>
3534
<xsl:value-of select="concat(@prot, ' enum ')"/>
36-
<b class=" hi-d/b "><xsl:value-of select="replace(compoundname,'^.*::','')"/></b>
35+
<b class="+ topic/ph hi-d/b "><xsl:value-of select="replace(compoundname,'^.*::','')"/></b>
3736
</codeblock>
3837
<xsl:value-of select="briefdescription"/>
3938
<xsl:if test="sectiondef[contains(@kind,'-attrib')]/memberdef[@kind='variable']">
@@ -53,11 +52,11 @@
5352
Constant Summary
5453
-->
5554
<xsl:template name="add-constant-summary">
56-
<ul class=" topic/ul ">
55+
<ul class="- topic/ul ">
5756
<xsl:for-each select="sectiondef[contains(@kind,'-attrib')]/memberdef[@kind='variable']">
5857
<xsl:sort select="name"/>
5958
<xsl:variable name="constant" select="name"/>
60-
<li class=" topic/li ">
59+
<li class="- topic/li ">
6160
<xsl:value-of select="$constant" />
6261
<xsl:if test="comment">
6362
<xsl:value-of select="concat (' - ',substring-before(comment,'.'),'.')"/>

Customization/xsl/html-processing.xsl

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
This file is part of the DITA-OT Doxygen Plug-in project.
44
See the accompanying LICENSE file for applicable licenses.
55
-->
6-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6+
<xsl:stylesheet exclude-result-prefixes="dita-ot" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
77
xmlns:xs="http://www.w3.org/2001/XMLSchema"
88
xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot"
9-
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
109
version="2.0">
1110

1211
<!--
@@ -23,7 +22,7 @@
2322
-->
2423
<xsl:template match="h1|h2|h3|h4|h5|h6" mode="html">
2524
<p class="- topic/p ">
26-
<b class=" hi-d/b ">
25+
<b class="+ topic/ph hi-d/b ">
2726
<xsl:apply-templates mode="html"/>
2827
</b>
2928
</p>
@@ -44,7 +43,7 @@
4443
Unordered list processing
4544
-->
4645
<xsl:template match="ul" mode="html">
47-
<ul class=" topic/ul ">
46+
<ul class="- topic/ul ">
4847
<xsl:apply-templates mode="html"/>
4948
</ul>
5049
</xsl:template>
@@ -53,7 +52,7 @@
5352
Ordered list processing
5453
-->
5554
<xsl:template match="ol" mode="html">
56-
<ol class=" topic/ol ">
55+
<ol class="- topic/ol ">
5756
<xsl:apply-templates mode="html"/>
5857
</ol>
5958
</xsl:template>
@@ -65,18 +64,18 @@
6564
<xsl:template match="li" mode="html">
6665
<xsl:choose>
6766
<xsl:when test="../name()='ul'">
68-
<li class=" topic/li ">
67+
<li class="- topic/li ">
6968
<xsl:apply-templates mode="html"/>
7069
</li>
7170
</xsl:when>
7271
<xsl:when test="../name()='ol'">
73-
<li class=" topic/li ">
72+
<li class="- topic/li ">
7473
<xsl:apply-templates mode="html"/>
7574
</li>
7675
</xsl:when>
7776
<xsl:otherwise>
78-
<ul class=" topic/ul ">
79-
<li class=" topic/li ">
77+
<ul class="- topic/ul ">
78+
<li class="- topic/li ">
8079
<xsl:apply-templates mode="html"/>
8180
</li>
8281
</ul>
@@ -88,7 +87,7 @@
8887
Code processing
8988
-->
9089
<xsl:template match="code" mode="html">
91-
<codeph class=" pr-d/codeph ">
90+
<codeph class="+ topic/ph pr-d/codeph ">
9291
<xsl:apply-templates mode="html"/>
9392
</codeph>
9493
</xsl:template>
@@ -97,7 +96,7 @@
9796
Bold/Strong processing
9897
-->
9998
<xsl:template match="b|strong" mode="html">
100-
<b class=" hi-d/b ">
99+
<b class="+ topic/ph hi-d/b ">
101100
<xsl:apply-templates mode="html"/>
102101
</b>
103102
</xsl:template>
@@ -115,7 +114,7 @@
115114
Anchor processing
116115
-->
117116
<xsl:template match="a" mode="html">
118-
<xref class=" topic/xref " format="dita" scope="external">
117+
<xref class="- topic/xref " format="dita" scope="external">
119118
<xsl:attribute name="href">
120119
<xsl:value-of select="@href"/>
121120
</xsl:attribute>
@@ -139,7 +138,7 @@
139138
<xsl:when test="../name()='root'">
140139
<xsl:choose>
141140
<xsl:when test="contains($text,'&#10;&#10;') ">
142-
<lines class=" topic/lines ">
141+
<lines class="- topic/lines ">
143142
<xsl:value-of select="$text"/>
144143
</lines>
145144
</xsl:when>

Customization/xsl/interface.xsl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
This file is part of the DITA-OT Doxygen Plug-in project.
44
See the accompanying LICENSE file for applicable licenses.
55
-->
6-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6+
<xsl:stylesheet exclude-result-prefixes="dita-ot" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
77
xmlns:xs="http://www.w3.org/2001/XMLSchema"
88
xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot"
9-
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
109
version="2.0">
1110
<!--
1211
Interface Overview
1312
-->
1413
<xsl:template match="compounddef" mode="interface">
15-
<topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" xmlns:dita="http://dita-ot.sourceforge.net/ns/201007/dita-ot" class="- topic/topic " ditaarch:DITAArchVersion="1.3" props="doxygen">
14+
<topic domains="(topic abbrev-d) a(props deliveryTarget) (topic equation-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic markup-d) (topic mathml-d) (topic pr-d) (topic relmgmt-d) (topic sw-d) (topic svg-d) (topic ui-d) (topic ut-d) (topic markup-d xml-d)" class="- topic/topic " props="doxygen">
1615
<xsl:attribute name="id">
1716
<xsl:value-of select="dita-ot:name-to-id(compoundname)"/>
1817
</xsl:attribute>
@@ -29,10 +28,10 @@
2928
</searchtitle>
3029
</titlealts>
3130
<body class="- topic/body " outputclass="java">
32-
<codeblock class=" pr-d/codeblock ">
31+
<codeblock class="+ topic/pre pr-d/codeblock ">
3332
<xsl:attribute name="xtrc" select="concat('codeblock:',generate-id(.),'7')"/>
3433
<xsl:value-of select="concat(@prot, ' interface ')"/>
35-
<b class=" hi-d/b ">
34+
<b class="+ topic/ph hi-d/b ">
3635
<xsl:variable name="class" select="replace(compoundname, '^.*::','')"/>
3736
<xsl:call-template name="add-class-link">
3837
<xsl:with-param name="class" select="$class"/>

0 commit comments

Comments
 (0)