Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Convert attributes to elements and lower case [Thread Next] Re: Convert attributes to elements and lower caseTo: NULL Date: 9/12/2007 8:35:00 AM "Dimitre Novatchev" <dimitren@t...> wrote in message news:46e74361$0$47153$892e7fe2@a...... > > Replace <xsl:value-of select="." /> with:- > > > > <xsl:choose> > > <xsl:when test=". = 'True'"><xsl:text>true</xsl:text></xsl:when> > > <xsl:when text=". = 'False'"><xsl:text>false</xsl:text></xsl:when> > > <xsl:otherwise><xsl:value-of select="." /></xsl:otherwise> > > </xsl:choose> > > > > > > > I'd go for: > > <xsl:choose> > <xsl:when test=". = 'True' or . = 'False' "><xsl:value-of select=". = > 'True' "/></xsl:when> > <xsl:otherwise><xsl:value-of select="." /></xsl:otherwise> > </xsl:choose> > > > Just one <xsl:when/> shorter :o) > It's clever but is it advantageous? -- Anthony Jones - MVP ASP/ASP.NET | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
