Merge pull request #83 from dwcramer/fixEmptyRequestResponseBug

Fix empty request response bug
This commit is contained in:
David Cramer
2013-09-26 12:34:46 -07:00
2 changed files with 21 additions and 1 deletions

View File

@@ -29,7 +29,17 @@ How Tos
Release Notes Release Notes
============= =============
clouddocs-maven-plugin 1.10.0 clouddocs-maven-plugin 1.10.1-SNAPSHOT
============================================================
- Add "Log a bug" link to OpenStack output.
- Bug fixes
- Empty Request or Response sections sometimes created if an incomplete wadl was processed.
- Reduce noise on stdout and improve ability to debug XProc pipelines (when run with --debug)
- Use Calabash 1.0.13-94 for XProc piplines.
- In api-ref page xslts, adjust xpath expressions to account for changes in wadl-tools.
clouddocs-maven-plugin 1.10.0 (September 17, 2013)
============================================================ ============================================================
- New formatting for api-ref.html output - New formatting for api-ref.html output
- Refactored API reference page layout to include plain parameters and longform doc of media type. - Refactored API reference page layout to include plain parameters and longform doc of media type.

View File

@@ -309,6 +309,7 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<!-- <xsl:copy-of select="wadl:doc/db:*[not(@role='shortdesc')] | wadl:doc/processing-instruction()" xmlns:db="http://docbook.org/ns/docbook" />--> <!-- <xsl:copy-of select="wadl:doc/db:*[not(@role='shortdesc')] | wadl:doc/processing-instruction()" xmlns:db="http://docbook.org/ns/docbook" />-->
<xsl:variable name="requestSection">
<section xml:id="{$sectionIdComputed}-Request"> <section xml:id="{$sectionIdComputed}-Request">
<title>Request</title> <title>Request</title>
<!-- About the request --> <!-- About the request -->
@@ -356,6 +357,8 @@
<xsl:copy-of select="$wadl.norequest.msg"/> <xsl:copy-of select="$wadl.norequest.msg"/>
</xsl:if> </xsl:if>
</section> </section>
</xsl:variable>
<xsl:variable name="responseSection">
<section xml:id="{$sectionIdComputed}-Response"> <section xml:id="{$sectionIdComputed}-Response">
<title>Response</title> <title>Response</title>
<!-- About the response --> <!-- About the response -->
@@ -381,6 +384,13 @@
<xsl:copy-of select="$wadl.noresponse.msg"/> <xsl:copy-of select="$wadl.noresponse.msg"/>
</xsl:if> </xsl:if>
</section> </section>
</xsl:variable>
<xsl:if test="$requestSection//d:section/*[not(self::d:title)]">
<xsl:copy-of select="$requestSection"/>
</xsl:if>
<xsl:if test="$responseSection//d:section/*[not(self::d:title)]">
<xsl:copy-of select="$responseSection"/>
</xsl:if>
</section> </section>
</xsl:template> </xsl:template>