W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2005

convert html-tags with class

From: torsten krohn | tsdb | the simpsons database <torsten@tsdb.de>
Date: Fri, 22 Apr 2005 00:53:31 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <002301c546c4$f1d83560$0301a8c0@HOMER>


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

	<li class="blue">litext</li>
<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:template match="ul">
<xsl:template match="li">
	<fo:list-item space-after="5mm">
		<fo:list-item-label start-indent="0.2in">
		<fo:list-item-body start-indent="0.4in"

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC