|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Dynamically creating XPath expressions Help requir
Hi,
> <xsl:for-each select="Reports/GridBody0">
>
> <xsl:if test="Col3 != ''" >
Though correct, it's preferable to use
not(Col3 = '')
or
not(string-length(Col3) = 0)
> <xsl:variable name="rowNo"
> select="concat('../GridColors/Grid0RowNo',RowNo,'Col3LimeGreen
> ')"></xsl:variable>
change this to
<xsl:variable name="rowNo" select="concat('Grid0Row',RowNo,'Col3LimeGreen')"/>
(also note that you had a typo, the source element name starts with 'Grid0Row', not 'Grid0RowNo'.)
> <xsl:choose>
> <!--If this element exist and we have to render green-->
> <xsl:when test="$rowNo = 1" >-->
and this to
<xsl:when test="../GridColors/*[name() = $rowNo] = 1" >
Cheers,
Jarno - RantRadio Industrial: Industrial Electronica for Your Mind
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








