convert html-tags with class

Hi!

I'd like to convert html-tags with attribute 'class="blue"' in general,
e.g.

<ul>
	<li class="blue">litext</li>
</ul>
<span class="blue">spantext</span>

spantext gets blue with following xsl, but litext stays black. Error
message: children of list-blocks must be list-items. How can I change it
for a proper parsing?

<xsl:template match ="*[@class='blue']"> 
   <fo:inline color="rgb(0,51,153)">
   	<xsl:apply-templates/>
   </fo:inline>
 </xsl:template>

<xsl:template match="ul">
	<fo:list-block>
		<xsl:apply-templates/>
	</fo:list-block>
</xsl:template>
	
<xsl:template match="li">
	<fo:list-item space-after="5mm">
		<fo:list-item-label start-indent="0.2in">
			<fo:block>
				<fo:inline
font-family="Symbol">&#x2022;</fo:inline>
			</fo:block>
		</fo:list-item-label>
		<fo:list-item-body start-indent="0.4in"
end-indent="0.1in">
			<fo:block>
				<xsl:apply-templates/>
			</fo:block>
		</fo:list-item-body>
	</fo:list-item>
</xsl:template>

Thank you, Torsten

Received on Thursday, 21 April 2005 22:53:36 UTC