Subject: Re: select-element and style-rule
From: Alain DESEINE <alain@xxxxxxxxxxx>
Date: Thu, 07 May 1998 22:52:07 +0200
|
Lisa Pease wrote:
>
> Does the MSXML processor support the combination of select-element and
> style-rule elements?
>
> Here's the problem. I'm doing a list of Derby winners, and want to format
> triple crown winners in red. The page comes out fine except that my style
> rule indicating red for wherever the "tc" attribute is "yes" is ignored.
> Here's the XSL information:
>
> [...]
>
> <style-rule>
> <target-element type="HORSE">
> <attribute name="tc" value="yes"/>
> </target-element>
> <apply color="red"/>
> </style-rule>
>
> [...]
>
> <TR><TD>Horse: </TD><TD color="black" font-style="italic">
> <select-elements>
> <target-element type="HORSE"/>
> </select-elements>
> </TD></TR>
>
> [....]
>
> Please help?? Thanks!
Perharps should you invert the rules order. I think you should do the
select-element first, and then the style-rule. If it don't work you can
use a construction rule with a DIV or SPAN flow object if your target is
HTML.
Hope this help
Alain From FRANCE.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|