[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Looking for shorthand form
Subject: RE: [xsl] Looking for shorthand form From: "Michael Kay" <mhk@xxxxxxxxx> Date: Tue, 6 Jan 2004 14:40:19 -0000 |
Well, you could start with <xsl:value-of select="@FIGNBR"/> <xsl:if test="string-length(@FIGNBR)=2"> </xsl:if> If one knew more about the possible values of @FIGNBR it could probably be simplified further. For example, if the only other possible value is 3, you could write <xsl:value-of select="substring(concat(@FIGNBR, ' '), 1, 3)"/> Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > karthikeyan.balasubramanian > Sent: 06 January 2004 09:57 > To: MulberryTech List > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Looking for shorthand for, karthikeyan.balasubr | Thread | RE: [xsl] Looking for shorthand for, Rowland Shaw |
RE: [xsl] knowing the position of c, Michael Kay | Date | Re: [xsl] Looking up keys in a sepa, G. Ken Holman |
Month |