lower-case function

Here should go questions about transforming XML with XSLT and FOP.
Posts: 20
Location: Houston, Texas, USA

lower-case function

Wed Dec 14, 2005 5:09 am

My reading of the string processing functions says there's a lower-case function, but I can't seem to get that recognized by my code. Is that function not yet widely supported?

Jon Berndt
Development Coordinator
JSBSim Project
Open Source Flight Dynamics Model
Site Admin
Posts: 2100

Wed Dec 14, 2005 11:05 am

Hi Jon,

In XSLT 2.0/XPath 2.0 there is a lower-case funtion, see below a sample stylesheet that uses it. You need to use Saxon 8 with that as it provides XSLT 2.0 in oXygen.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:output method="text"/>
    <xsl:template match="/">
        <xsl:value-of select="lower-case('ABC')"/>

In XSLT 1.0/XPath 1.0 there is no such funtion, there you can use the translate funtion, something like:

translate($value, 'ABC', 'abc')

Best Regards,
Site Admin
Posts: 2100

Wed Dec 14, 2005 11:13 am

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests