Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Beginneer question with @stuff like variables

From: JoeLighthall@-----------.---------.---
To: 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
> 


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