浏览代码

fix namespace

Daniel Sheffield 8 月之前
父节点
当前提交
237c13f920
共有 1 个文件被更改,包括 12 次插入8 次删除
  1. 12 8
      rest/query-to-xml-xslt.xml

+ 12 - 8
rest/query-to-xml-xslt.xml

@@ -38,7 +38,11 @@ All rights reserved.
         <button type="submit" style="margin: 0.2em">Generate</button>
         <span style="position: absolute; right: 0; padding: 0.4em">
           <a>
-            <xsl:attribute name="href">./pg?<xsl:for-each select="//row"><xsl:value-of select="category"/>=<xsl:value-of select="translate(reference,' ','')"/>+<xsl:value-of select="translation"/><xsl:if test="position() != last()">&#038;</xsl:if></xsl:for-each></xsl:attribute>
+            <xsl:attribute name="href">./pg?<xsl:for-each select="xhtml:row">
+            <xsl:value-of select="xhtml:category"/>=<xsl:value-of select="translate(xhtml:reference,' ','')"/>+<xsl:value-of select="xhtml:translation"/>
+            <xsl:if test="position() != last()">&#038;</xsl:if>
+            </xsl:for-each>
+            </xsl:attribute>
             Permalink
           </a>
         </span>
@@ -75,10 +79,10 @@ All rights reserved.
                             select="name(current())"/>
               <xsl:choose>
               <xsl:when test="$elementtype = 'txt'">
-              <td class="opt-all" style="text-align: justify"><xsl:value-of select="."/>&#160;<span class="engraved">
-              <xsl:value-of select="../translation"/>
-              </span>
-              </td>
+                <td class="opt-all" style="text-align: justify"><xsl:value-of select="."/>&#160;<span class="engraved">
+                  <xsl:value-of select="../xhtml:translation"/>
+                  </span>
+                </td>
               </xsl:when>
               <xsl:when test="$elementtype = 'category'">
                 <xsl:choose>
@@ -98,8 +102,8 @@ All rights reserved.
                 <xsl:value-of select="translate(translate(.,' ','&#160;'),'-','&#8209;')"/>
                 <br/>
                 <a>
-                  <xsl:attribute name="href">/license/<xsl:value-of select="preceding-sibling::translation"/>.txt</xsl:attribute>
-                  <xsl:value-of select="preceding-sibling::translation"/>
+                  <xsl:attribute name="href">/license/<xsl:value-of select="preceding-sibling::xhtml:translation"/>.txt</xsl:attribute>
+                  <xsl:value-of select="preceding-sibling::xhtml:translation"/>
                 </a>
                 </td>
               </xsl:otherwise>
@@ -117,7 +121,7 @@ All rights reserved.
             Powered by <a href="https://www.crosswire.org/jsword/">JSword</a> an implementation of <a href="https://www.crosswire.org/sword/index.jsp">The SWORD Project</a>'s SWORD API brought to you by the <a href="https://crosswire.org">The CrossWire Bible Society</a>.
             <br/>
             Quotes are taken from various translations as indicated. See
-            <xsl:for-each select="//row/translation[not(.=preceding::*)]">
+            <xsl:for-each select="xhtml:row/xhtml:translation[not(.=preceding::*)]">
             <a>
             <xsl:attribute name="href">/license/<xsl:value-of select="."/>.txt</xsl:attribute>
             <xsl:value-of select="."/>