0

Java で行うように、replaceAll 機能を実装する必要がある xsl コードがあります。翻訳機能を試してみましたが、うまくいきませんでした。以下のコードで関数をどこでどのように使用するのかわかりません。これについて助けてください。

<xsl:template match="warning">
    <xsl:param name="drugsSub" select="'false'"/>
    <tr>
      <td class="dataRowBorderBottom rowColor" style="width: 35%; padding-right: 5px; font-size:.85em;">
        **<xsl:apply-templates select="translate(warningId,'/','/ ')">**    This is not working. I want translate function to work both warningId. A value comes for this variable from some other file.
          <xsl:with-param name="drugsSub" select="$drugsSub"/>
        </xsl:apply-templates>
      </td>
      <td class="dataRowBorderBottom rowColor leftPadding" style="width: auto; padding-bottom: 15px; font-size:.85em;">
        <xsl:apply-templates select="severity"/>
      </td>
      <td class="dataRowBorderBottom rowColor leftPadding" style="width: 13%;font-size:.85em;">
        <xsl:apply-templates select="documentationRating"/>
      </td>
      <td class="dataRowBorderBottom rowColor leftPadding" style="width: 35%; padding-top: 3px; font-size:.85em;">
        <xsl:value-of select="warningText"/>
      </td>
    </tr>
  </xsl:template>
4

1 に答える 1