lower-case function
Here should go questions about transforming XML with XSLT and FOP.
			- 
				jsb
 - Posts: 20
 - Joined: Sat Nov 26, 2005 5:17 pm
 - Location: Houston, Texas, USA
 - Contact:
 
lower-case function
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
			
			
									
									Jon
Jon Berndt
Development Coordinator
JSBSim Project
Open Source Flight Dynamics Model
http://www.jsbsim.org
						Development Coordinator
JSBSim Project
Open Source Flight Dynamics Model
http://www.jsbsim.org
- 
				george
 - Site Admin
 - Posts: 2097
 - Joined: Thu Jan 09, 2003 2:58 pm
 
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.
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,
George
			
			
									
									
						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')"/>
    </xsl:template>
</xsl:stylesheet>
translate($value, 'ABC', 'abc')
Best Regards,
George
			
				Jump to
				
			
		
			
			
	
	- Oxygen XML Editor/Author/Developer
 - ↳ Feature Request
 - ↳ Common Problems
 - ↳ DITA (Editing and Publishing DITA Content)
 - ↳ Artificial Intelligence (AI Positron Assistant add-on)
 - ↳ SDK-API, Frameworks - Document Types
 - ↳ DocBook
 - ↳ TEI
 - ↳ XHTML
 - ↳ Other Issues
 - Oxygen XML Web Author
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen Content Fusion
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen JSON Editor
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen PDF Chemistry
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen Feedback
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen XML WebHelp
 - ↳ Feature Request
 - ↳ Common Problems
 - XML
 - ↳ General XML Questions
 - ↳ XSLT and FOP
 - ↳ XML Schemas
 - ↳ XQuery
 - NVDL
 - ↳ General NVDL Issues
 - ↳ oNVDL Related Issues
 - XML Services Market
 - ↳ Offer a Service