私の英語でごめんなさい。
XMLサンプルを書きました:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="./test.xslt"?>
<document>
<paragraph id="p1">
I like <i>the flowers</i>!!!
</paragraph>
<paragraph id="p2">
<![CDATA[I like <i>the people</i>!!!]]>
</paragraph>
</document>
そして、サンプル用の XSL を書きました。
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<body>
<p>
<xsl:value-of select="/document/paragraph[@id='p1']"/>
<br/>
<xsl:value-of select="/document/paragraph[@id='p2']"/>
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
テキスト値 (<i>一部のテキスト</i>) でフォーマットを指定しました。しかし、フォーマットは起こりません。ブラウザに次の結果が表示されます。
I like <i>the flowers</i>!!!
I like <i>the people</i>!!!
指定されたフォーマットを強制的に適用する方法は?
よろしく