Subject: Re: [xsl] Looking for shorthand form From: "karthikeyan.balasubramanian" <karthikeyan.balasubramanian@xxxxxxxxxxxxx> Date: Tue, 6 Jan 2004 17:23:35 +0530 |
Thanks George :) Karthikeyan B ----- Original Message ----- From: "George Cristian Bina" <george@xxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, January 06, 2004 5:05 PM Subject: Re: [xsl] Looking for shorthand form > Hi, > > You can just factor your code to remove the duplicate xsl:value-of: > > <xsl:value-of select="@FIGNBR"/> > <xsl:if test="string-length(@FIGNBR)=2"> > <xsl:text> </xsl:text> > </xsl:if> > > Regards, > George > ------------------------------------------------------------- > George Cristian Bina mailto:george@xxxxxxxxxxxxx > <oXygen/> XML Editor - http://www.oxygenxml.com/ > > > ----- Original Message ----- > From: "karthikeyan.balasubramanian" > <karthikeyan.balasubramanian@xxxxxxxxxxxxx> > To: "MulberryTech List" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> > Sent: Tuesday, January 06, 2004 11:57 AM > Subject: [xsl] Looking for shorthand form > > > > Hi, > > > > Can anybody suggest shorthand form for this code > > > > ============= > > <xsl:choose> > > <xsl:when test="string-length(@FIGNBR)=2"> > > <xsl:value-of select="@FIGNBR"/> > > <xsl:text> </xsl:text> > > </xsl:when> > > <xsl:otherwise> > > <xsl:value-of select="@FIGNBR"/> > > </xsl:otherwise> > > </xsl:choose> > > =============== > > > > Have a great day. > > > > Karthikeyan B > > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Looking for shorthand for, George Cristian Bina | Thread | RE: [xsl] Looking for shorthand for, Michael Kay |
Re: [xsl] XSL Java (&lt; < <, David Carlisle | Date | Re: [xsl] Looking for shorthand for, karthikeyan.balasubr |
Month |