XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Conditionally formatting a HTML table row usingXML/XSL

On Sun, 2022-02-27 at 13:06 -0500, Liam R. E. Quin wrote:
> On Sun, 2022-02-27 at 12:38 +0000, Richard Watt wrote:
> > Hi Matthias,
> > 
> > My apologies - that's me remembering the tags incorrectly: it's using
> > <xsl:attribute name="class"> </xsl:attribute>, and the actual XSL
> > reads as:
> > 
> >     <TR><xsl:if test="ORDERSTATUS='Completed'"> <xsl:attribute-value
> >     name="class">trCompleted</xsl:attribute> </xsl:if>
> 
> Try,
> 
>     <tr>
>         <xsl:if test="ORDERSTATUS = 'Completed'}>
>             <xsl:attribute name="class">trCompleted</xsl:attribute>
>         </xsl:if>
>     </tr>

Er, that should of course be,

    <tr>
        <xsl:if test="ORDERSTATUS = 'Completed'">
            <xsl:attribute name="class">trCompleted</xsl:attribute>
        </xsl:if>
    </tr>
> 

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS