FuncTranslate.java revision 286
0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 1999-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 0N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * Execute the Translate() function. 0N/A * @xsl.usage advanced 0N/A * Execute the function. The function must return 0N/A * @param xctxt The current execution context. 0N/A * @return A valid XObject. 0N/A * @throws javax.xml.transform.TransformerException // A vector to contain the new characters. We'll use it to construct // Didn't find the character in the second string, so it // OK, there's a corresponding character in the // third string, so do the translation... // There's no corresponding character in the // third string, since it's shorter than the // second string. In this case, the character // is removed from the output string, so don't