[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [NEWBIE] XSL String Manipulation Question.

Subject: Re: [NEWBIE] XSL String Manipulation Question.
From: jfi@xxxxxxxxxxxxxxxx
Date: Fri, 7 Feb 2003 10:46:18 +0100
xsl string manipulation
Hi Justin,

>I have a few fields I'm trying format, into the same variable, and it's

If you define a variable, you can control the value to be assigned with

>  <xsl:variable name="strUnitBlock" select="$strUnitNumber"/>
>  <xsl:if test="$strUnitBlock != ''">
>    <xsl:if test="$strUnitSeperator != ''">
>        <xsl:variable name="strUnitBlock" select="concat($strUnitBlock,
>    </xsl:if>
>  </xsl:if>
>   <xsl:variable name="strUnitBlock" select="concat($strUnitBlock,

Try something like this (untested):

<xsl:variable name="strUnitBlock">

    <xsl: when test="($strUnitBlock != '') and ($strUnitSeperator != '')">
      <xsl:value-of select="concat($strUnitBlock, $strUnitSeperator)"/>
      <xsl:value-of select="$strUnitNumber"/>




Julia Fichter
Research & Development

Propack Data GmbH
A Rockwell Automation Business

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.