Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: style attribute sets?

From: "Egbert Nierop \(MVP for IIS\)" <egbert_nierop@------.------->
To: NULL
Date: 1/7/2006 10:05:00 AM
"Joe Fawcett" <joefawcett@n...> wrote in message 
news:enENoovEGHA.1240@T......
> "Egbert Nierop (MVP for IIS)" <egbert_nierop@n...> wrote in 
> message news:%23DsexAvEGHA.1540@T......
>>
>> "Joe Fawcett" <joefawcett@n...> wrote in message 
>> news:OjNMljqEGHA.1088@t......
>>> "Egbert Nierop (MVP for IIS)" <egbert_nierop@n...> wrote in
>>>>
>>>>> -- 
>>>>> Joe Fawcett -  XML MVP
>>>>>
>>>>> https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5
>>>>>
>>>>
>>> I don't see any style information...
>>
>> sorry for misunderstanding.
>>
>> This does not come from XML.
>>
>> Let me just describe what I want, it is quite simple.
>> I have a html table where even rows get a light-grey background and 
>> uneven rows get an other color.
>>
>> I know this can be done while avoiding the style= property, but I want to 
>> respect some HTML level- conformity.
>>
>>
> Okay, but I don't understand your problem, either set the style attribute 
> to be whatever you wish or assign a class and use css.
> It's not two attributes, it's one attribute with a string value that's 
> interpreted by the browser as a collection.

It's is more attributes because in this sample I would modify the color per 
line with a different color.

ps: I am very good at HTML so I know what are the possibilities using CSS 
but not through xsl.

> <xsl:template match="/">
>  <table><tbody><xsl:apply-templates select="ElementForTableRow" 
> /></tbody></table>
> </xsl:match>
>
> <xsl:template match="ElementForTableRow">
>  <tr><td style="width:20;left-margin:10px"><xsl:value-of 
> select="ElementForTableCell" /></td></tr>
> </xsl:template>
>
> -- 
> Joe
> 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent