a.binder 6 anos atrás
pai
commit
daf7532bec

+ 3 - 3
SE/schema/default_db_xml_cache.public/escaped_html_to_xml.xsl

@@ -175,12 +175,12 @@ W przypadku chęci ograniczenia w początkowej fazie wdrażania systemu jakości
                                     <xsl:otherwise><xsl:attribute name="is_string" select="true()"/></xsl:otherwise>
                                 </xsl:choose>
                                 <xsl:choose>
-                                    <xsl:when test=" contains(.,'/') and position()=1 and $lt_pos &gt; 1"><xsl:attribute name="closing" select="true()"/></xsl:when>
-                                    <xsl:when test=" not(contains(.,'/')) and position()=1 and $lt_pos &gt; 1"><xsl:attribute name="closing" select="false()"/></xsl:when>
+                                    <xsl:when test=" contains(substring(.,string-length(.)),'/') and position()=1 and $lt_pos &gt; 1"><xsl:attribute name="closing" select="true()"/></xsl:when>
+                                    <xsl:when test=" not(contains(substring(.,string-length(.)),'/')) and position()=1 and $lt_pos &gt; 1"><xsl:attribute name="closing" select="false()"/></xsl:when>
                                     <!--<xsl:otherwise><xsl:attribute name="closing" select="false()"/></xsl:otherwise>-->
                                 </xsl:choose>
                                 <xsl:choose>
-                                    <xsl:when test="position()=1 and $lt_pos&gt;1 and not(contains(.,'/')) and contains(.,' ')">
+                                    <xsl:when test="position()=1 and $lt_pos&gt;1 and not(contains(substring(.,string-length(.)),'/')) and contains(.,' ')">
                                         <xsl:variable name="attributes">
                                             
                                             <!--<xsl:for-each select="tokenize(.,'=&quot;')">