0

このbxfファイルがあります。それに xsl 変換を適用する必要があります。

<AAA>
<BBB:Name lang="ABC">Some text</BBB:Name>
 </AAA>

ここに私のxsl変換があります:

 <test>
     <xsl:value-of select="bxf:AAA/bxf:BBB:Name[@lang = 'ABC']"/>                
 </test>

私はこれを正しくやっていますか?この方法で実行した後、xsl が適切に解析されません。

編集:

それは言います: 式の終わりが期待されますが、':' が見つかりました。

出力

<test>
Some text
</test>
4

1 に答える 1

1

The part causing the error is this portion of the path:

bxf:BBB:Name

That's not a valid node name. Try using this (you will also need to ensure that the BBB: namespace prefix is declared in your XSLT):

<test>
     <xsl:value-of select="bxf:AAA/BBB:Name[@lang = 'ABC']"/>                
</test>
于 2013-04-22T10:07:15.813 に答える