Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Reverse the logic of autodetecting `only-child-elements' #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ which require a preprocess.
-->
<xsl:param name="only-child-elements">
<xsl:choose>
<xsl:when test="//iso:rule[contains(@context,'(')]">true</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
<xsl:when test="//iso:rule[contains(@context,'(')]">false</xsl:when>
<xsl:otherwise>true</xsl:otherwise>
</xsl:choose>
</xsl:param>

Expand Down
4 changes: 2 additions & 2 deletions trunk/schematron/code/iso_schematron_skeleton_for_xslt1.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ THE SOFTWARE.
-->
<xsl:param name="only-child-elements">
<xsl:choose>
<xsl:when test="//iso:rule[contains(@context,'(')]">true</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
<xsl:when test="//iso:rule[contains(@context,'(')]">false</xsl:when>
<xsl:otherwise>true</xsl:otherwise>
</xsl:choose>
</xsl:param>

Expand Down