Skip to content

Commit a63ee84

Browse files
authored
Schematron validation message: restore the logic to resolve validation messages starting with '$loc' (#8878)
Follow up of #8665 where the change expects to contain /strings
1 parent aebb270 commit a63ee84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/main/webapp/WEB-INF/classes/schematron/iso_svrl_for_xslt2.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@
544544
<xsl:template name="svrl-text">
545545
<svrl:text>
546546
<xsl:choose>
547-
<xsl:when test="contains(., '$loc/strings/')">
547+
<xsl:when test="starts-with(., '$loc') or contains(., '$loc/strings/')">
548548
<xsl:element name="xsl:copy-of">
549549
<xsl:attribute name="select">
550550
<xsl:apply-templates mode="text"/>
@@ -589,7 +589,7 @@
589589
<xsl:if test=" string( $name )">
590590
<axsl:attribute name="name">
591591
<xsl:choose>
592-
<xsl:when test="contains($name, '$loc/strings/')">
592+
<xsl:when test="starts-with(., '$loc') or contains($name, '$loc/strings/')">
593593
<axsl:value-of>
594594
<xsl:attribute name="select">
595595
<xsl:value-of select="$name"/>

0 commit comments

Comments
 (0)