Project

Profile

Help

Bug #6405 » text-inside-when.xsl

Supporting file - A Galtman, 2024-04-28 20:55

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:local="http://local/xslt"
exclude-result-prefixes="xs"
version="3.0">
<xsl:function name="local:func-choose" as="text()">
<xsl:param name="choice"/>
<xsl:choose>
<xsl:when test="$choice eq 1">43 to 50</xsl:when>
<xsl:when test="$choice eq 2">
multiple-line text node
</xsl:when>
<xsl:when test="$choice eq 3"><xsl:text>53 to 60</xsl:text></xsl:when>
<xsl:when test="$choice eq 4">
<xsl:text>
multiple-line text node
in xsl:text
</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:function>
</xsl:stylesheet>
(2-2/2)