【XML】xmlns, XSLT, RelaxNG, JAXP, etc.【総合】
■ このスレッドは過去ログ倉庫に格納されています
0533デフォルトの名無しさん
2007/06/23(土) 21:06:54``今日は図書館に行った。'' と ``本を2冊借りた'' を連結した文字列。
もっといい別解があるだろうけどとりあえず:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="html" encoding="UTF-8" />
<xsl:template match="全体">
<table border="3">
<tr><xsl:apply-templates /></tr>
</table>
</xsl:template>
<xsl:template match="年月">
<td><xsl:apply-templates /></td>
</xsl:template>
<xsl:template match="日記">
<td><xsl:apply-templates /></td>
</xsl:template>
<xsl:template match="br">
<br />
</xsl:template>
</xsl:stylesheet>
遠回りでも一度ちゃんとXSLT勉強したほうがいいかもしれない。
ハマリどころが結構多いから、下手すると時間めちゃくちゃ食うよ。
■ このスレッドは過去ログ倉庫に格納されています