Skip to content
This repository was archived by the owner on Feb 9, 2019. It is now read-only.

Nested documentation nodes #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions xs3p.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,7 @@ pre {
Emtpy template to avoid unwanted output in 'hiddendoc' mode
-->
<xsl:template match="text()" mode="hiddendoc"/>

<xsl:template match="xsd:element | xsd:attribute | xsd:simpleType" mode="hiddendoc">
<xsl:if test="./xsd:annotation/xsd:documentation">
<xsl:variable name="documentation">
Expand Down Expand Up @@ -2530,16 +2530,7 @@ pre {
</div>
</div>
</xsl:if>
</xsl:template>

<!--
Print hidden documentation blocks for each documented element.
Generates pop-up divs for 'annotation' elements, if required.
Param(s):
component (Node) required
Schema component
-->
<xsl:template match="*" mode="hiddendoc">

<xsl:apply-templates select="child::node()" mode="hiddendoc"/>
</xsl:template>

Expand Down