|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Looking for shorthand form
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: 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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








