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

Re: I output a tab character, then the output file co

Subject: Re: I output a tab character, then the output file contains space, tab, space ... why?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 8 Apr 2016 15:39:40 -0000
Re:  I output a tab character
On 08.04.2016 17:36, Costello, Roger L. costello@xxxxxxxxx wrote:

That solves the problem of showing the headers, but I also need to loop over
some values, compute an appropriate value to output, and then follow the value
with a tab (hex 9). Like this:

<xsl:for-each select="foo"> <xsl:variable name="value" select="f:compute-value(.)"/> <xsl:sequence select="$value" /> <xsl:sequence select="$field-separator"/> </xsl:for-each>

I think that

  <xsl:value-of select="foo/f:compute-value(.)"

should do.

How can I output a tab (hex 9) without also getting the space (hex 20)
characters surrounding the tab character?

See Eliot's answer on a pure XPath way.

--- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr|ft. https://www.avast.com/antivirus

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.