私はXSLテンプレートがあります。私はこのテンプレートを実行している場合はXSLコンパイルエラーです.mlinkは ';'で終わる必要があります。
<xsl:template name="Url">
<xsl:param name="Code"></xsl:param>
<xsl:choose>
<xsl:when test="$Code = '1'">http://example.com/service/info.do?cid=2136&mlink=5058,10807990,cs_service&clink=10807990</xsl:when>
</xsl:choose>
</xsl:template>
を、私は以下のエラーを取得しています。私はそれを解決する方法を教えてもらえますか?
[Fatal Error] :149:102: The reference to entity "mlink" must end with the ';' delimiter. Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property ' http://javax.xml.XMLConstants/property/accessExternalDTD ' is not recognized.' WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property ' http://javax.xml.XMLConstants/property/accessExternalDTD ' is not recognized.' ERROR: 'Could not compile stylesheet' FATAL ERROR: 'The reference to entity "mlink" must end with the ';' delimiter.'
あなたのURLのテキストで表示されますアンパサンド(
&
に&)をエスケープする必要があり –