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: Text output and whitespaces.


Vitaly B. Rudovich wrote:
> How can I define in _XSLT_stylesheet_ an element 
> <ns:whitespace />  ?
> (It is reasonable to have additional an optional attribut "length".
> Some formats require specific number of whitespaces between elements.)

<xsl:variable name="space" select="'                                 '"/>
...
<xsl:value-of select="substring($space,1,$length)"/>

It's not much better. You can also try xml:space.

J.Pietschmann


 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]