Markus,
if yo want to remove the spaces for all <when> and <otherwise> entries you
can
do this by having the complete <choose> inside a <xsl:variable> and then
call
normalize-space() once afterwards:
<xsl:variable name="v">
<xsl:choose>
<xsl:when test="sometest1">
x1
</xsl:when>
<xsl:when test="sometest2">
x2
</xsl:when>
...
<xsl:when test="sometestn">
xn
</xsl:when>
<xsl:otherwise test="sometest">
x
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="normalize-space($v)"/>
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
"Markus Karg"
<karg(_at_)quipsy(_dot_)de>
To
03/19/2010 08:37
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
AM cc
Subject
Please respond to RE: [xsl] Difference between
xsl-list(_at_)lists(_dot_)mu <when>x</when> and
lberrytech.com <when><text>x</text></when>
Markus Karg wrote:
But actually I meant: Is there a way how I can tell this *once* at
the
<choose> or the <stylesheet> level, instead of rewriting all my
<when>s?
No, I don't think so, there is no
xml:space="normalize"
or similar value defined that could achieve that.
Anyways, thanks a lot! :-)
Markus
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--