You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/09/08 16:42:51 UTC

DO NOT REPLY [Bug 12399] New: - translate

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12399>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12399

translate

           Summary: translate
           Product: Fop
           Version: 0.20.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: tim.lebedkov@web.de


translate()-function does not work
I used this xml:
<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : Test.xml
    Created on : 8. September 2002, 16:31
    Author     : tim
    Description:
        Purpose of the document follows.
-->

<root>
	this is text in lowercase
</root>

with this xsl:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!--
    Document   : test.xsl
    Created on : 8. September 2002, 16:31
    Author     : tim
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format">

    <xsl:template match="root">
		<xsl:variable name="upper_case" 
select="ABCDEFGHIJKLMNOPQRSTUVWXYZ���"/>
		<xsl:variable name="lower_case" 
select="abcdefghijklmnopqrstuvwxyz���"/>
		<xsl:value-of select="."/>
		<xsl:value-of select="translate(string(.), $lower_case, 
$upper_case)"/>
    </xsl:template>
</xsl:stylesheet>

and the result was:
<?xml version="1.0" encoding="UTF-8"?>

	this is text in lowercase

	this is text in lowercase
The second line should be upper-case

thanx

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org