2010-10-13から1日間の記事一覧

XSLT 2.0で便利になった機能(30) xsl:attribute

xsl:attributeについて変更点を紹介したいと思います.xsl:attributeはその名のとおり属性ノードを生成するものです.XSLT2.0からはselect属性がつきました.今までは <xsl:attribute name="font-weight> <xsl:choose> <xsl:when test="string(@bold)='yes'"> <xsl:value-of select="'bold'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'normal'"/> </xsl:otherwise>