This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: xsl:function


this works nicely as
<xsl:value-of select="concat(TITLE,substring('&#32;&#32;&#32;&#32;etc...',
							   1, 60 - string-length(TITLE)))"/>

but as
<xsl:variable name="x"
	expr="&#32;&#32;&#32;&#32;&#32;.....">
<xsl:value-of select="concat(TITLE,substring($x,1, 60 -
string-length(TITLE)))"/>

no extra spaces are added.
do i need to go read Mike's book again?

>
> Unless your fixed length fields are really long it's easier to do
> padding just using
> concat($theString,substring($x, 1, $fixedLength -
> string-length($theString)))
> where $x is a sufficiently long string of space characters.
>
> David
>



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]