2016-05-04 6 views
0

私は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.'

答えて

1

それは:)おかげで働いた

<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&amp;mlink=5058,10807990,cs_service&amp;clink=10807990</xsl:when> 
    </xsl:choose> 
</xsl:template> 
+0

あなたのURLのテキストで表示されますアンパサンド(&amp;に&)をエスケープする必要があり –

関連する問題