Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Beginneer question with @stuff like variables [Thread Next] Re: Beginneer question with @stuff like variablesTo: NULL Date: 8/31/2005 2:09:00 PM Excellent! Thank you so much! That was very helpful. :)
"Joris Gillis" wrote:
> Tempore 21:53:05, die Wednesday 31 August 2005 AD, hinc in foro {microsoft.public.xsl} scripsit Joe Lighthall"" <JoeLighthall@d...>:
>
> > Ah, sorry, it looked as though he asked what the @makeMyBox is. The $ieq$ is
> > an 'is equal'.
>
> In Xpath, you check equality with '=' (at least in this trivial case). Replace the characters '$ieq$' with '='.
> Furthermore, you cannot add a predicate to '.' in XSLT 1.0
>
> Rather write that as:
>
> <xsl:when test="@makeMyBox = 'true'">
> <input id="{concat('ID_', @name)}"
> type="checkbox"
> checked="true"
> style="width:15; height:15">
> </input>
> </xsl:when>
>
> Any XSLT engine I know would handle this as intended.
>
> If your XSLT engine does not support Attribute Value Templates,
> you can always fall back on this:
>
> <xsl:when test="@makeMyBox = 'true'">
> <input type="checkbox"
> checked="true"
> style="width:15; height:15">
> <xsl:attribute name="id">
> <xsl:value-of select="concat('ID_', @name)"/>
> </xsl:attribute>
> </input>
> </xsl:when>
>
>
> regards,
> --
> Joris Gillis (http://users.telenet.be/root-jg/me.html)
> «Numquam mores quos extuli refero» - Seneca , Ad Lucilium I, 7
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
