On Wed, 2019-10-09 at 13:28 +0000, Christian Roth mulberrytech-
lists(_at_)kriro(_dot_)de wrote:
<xsl:variable name="var" as="xs:string">
<xsl:text>prefix</xsl:text>
<xsl:value-of select="'part1'"/>
<!-- follows more complex code producing further fragments of
desired result string -->
</xsl:variable>
This gives me the error message
Yes - I'd probably write,
<xsl:variable name="var" as="xs:string"
select="concat('prefix, 'part1', ....) "/>
In XSLT 3 you could also do,
<xsl:variable name="var"
as="xs:string">prefix{'part1'}....</xsl:variable>
Assuming some XSL ancestor has expand-text="yes"
Liam
--
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--