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

strip non-text space, returns, tabs, etc...

Subject: strip non-text space, returns, tabs, etc...
From: "Russell Allen" <rallen@xxxxxxxxxxxx>
Date: Mon, 29 Nov 1999 13:33:23 -0600
russell allen tabs
We have run into a problem with xsl including things like returns and
white-space from the source xml in the result xml.  I realize it is supposed
to do this, but we would like it to strip these. For Example:

Source XML:
<myValue>
        1234
</myValue>

XSL segment:
<xsl:element name="A">
        <xsl:attribute name="href"><xsl:value-of
select="myValue"/></xsl:attribute>
        <xsl:text>This is a link.</xsl:text>
</xsl:element>

Produces:
<A href="&#10;        1234&#10;">This is a link.</A>

What I would like:
<A href="1234">This is a link.</A>


The obvious solution of striping the whitespace and returns from the source
xml when generated works, but makes it virtually unreadable to the human
eye.  I would like to avoid this.
We are using LotusXSL for parsing.

TIA,
Russell Allen
ComFrame Software Corp.



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.