aboutsummaryrefslogtreecommitdiff
path: root/src/com/sun/org/apache/xalan/internal/xsltc/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/sun/org/apache/xalan/internal/xsltc/runtime')
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java798
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/Attributes.java65
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java1688
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/Constants.java53
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ca.java234
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_cs.java234
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_de.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_es.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_fr.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_it.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ja.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ko.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_pt_BR.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sk.java234
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sv.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_CN.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_TW.java284
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/InternalRuntimeError.java36
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/MessageHandler.java33
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/Node.java40
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/Operators.java60
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/Parameter.java48
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/StringValueHandler.java127
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/OutputBuffer.java36
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/StringOutputBuffer.java55
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/TransletOutputHandlerFactory.java272
-rw-r--r--src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/WriterOutputBuffer.java97
28 files changed, 0 insertions, 7234 deletions
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java
deleted file mode 100644
index fd8e521..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java
+++ /dev/null
@@ -1,798 +0,0 @@
-/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
- */
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
-/*
- * $Id: AbstractTranslet.java,v 1.6 2006/06/19 19:49:03 spericas Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import com.sun.org.apache.xalan.internal.XalanConstants;
-import com.sun.org.apache.xalan.internal.utils.FactoryImpl;
-import com.sun.org.apache.xalan.internal.xsltc.DOM;
-import com.sun.org.apache.xalan.internal.xsltc.DOMCache;
-import com.sun.org.apache.xalan.internal.xsltc.DOMEnhancedForDTM;
-import com.sun.org.apache.xalan.internal.xsltc.Translet;
-import com.sun.org.apache.xalan.internal.xsltc.TransletException;
-import com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter;
-import com.sun.org.apache.xalan.internal.xsltc.dom.KeyIndex;
-import com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory;
-import com.sun.org.apache.xml.internal.dtm.DTM;
-import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
-import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
-import java.io.BufferedOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.text.DecimalFormat;
-import java.text.DecimalFormatSymbols;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Vector;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.Templates;
-import org.w3c.dom.DOMImplementation;
-import org.w3c.dom.Document;
-
-/**
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- * @author Morten Jorgensen
- * @author G. Todd Miller
- * @author John Howard, JohnH@schemasoft.com
- */
-public abstract class AbstractTranslet implements Translet {
-
- // These attributes are extracted from the xsl:output element. They also
- // appear as fields (with the same type, only public) in Output.java
- public String _version = "1.0";
- public String _method = null;
- public String _encoding = "UTF-8";
- public boolean _omitHeader = false;
- public String _standalone = null;
- //see OutputPropertiesFactory.ORACLE_IS_STANDALONE
- public boolean _isStandalone = false;
- public String _doctypePublic = null;
- public String _doctypeSystem = null;
- public boolean _indent = false;
- public String _mediaType = null;
- public Vector _cdata = null;
- public int _indentamount = -1;
-
- public static final int FIRST_TRANSLET_VERSION = 100;
- public static final int VER_SPLIT_NAMES_ARRAY = 101;
- public static final int CURRENT_TRANSLET_VERSION = VER_SPLIT_NAMES_ARRAY;
-
- // Initialize Translet version field to base value. A class that extends
- // AbstractTranslet may override this value to a more recent translet
- // version; if it doesn't override the value (because it was compiled
- // before the notion of a translet version was introduced, it will get
- // this default value).
- protected int transletVersion = FIRST_TRANSLET_VERSION;
-
- // DOM/translet handshaking - the arrays are set by the compiled translet
- protected String[] namesArray;
- protected String[] urisArray;
- protected int[] typesArray;
- protected String[] namespaceArray;
-
- // The Templates object that is used to create this Translet instance
- protected Templates _templates = null;
-
- // Boolean flag to indicate whether this translet has id functions.
- protected boolean _hasIdCall = false;
-
- // TODO - these should only be instanciated when needed
- protected StringValueHandler stringValueHandler = new StringValueHandler();
-
- // Use one empty string instead of constantly instanciating String("");
- private final static String EMPTYSTRING = "";
-
- // This is the name of the index used for ID attributes
- private final static String ID_INDEX_NAME = "##id";
-
- private boolean _useServicesMechanism;
-
- /**
- * protocols allowed for external references set by the stylesheet processing instruction, Document() function, Import and Include element.
- */
- private String _accessExternalStylesheet = XalanConstants.EXTERNAL_ACCESS_DEFAULT;
-
- /************************************************************************
- * Debugging
- ************************************************************************/
- public void printInternalState() {
- System.out.println("-------------------------------------");
- System.out.println("AbstractTranslet this = " + this);
- System.out.println("pbase = " + pbase);
- System.out.println("vframe = " + pframe);
- System.out.println("paramsStack.size() = " + paramsStack.size());
- System.out.println("namesArray.size = " + namesArray.length);
- System.out.println("namespaceArray.size = " + namespaceArray.length);
- System.out.println("");
- System.out.println("Total memory = " + Runtime.getRuntime().totalMemory());
- }
-
- /**
- * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in
- * a DOM multiplexer if the document() function is used (handled by compiled
- * code in the translet - see compiler/Stylesheet.compileTransform()).
- */
- public final DOMAdapter makeDOMAdapter(DOM dom)
- throws TransletException {
- setRootForKeys(dom.getDocument());
- return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray);
- }
-
- /************************************************************************
- * Parameter handling
- ************************************************************************/
-
- // Parameter's stack: <tt>pbase</tt> and <tt>pframe</tt> are used
- // to denote the current parameter frame.
- protected int pbase = 0, pframe = 0;
- protected ArrayList paramsStack = new ArrayList();
-
- /**
- * Push a new parameter frame.
- */
- public final void pushParamFrame() {
- paramsStack.add(pframe, new Integer(pbase));
- pbase = ++pframe;
- }
-
- /**
- * Pop the topmost parameter frame.
- */
- public final void popParamFrame() {
- if (pbase > 0) {
- final int oldpbase = ((Integer)paramsStack.get(--pbase)).intValue();
- for (int i = pframe - 1; i >= pbase; i--) {
- paramsStack.remove(i);
- }
- pframe = pbase; pbase = oldpbase;
- }
- }
-
- /**
- * Add a new global parameter if not already in the current frame.
- * To setParameters of the form {http://foo.bar}xyz
- * This needs to get mapped to an instance variable in the class
- * The mapping created so that
- * the global variables in the generated class become
- * http$colon$$flash$$flash$foo$dot$bar$colon$xyz
- */
- public final Object addParameter(String name, Object value) {
- name = BasisLibrary.mapQNameToJavaName (name);
- return addParameter(name, value, false);
- }
-
- /**
- * Add a new global or local parameter if not already in the current frame.
- * The 'isDefault' parameter is set to true if the value passed is the
- * default value from the <xsl:parameter> element's select attribute or
- * element body.
- */
- public final Object addParameter(String name, Object value,
- boolean isDefault)
- {
- // Local parameters need to be re-evaluated for each iteration
- for (int i = pframe - 1; i >= pbase; i--) {
- final Parameter param = (Parameter) paramsStack.get(i);
-
- if (param._name.equals(name)) {
- // Only overwrite if current value is the default value and
- // the new value is _NOT_ the default value.
- if (param._isDefault || !isDefault) {
- param._value = value;
- param._isDefault = isDefault;
- return value;
- }
- return param._value;
- }
- }
-
- // Add new parameter to parameter stack
- paramsStack.add(pframe++, new Parameter(name, value, isDefault));
- return value;
- }
-
- /**
- * Clears the parameter stack.
- */
- public void clearParameters() {
- pbase = pframe = 0;
- paramsStack.clear();
- }
-
- /**
- * Get the value of a parameter from the current frame or
- * <tt>null</tt> if undefined.
- */
- public final Object getParameter(String name) {
-
- name = BasisLibrary.mapQNameToJavaName (name);
-
- for (int i = pframe - 1; i >= pbase; i--) {
- final Parameter param = (Parameter)paramsStack.get(i);
- if (param._name.equals(name)) return param._value;
- }
- return null;
- }
-
- /************************************************************************
- * Message handling - implementation of <xsl:message>
- ************************************************************************/
-
- // Holds the translet's message handler - used for <xsl:message>.
- // The deault message handler dumps a string stdout, but anything can be
- // used, such as a dialog box for applets, etc.
- private MessageHandler _msgHandler = null;
-
- /**
- * Set the translet's message handler - must implement MessageHandler
- */
- public final void setMessageHandler(MessageHandler handler) {
- _msgHandler = handler;
- }
-
- /**
- * Pass a message to the message handler - used by Message class.
- */
- public final void displayMessage(String msg) {
- if (_msgHandler == null) {
- System.err.println(msg);
- }
- else {
- _msgHandler.displayMessage(msg);
- }
- }
-
- /************************************************************************
- * Decimal number format symbol handling
- ************************************************************************/
-
- // Contains decimal number formatting symbols used by FormatNumberCall
- public Map<String, DecimalFormat> _formatSymbols = null;
-
- /**
- * Adds a DecimalFormat object to the _formatSymbols map.
- * The entry is created with the input DecimalFormatSymbols.
- */
- public void addDecimalFormat(String name, DecimalFormatSymbols symbols) {
- // Instanciate map for formatting symbols if needed
- if (_formatSymbols == null) _formatSymbols = new HashMap<>();
-
- // The name cannot be null - use empty string instead
- if (name == null) name = EMPTYSTRING;
-
- // Construct a DecimalFormat object containing the symbols we got
- final DecimalFormat df = new DecimalFormat();
- if (symbols != null) {
- df.setDecimalFormatSymbols(symbols);
- }
- _formatSymbols.put(name, df);
- }
-
- /**
- * Retrieves a named DecimalFormat object from the _formatSymbols map.
- */
- public final DecimalFormat getDecimalFormat(String name) {
-
- if (_formatSymbols != null) {
- // The name cannot be null - use empty string instead
- if (name == null) name = EMPTYSTRING;
-
- DecimalFormat df = _formatSymbols.get(name);
- if (df == null) df = _formatSymbols.get(EMPTYSTRING);
- return df;
- }
- return(null);
- }
-
- /**
- * Give the translet an opportunity to perform a prepass on the document
- * to extract any information that it can store in an optimized form.
- *
- * Currently, it only extracts information about attributes of type ID.
- */
- public final void prepassDocument(DOM document) {
- setIndexSize(document.getSize());
- buildIDIndex(document);
- }
-
- /**
- * Leverages the Key Class to implement the XSLT id() function.
- * buildIdIndex creates the index (##id) that Key Class uses.
- * The index contains the element node index (int) and Id value (String).
- */
- private final void buildIDIndex(DOM document) {
- setRootForKeys(document.getDocument());
-
- if (document instanceof DOMEnhancedForDTM) {
- DOMEnhancedForDTM enhancedDOM = (DOMEnhancedForDTM)document;
-
- // If the input source is DOMSource, the KeyIndex table is not
- // built at this time. It will be built later by the lookupId()
- // and containsId() methods of the KeyIndex class.
- if (enhancedDOM.hasDOMSource()) {
- buildKeyIndex(ID_INDEX_NAME, document);
- return;
- }
- else {
- final Map<String, Integer> elementsByID = enhancedDOM.getElementsWithIDs();
-
- if (elementsByID == null) {
- return;
- }
-
- // Given a Map of DTM nodes indexed by ID attribute values,
- // loop through the table copying information to a KeyIndex
- // for the mapping from ID attribute value to DTM node
- boolean hasIDValues = false;
- for (Map.Entry<String, Integer> entry : elementsByID.entrySet()) {
- final int element = document.getNodeHandle(entry.getValue());
- buildKeyIndex(ID_INDEX_NAME, element, entry.getKey());
- hasIDValues = true;
- }
-
- if (hasIDValues) {
- setKeyIndexDom(ID_INDEX_NAME, document);
- }
- }
- }
- }
-
- /**
- * After constructing the translet object, this method must be called to
- * perform any version-specific post-initialization that's required.
- */
- public final void postInitialization() {
- // If the version of the translet had just one namesArray, split
- // it into multiple fields.
- if (transletVersion < VER_SPLIT_NAMES_ARRAY) {
- int arraySize = namesArray.length;
- String[] newURIsArray = new String[arraySize];
- String[] newNamesArray = new String[arraySize];
- int[] newTypesArray = new int[arraySize];
-
- for (int i = 0; i < arraySize; i++) {
- String name = namesArray[i];
- int colonIndex = name.lastIndexOf(':');
- int lNameStartIdx = colonIndex+1;
-
- if (colonIndex > -1) {
- newURIsArray[i] = name.substring(0, colonIndex);
- }
-
- // Distinguish attribute and element names. Attribute has
- // @ before local part of name.
- if (name.charAt(lNameStartIdx) == '@') {
- lNameStartIdx++;
- newTypesArray[i] = DTM.ATTRIBUTE_NODE;
- } else if (name.charAt(lNameStartIdx) == '?') {
- lNameStartIdx++;
- newTypesArray[i] = DTM.NAMESPACE_NODE;
- } else {
- newTypesArray[i] = DTM.ELEMENT_NODE;
- }
- newNamesArray[i] =
- (lNameStartIdx == 0) ? name
- : name.substring(lNameStartIdx);
- }
-
- namesArray = newNamesArray;
- urisArray = newURIsArray;
- typesArray = newTypesArray;
- }
-
- // Was translet compiled using a more recent version of the XSLTC
- // compiler than is known by the AbstractTranslet class? If, so
- // and we've made it this far (which is doubtful), we should give up.
- if (transletVersion > CURRENT_TRANSLET_VERSION) {
- BasisLibrary.runTimeError(BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- this.getClass().getName());
- }
- }
-
- /************************************************************************
- * Index(es) for <xsl:key> / key() / id()
- ************************************************************************/
-
- // Container for all indexes for xsl:key elements
- private Map<String, KeyIndex> _keyIndexes = null;
- private KeyIndex _emptyKeyIndex = null;
- private int _indexSize = 0;
- private int _currentRootForKeys = 0;
-
- /**
- * This method is used to pass the largest DOM size to the translet.
- * Needed to make sure that the translet can index the whole DOM.
- */
- public void setIndexSize(int size) {
- if (size > _indexSize) _indexSize = size;
- }
-
- /**
- * Creates a KeyIndex object of the desired size - don't want to resize!!!
- */
- public KeyIndex createKeyIndex() {
- return(new KeyIndex(_indexSize));
- }
-
- /**
- * Adds a value to a key/id index
- * @param name is the name of the index (the key or ##id)
- * @param node is the node handle of the node to insert
- * @param value is the value that will look up the node in the given index
- */
- public void buildKeyIndex(String name, int node, String value) {
- KeyIndex index = buildKeyIndexHelper(name);
- index.add(value, node, _currentRootForKeys);
- }
-
- /**
- * Create an empty KeyIndex in the DOM case
- * @param name is the name of the index (the key or ##id)
- * @param dom is the DOM
- */
- public void buildKeyIndex(String name, DOM dom) {
- KeyIndex index = buildKeyIndexHelper(name);
- index.setDom(dom, dom.getDocument());
- }
-
- /**
- * Return KeyIndex for the buildKeyIndex methods. Note the difference from the
- * public getKeyIndex method, this method creates a new Map if keyIndexes does
- * not exist.
- *
- * @param name the name of the index (the key or ##id)
- * @return a KeyIndex.
- */
- private KeyIndex buildKeyIndexHelper(String name) {
- if (_keyIndexes == null) _keyIndexes = new HashMap<>();
-
- KeyIndex index = _keyIndexes.get(name);
- if (index == null) {
- _keyIndexes.put(name, index = new KeyIndex(_indexSize));
- }
- return index;
- }
-
- /**
- * Returns the index for a given key (or id).
- * The index implements our internal iterator interface
- * @param name the name of the index (the key or ##id)
- * @return a KeyIndex.
- */
- public KeyIndex getKeyIndex(String name) {
- // Return an empty key index iterator if none are defined
- if (_keyIndexes == null) {
- return (_emptyKeyIndex != null)
- ? _emptyKeyIndex
- : (_emptyKeyIndex = new KeyIndex(1));
- }
-
- // Look up the requested key index
- final KeyIndex index = _keyIndexes.get(name);
-
- // Return an empty key index iterator if the requested index not found
- if (index == null) {
- return (_emptyKeyIndex != null)
- ? _emptyKeyIndex
- : (_emptyKeyIndex = new KeyIndex(1));
- }
-
- return(index);
- }
-
- private void setRootForKeys(int root) {
- _currentRootForKeys = root;
- }
-
- /**
- * This method builds key indexes - it is overridden in the compiled
- * translet in cases where the <xsl:key> element is used
- */
- public void buildKeys(DOM document, DTMAxisIterator iterator,
- SerializationHandler handler,
- int root) throws TransletException {
-
- }
-
- /**
- * This method builds key indexes - it is overridden in the compiled
- * translet in cases where the <xsl:key> element is used
- */
- public void setKeyIndexDom(String name, DOM document) {
- getKeyIndex(name).setDom(document, document.getDocument());
- }
-
- /************************************************************************
- * DOM cache handling
- ************************************************************************/
-
- // Hold the DOM cache (if any) used with this translet
- private DOMCache _domCache = null;
-
- /**
- * Sets the DOM cache used for additional documents loaded using the
- * document() function.
- */
- public void setDOMCache(DOMCache cache) {
- _domCache = cache;
- }
-
- /**
- * Returns the DOM cache used for this translet. Used by the LoadDocument
- * class (if present) when the document() function is used.
- */
- public DOMCache getDOMCache() {
- return(_domCache);
- }
-
- /************************************************************************
- * Multiple output document extension.
- * See compiler/TransletOutput for actual implementation.
- ************************************************************************/
-
- public SerializationHandler openOutputHandler(String filename, boolean append)
- throws TransletException
- {
- try {
- final TransletOutputHandlerFactory factory
- = TransletOutputHandlerFactory.newInstance();
-
- String dirStr = new File(filename).getParent();
- if ((null != dirStr) && (dirStr.length() > 0)) {
- File dir = new File(dirStr);
- dir.mkdirs();
- }
-
- factory.setEncoding(_encoding);
- factory.setOutputMethod(_method);
- factory.setOutputStream(new BufferedOutputStream(new FileOutputStream(filename, append)));
- factory.setOutputType(TransletOutputHandlerFactory.STREAM);
-
- final SerializationHandler handler
- = factory.getSerializationHandler();
-
- transferOutputSettings(handler);
- handler.startDocument();
- return handler;
- }
- catch (Exception e) {
- throw new TransletException(e);
- }
- }
-
- public SerializationHandler openOutputHandler(String filename)
- throws TransletException
- {
- return openOutputHandler(filename, false);
- }
-
- public void closeOutputHandler(SerializationHandler handler) {
- try {
- handler.endDocument();
- handler.close();
- }
- catch (Exception e) {
- // what can you do?
- }
- }
-
- /************************************************************************
- * Native API transformation methods - _NOT_ JAXP/TrAX
- ************************************************************************/
-
- /**
- * Main transform() method - this is overridden by the compiled translet
- */
- public abstract void transform(DOM document, DTMAxisIterator iterator,
- SerializationHandler handler)
- throws TransletException;
-
- /**
- * Calls transform() with a given output handler
- */
- public final void transform(DOM document, SerializationHandler handler)
- throws TransletException {
- try {
- transform(document, document.getIterator(), handler);
- } finally {
- _keyIndexes = null;
- }
- }
-
- /**
- * Used by some compiled code as a shortcut for passing strings to the
- * output handler
- */
- public final void characters(final String string,
- SerializationHandler handler)
- throws TransletException {
- if (string != null) {
- //final int length = string.length();
- try {
- handler.characters(string);
- } catch (Exception e) {
- throw new TransletException(e);
- }
- }
- }
-
- /**
- * Add's a name of an element whose text contents should be output as CDATA
- */
- public void addCdataElement(String name) {
- if (_cdata == null) {
- _cdata = new Vector();
- }
-
- int lastColon = name.lastIndexOf(':');
-
- if (lastColon > 0) {
- String uri = name.substring(0, lastColon);
- String localName = name.substring(lastColon+1);
- _cdata.addElement(uri);
- _cdata.addElement(localName);
- } else {
- _cdata.addElement(null);
- _cdata.addElement(name);
- }
- }
-
- /**
- * Transfer the output settings to the output post-processor
- */
- protected void transferOutputSettings(SerializationHandler handler) {
- if (_method != null) {
- if (_method.equals("xml")) {
- if (_standalone != null) {
- handler.setStandalone(_standalone);
- }
- if (_omitHeader) {
- handler.setOmitXMLDeclaration(true);
- }
- handler.setCdataSectionElements(_cdata);
- if (_version != null) {
- handler.setVersion(_version);
- }
- handler.setIndent(_indent);
- handler.setIndentAmount(_indentamount);
- if (_doctypeSystem != null) {
- handler.setDoctype(_doctypeSystem, _doctypePublic);
- }
- handler.setIsStandalone(_isStandalone);
- }
- else if (_method.equals("html")) {
- handler.setIndent(_indent);
- handler.setDoctype(_doctypeSystem, _doctypePublic);
- if (_mediaType != null) {
- handler.setMediaType(_mediaType);
- }
- }
- }
- else {
- handler.setCdataSectionElements(_cdata);
- if (_version != null) {
- handler.setVersion(_version);
- }
- if (_standalone != null) {
- handler.setStandalone(_standalone);
- }
- if (_omitHeader) {
- handler.setOmitXMLDeclaration(true);
- }
- handler.setIndent(_indent);
- handler.setDoctype(_doctypeSystem, _doctypePublic);
- handler.setIsStandalone(_isStandalone);
- }
- }
-
- private Map<String, Class<?>> _auxClasses = null;
-
- public void addAuxiliaryClass(Class auxClass) {
- if (_auxClasses == null) _auxClasses = new HashMap<>();
- _auxClasses.put(auxClass.getName(), auxClass);
- }
-
- public void setAuxiliaryClasses(Map<String, Class<?>> auxClasses) {
- _auxClasses = auxClasses;
- }
-
- public Class getAuxiliaryClass(String className) {
- if (_auxClasses == null) return null;
- return((Class)_auxClasses.get(className));
- }
-
- // GTM added (see pg 110)
- public String[] getNamesArray() {
- return namesArray;
- }
-
- public String[] getUrisArray() {
- return urisArray;
- }
-
- public int[] getTypesArray() {
- return typesArray;
- }
-
- public String[] getNamespaceArray() {
- return namespaceArray;
- }
-
- public boolean hasIdCall() {
- return _hasIdCall;
- }
-
- public Templates getTemplates() {
- return _templates;
- }
-
- public void setTemplates(Templates templates) {
- _templates = templates;
- }
- /**
- * Return the state of the services mechanism feature.
- */
- public boolean useServicesMechnism() {
- return _useServicesMechanism;
- }
-
- /**
- * Set the state of the services mechanism feature.
- */
- public void setServicesMechnism(boolean flag) {
- _useServicesMechanism = flag;
- }
-
- /**
- * Return allowed protocols for accessing external stylesheet.
- */
- public String getAllowedProtocols() {
- return _accessExternalStylesheet;
- }
-
- /**
- * Set allowed protocols for accessing external stylesheet.
- */
- public void setAllowedProtocols(String protocols) {
- _accessExternalStylesheet = protocols;
- }
-
- /************************************************************************
- * DOMImplementation caching for basis library
- ************************************************************************/
- protected DOMImplementation _domImplementation = null;
-
- public Document newDocument(String uri, String qname)
- throws ParserConfigurationException
- {
- if (_domImplementation == null) {
- DocumentBuilderFactory dbf = FactoryImpl.getDOMFactory(_useServicesMechanism);
- _domImplementation = dbf.newDocumentBuilder().getDOMImplementation();
- }
- return _domImplementation.createDocument(uri, qname, null);
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Attributes.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Attributes.java
deleted file mode 100644
index 62e57a6..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Attributes.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: Attributes.java,v 1.2.4.1 2005/09/06 10:53:04 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import com.sun.org.apache.xalan.internal.xsltc.DOM;
-import org.xml.sax.AttributeList;
-
-/**
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- */
-public final class Attributes implements AttributeList {
- private int _element;
- private DOM _document;
-
- public Attributes(DOM document, int element) {
- _element = element;
- _document = document;
- }
-
- public int getLength() {
- return 0;
- }
-
- public String getName(int i) {
- return null;
- }
-
- public String getType(int i) {
- return null;
- }
-
- public String getType(String name) {
- return null;
- }
-
- public String getValue(int i) {
- return null;
- }
-
- public String getValue(String name) {
- return null;
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java
deleted file mode 100644
index 804b154..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java
+++ /dev/null
@@ -1,1688 +0,0 @@
-/*
- * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
- */
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: BasisLibrary.java,v 1.6 2006/06/20 21:51:58 spericas Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import com.sun.org.apache.xalan.internal.utils.SecuritySupport;
-import com.sun.org.apache.xalan.internal.xsltc.DOM;
-import com.sun.org.apache.xalan.internal.xsltc.Translet;
-import com.sun.org.apache.xalan.internal.xsltc.dom.AbsoluteIterator;
-import com.sun.org.apache.xalan.internal.xsltc.dom.ArrayNodeListIterator;
-import com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter;
-import com.sun.org.apache.xalan.internal.xsltc.dom.MultiDOM;
-import com.sun.org.apache.xalan.internal.xsltc.dom.SingletonIterator;
-import com.sun.org.apache.xalan.internal.xsltc.dom.StepIterator;
-import com.sun.org.apache.xml.internal.dtm.Axis;
-import com.sun.org.apache.xml.internal.dtm.DTM;
-import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
-import com.sun.org.apache.xml.internal.dtm.DTMManager;
-import com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase;
-import com.sun.org.apache.xml.internal.dtm.ref.DTMNodeProxy;
-import com.sun.org.apache.xml.internal.serializer.NamespaceMappings;
-import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
-import com.sun.org.apache.xml.internal.utils.XML11Char;
-import java.text.DecimalFormat;
-import java.text.DecimalFormatSymbols;
-import java.text.FieldPosition;
-import java.text.MessageFormat;
-import java.text.NumberFormat;
-import java.util.Locale;
-import java.util.ResourceBundle;
-import java.util.concurrent.atomic.AtomicInteger;
-import javax.xml.transform.dom.DOMSource;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.xml.sax.SAXException;
-
-/**
- * Standard XSLT functions. All standard functions expect the current node
- * and the DOM as their last two arguments.
- */
-public final class BasisLibrary {
-
- private final static String EMPTYSTRING = "";
-
- /**
- * Re-use a single instance of StringBuffer (per thread) in the basis library.
- * StringBuilder is better, however, DecimalFormat only accept StringBuffer
- */
- private static final ThreadLocal<StringBuilder> threadLocalStringBuilder =
- new ThreadLocal<StringBuilder> () {
- @Override protected StringBuilder initialValue() {
- return new StringBuilder();
- }
- };
-
- /**
- * ThreadLocal for StringBuffer used
- */
- private static final ThreadLocal<StringBuffer> threadLocalStringBuffer =
- new ThreadLocal<StringBuffer> () {
- @Override protected StringBuffer initialValue() {
- return new StringBuffer();
- }
- };
-
- /**
- * Standard function count(node-set)
- */
- public static int countF(DTMAxisIterator iterator) {
- return(iterator.getLast());
- }
-
- /**
- * Standard function position()
- * @deprecated This method exists only for backwards compatibility with old
- * translets. New code should not reference it.
- */
- public static int positionF(DTMAxisIterator iterator) {
- return iterator.isReverse()
- ? iterator.getLast() - iterator.getPosition() + 1
- : iterator.getPosition();
- }
-
- /**
- * XSLT Standard function sum(node-set).
- * stringToDouble is inlined
- */
- public static double sumF(DTMAxisIterator iterator, DOM dom) {
- try {
- double result = 0.0;
- int node;
- while ((node = iterator.next()) != DTMAxisIterator.END) {
- result += Double.parseDouble(dom.getStringValueX(node));
- }
- return result;
- }
- catch (NumberFormatException e) {
- return Double.NaN;
- }
- }
-
- /**
- * XSLT Standard function string()
- */
- public static String stringF(int node, DOM dom) {
- return dom.getStringValueX(node);
- }
-
- /**
- * XSLT Standard function string(value)
- */
- public static String stringF(Object obj, DOM dom) {
- if (obj instanceof DTMAxisIterator) {
- return dom.getStringValueX(((DTMAxisIterator)obj).reset().next());
- }
- else if (obj instanceof Node) {
- return dom.getStringValueX(((Node)obj).node);
- }
- else if (obj instanceof DOM) {
- return ((DOM)obj).getStringValue();
- }
- else {
- return obj.toString();
- }
- }
-
- /**
- * XSLT Standard function string(value)
- */
- public static String stringF(Object obj, int node, DOM dom) {
- if (obj instanceof DTMAxisIterator) {
- return dom.getStringValueX(((DTMAxisIterator)obj).reset().next());
- }
- else if (obj instanceof Node) {
- return dom.getStringValueX(((Node)obj).node);
- }
- else if (obj instanceof DOM) {
- // When the first argument is a DOM we want the whole
- // DOM and not just a single node - that would not make sense.
- //return ((DOM)obj).getStringValueX(node);
- return ((DOM)obj).getStringValue();
- }
- else if (obj instanceof Double) {
- Double d = (Double)obj;
- final String result = d.toString();
- final int length = result.length();
- if ((result.charAt(length-2)=='.') &&
- (result.charAt(length-1) == '0'))
- return result.substring(0, length-2);
- else
- return result;
- }
- else {
- return obj != null ? obj.toString() : "";
- }
- }
-
- /**
- * XSLT Standard function number()
- */
- public static double numberF(int node, DOM dom) {
- return stringToReal(dom.getStringValueX(node));
- }
-
- /**
- * XSLT Standard function number(value)
- */
- public static double numberF(Object obj, DOM dom) {
- if (obj instanceof Double) {
- return ((Double) obj).doubleValue();
- }
- else if (obj instanceof Integer) {
- return ((Integer) obj).doubleValue();
- }
- else if (obj instanceof Boolean) {
- return ((Boolean) obj).booleanValue() ? 1.0 : 0.0;
- }
- else if (obj instanceof String) {
- return stringToReal((String) obj);
- }
- else if (obj instanceof DTMAxisIterator) {
- DTMAxisIterator iter = (DTMAxisIterator) obj;
- return stringToReal(dom.getStringValueX(iter.reset().next()));
- }
- else if (obj instanceof Node) {
- return stringToReal(dom.getStringValueX(((Node) obj).node));
- }
- else if (obj instanceof DOM) {
- return stringToReal(((DOM) obj).getStringValue());
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(INVALID_ARGUMENT_ERR, className, "number()");
- return 0.0;
- }
- }
-
- /**
- * XSLT Standard function round()
- */
- public static double roundF(double d) {
- return (d<-0.5 || d>0.0)?Math.floor(d+0.5):((d==0.0)?
- d:(Double.isNaN(d)?Double.NaN:-0.0));
- }
-
- /**
- * XSLT Standard function boolean()
- */
- public static boolean booleanF(Object obj) {
- if (obj instanceof Double) {
- final double temp = ((Double) obj).doubleValue();
- return temp != 0.0 && !Double.isNaN(temp);
- }
- else if (obj instanceof Integer) {
- return ((Integer) obj).doubleValue() != 0;
- }
- else if (obj instanceof Boolean) {
- return ((Boolean) obj).booleanValue();
- }
- else if (obj instanceof String) {
- return !((String) obj).equals(EMPTYSTRING);
- }
- else if (obj instanceof DTMAxisIterator) {
- DTMAxisIterator iter = (DTMAxisIterator) obj;
- return iter.reset().next() != DTMAxisIterator.END;
- }
- else if (obj instanceof Node) {
- return true;
- }
- else if (obj instanceof DOM) {
- String temp = ((DOM) obj).getStringValue();
- return !temp.equals(EMPTYSTRING);
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(INVALID_ARGUMENT_ERR, className, "boolean()");
- }
- return false;
- }
-
- /**
- * XSLT Standard function substring(). Must take a double because of
- * conversions resulting into NaNs and rounding.
- */
- public static String substringF(String value, double start) {
- if (Double.isNaN(start))
- return(EMPTYSTRING);
-
- final int strlen = getStringLength(value);
- int istart = (int)Math.round(start) - 1;
-
- if (istart > strlen)
- return(EMPTYSTRING);
- if (istart < 1)
- istart = 0;
- try {
- istart = value.offsetByCodePoints(0, istart);
- return value.substring(istart);
- } catch (IndexOutOfBoundsException e) {
- runTimeError(RUN_TIME_INTERNAL_ERR, "substring()");
- return null;
- }
- }
-
- /**
- * XSLT Standard function substring(). Must take a double because of
- * conversions resulting into NaNs and rounding.
- */
- public static String substringF(String value, double start, double length) {
- if (Double.isInfinite(start) ||
- Double.isNaN(start) ||
- Double.isNaN(length) ||
- length < 0)
- return(EMPTYSTRING);
-
- int istart = (int)Math.round(start) - 1;
- int ilength = (int)Math.round(length);
- final int isum;
- if (Double.isInfinite(length))
- isum = Integer.MAX_VALUE;
- else
- isum = istart + ilength;
-
- final int strlen = getStringLength(value);
- if (isum < 0 || istart > strlen)
- return(EMPTYSTRING);
-
- if (istart < 0) {
- ilength += istart;
- istart = 0;
- }
-
- try {
- istart = value.offsetByCodePoints(0, istart);
- if (isum > strlen) {
- return value.substring(istart);
- } else {
- int offset = value.offsetByCodePoints(istart, ilength);
- return value.substring(istart, offset);
- }
- } catch (IndexOutOfBoundsException e) {
- runTimeError(RUN_TIME_INTERNAL_ERR, "substring()");
- return null;
- }
- }
-
- /**
- * XSLT Standard function substring-after().
- */
- public static String substring_afterF(String value, String substring) {
- final int index = value.indexOf(substring);
- if (index >= 0)
- return value.substring(index + substring.length());
- else
- return EMPTYSTRING;
- }
-
- /**
- * XSLT Standard function substring-before().
- */
- public static String substring_beforeF(String value, String substring) {
- final int index = value.indexOf(substring);
- if (index >= 0)
- return value.substring(0, index);
- else
- return EMPTYSTRING;
- }
-
- /**
- * XSLT Standard function translate().
- */
- public static String translateF(String value, String from, String to) {
- final int tol = to.length();
- final int froml = from.length();
- final int valuel = value.length();
-
- final StringBuilder result = threadLocalStringBuilder.get();
- result.setLength(0);
- for (int j, i = 0; i < valuel; i++) {
- final char ch = value.charAt(i);
- for (j = 0; j < froml; j++) {
- if (ch == from.charAt(j)) {
- if (j < tol)
- result.append(to.charAt(j));
- break;
- }
- }
- if (j == froml)
- result.append(ch);
- }
- return result.toString();
- }
-
- /**
- * XSLT Standard function normalize-space().
- */
- public static String normalize_spaceF(int node, DOM dom) {
- return normalize_spaceF(dom.getStringValueX(node));
- }
-
- /**
- * XSLT Standard function normalize-space(string).
- */
- public static String normalize_spaceF(String value) {
- int i = 0, n = value.length();
- StringBuilder result = threadLocalStringBuilder.get();
- result.setLength(0);
-
- while (i < n && isWhiteSpace(value.charAt(i)))
- i++;
-
- while (true) {
- while (i < n && !isWhiteSpace(value.charAt(i))) {
- result.append(value.charAt(i++));
- }
- if (i == n)
- break;
- while (i < n && isWhiteSpace(value.charAt(i))) {
- i++;
- }
- if (i < n)
- result.append(' ');
- }
- return result.toString();
- }
-
- /**
- * XSLT Standard function generate-id().
- */
- public static String generate_idF(int node) {
- if (node > 0)
- // Only generate ID if node exists
- return "N" + node;
- else
- // Otherwise return an empty string
- return EMPTYSTRING;
- }
-
- /**
- * utility function for calls to local-name().
- */
- public static String getLocalName(String value) {
- int idx = value.lastIndexOf(':');
- if (idx >= 0) value = value.substring(idx + 1);
- idx = value.lastIndexOf('@');
- if (idx >= 0) value = value.substring(idx + 1);
- return(value);
- }
-
- /**
- * External functions that cannot be resolved are replaced with a call
- * to this method. This method will generate a runtime errors. A good
- * stylesheet checks whether the function exists using conditional
- * constructs, and never really tries to call it if it doesn't exist.
- * But simple stylesheets may result in a call to this method.
- * The compiler should generate a warning if it encounters a call to
- * an unresolved external function.
- */
- public static void unresolved_externalF(String name) {
- runTimeError(EXTERNAL_FUNC_ERR, name);
- }
-
- /**
- * Utility function to throw a runtime error on the use of an extension
- * function when the secure processing feature is set to true.
- */
- public static void unallowed_extension_functionF(String name) {
- runTimeError(UNALLOWED_EXTENSION_FUNCTION_ERR, name);
- }
-
- /**
- * Utility function to throw a runtime error on the use of an extension
- * element when the secure processing feature is set to true.
- */
- public static void unallowed_extension_elementF(String name) {
- runTimeError(UNALLOWED_EXTENSION_ELEMENT_ERR, name);
- }
-
- /**
- * Utility function to throw a runtime error for an unsupported element.
- *
- * This is only used in forward-compatibility mode, when the control flow
- * cannot be determined. In 1.0 mode, the error message is emitted at
- * compile time.
- */
- public static void unsupported_ElementF(String qname, boolean isExtension) {
- if (isExtension)
- runTimeError(UNSUPPORTED_EXT_ERR, qname);
- else
- runTimeError(UNSUPPORTED_XSL_ERR, qname);
- }
-
- /**
- * XSLT Standard function namespace-uri(node-set).
- */
- public static String namespace_uriF(DTMAxisIterator iter, DOM dom) {
- return namespace_uriF(iter.next(), dom);
- }
-
- /**
- * XSLT Standard function system-property(name)
- */
- public static String system_propertyF(String name) {
- if (name.equals("xsl:version"))
- return("1.0");
- if (name.equals("xsl:vendor"))
- return("Apache Software Foundation (Xalan XSLTC)");
- if (name.equals("xsl:vendor-url"))
- return("http://xml.apache.org/xalan-j");
-
- runTimeError(INVALID_ARGUMENT_ERR, name, "system-property()");
- return(EMPTYSTRING);
- }
-
- /**
- * XSLT Standard function namespace-uri().
- */
- public static String namespace_uriF(int node, DOM dom) {
- final String value = dom.getNodeName(node);
- final int colon = value.lastIndexOf(':');
- if (colon >= 0)
- return value.substring(0, colon);
- else
- return EMPTYSTRING;
- }
-
- /**
- * Implements the object-type() extension function.
- *
- * @see <a href="http://www.exslt.org/">EXSLT</a>
- */
- public static String objectTypeF(Object obj)
- {
- if (obj instanceof String)
- return "string";
- else if (obj instanceof Boolean)
- return "boolean";
- else if (obj instanceof Number)
- return "number";
- else if (obj instanceof DOM)
- return "RTF";
- else if (obj instanceof DTMAxisIterator)
- return "node-set";
- else
- return "unknown";
- }
-
- /**
- * Implements the nodeset() extension function.
- */
- public static DTMAxisIterator nodesetF(Object obj) {
- if (obj instanceof DOM) {
- //final DOMAdapter adapter = (DOMAdapter) obj;
- final DOM dom = (DOM)obj;
- return new SingletonIterator(dom.getDocument(), true);
- }
- else if (obj instanceof DTMAxisIterator) {
- return (DTMAxisIterator) obj;
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, "node-set", className);
- return null;
- }
- }
-
- //-- Begin utility functions
-
- private static boolean isWhiteSpace(char ch) {
- return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r';
- }
-
- private static boolean compareStrings(String lstring, String rstring,
- int op, DOM dom) {
- switch (op) {
- case Operators.EQ:
- return lstring.equals(rstring);
-
- case Operators.NE:
- return !lstring.equals(rstring);
-
- case Operators.GT:
- return numberF(lstring, dom) > numberF(rstring, dom);
-
- case Operators.LT:
- return numberF(lstring, dom) < numberF(rstring, dom);
-
- case Operators.GE:
- return numberF(lstring, dom) >= numberF(rstring, dom);
-
- case Operators.LE:
- return numberF(lstring, dom) <= numberF(rstring, dom);
-
- default:
- runTimeError(RUN_TIME_INTERNAL_ERR, "compare()");
- return false;
- }
- }
-
- /**
- * Utility function: node-set/node-set compare.
- */
- public static boolean compare(DTMAxisIterator left, DTMAxisIterator right,
- int op, DOM dom) {
- int lnode;
- left.reset();
-
- while ((lnode = left.next()) != DTMAxisIterator.END) {
- final String lvalue = dom.getStringValueX(lnode);
-
- int rnode;
- right.reset();
- while ((rnode = right.next()) != DTMAxisIterator.END) {
- // String value must be the same if both nodes are the same
- if (lnode == rnode) {
- if (op == Operators.EQ) {
- return true;
- } else if (op == Operators.NE) {
- continue;
- }
- }
- if (compareStrings(lvalue, dom.getStringValueX(rnode), op,
- dom)) {
- return true;
- }
- }
- }
- return false;
- }
-
- public static boolean compare(int node, DTMAxisIterator iterator,
- int op, DOM dom) {
- //iterator.reset();
-
- int rnode;
- String value;
-
- switch(op) {
- case Operators.EQ:
- rnode = iterator.next();
- if (rnode != DTMAxisIterator.END) {
- value = dom.getStringValueX(node);
- do {
- if (node == rnode
- || value.equals(dom.getStringValueX(rnode))) {
- return true;
- }
- } while ((rnode = iterator.next()) != DTMAxisIterator.END);
- }
- break;
- case Operators.NE:
- rnode = iterator.next();
- if (rnode != DTMAxisIterator.END) {
- value = dom.getStringValueX(node);
- do {
- if (node != rnode
- && !value.equals(dom.getStringValueX(rnode))) {
- return true;
- }
- } while ((rnode = iterator.next()) != DTMAxisIterator.END);
- }
- break;
- case Operators.LT:
- // Assume we're comparing document order here
- while ((rnode = iterator.next()) != DTMAxisIterator.END) {
- if (rnode > node) return true;
- }
- break;
- case Operators.GT:
- // Assume we're comparing document order here
- while ((rnode = iterator.next()) != DTMAxisIterator.END) {
- if (rnode < node) return true;
- }
- break;
- }
- return(false);
- }
-
- /**
- * Utility function: node-set/number compare.
- */
- public static boolean compare(DTMAxisIterator left, final double rnumber,
- final int op, DOM dom) {
- int node;
- //left.reset();
-
- switch (op) {
- case Operators.EQ:
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (numberF(dom.getStringValueX(node), dom) == rnumber)
- return true;
- }
- break;
-
- case Operators.NE:
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (numberF(dom.getStringValueX(node), dom) != rnumber)
- return true;
- }
- break;
-
- case Operators.GT:
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (numberF(dom.getStringValueX(node), dom) > rnumber)
- return true;
- }
- break;
-
- case Operators.LT:
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (numberF(dom.getStringValueX(node), dom) < rnumber)
- return true;
- }
- break;
-
- case Operators.GE:
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (numberF(dom.getStringValueX(node), dom) >= rnumber)
- return true;
- }
- break;
-
- case Operators.LE:
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (numberF(dom.getStringValueX(node), dom) <= rnumber)
- return true;
- }
- break;
-
- default:
- runTimeError(RUN_TIME_INTERNAL_ERR, "compare()");
- }
-
- return false;
- }
-
- /**
- * Utility function: node-set/string comparison.
- */
- public static boolean compare(DTMAxisIterator left, final String rstring,
- int op, DOM dom) {
- int node;
- //left.reset();
- while ((node = left.next()) != DTMAxisIterator.END) {
- if (compareStrings(dom.getStringValueX(node), rstring, op, dom)) {
- return true;
- }
- }
- return false;
- }
-
-
- public static boolean compare(Object left, Object right,
- int op, DOM dom)
- {
- boolean result = false;
- boolean hasSimpleArgs = hasSimpleType(left) && hasSimpleType(right);
-
- if (op != Operators.EQ && op != Operators.NE) {
- // If node-boolean comparison -> convert node to boolean
- if (left instanceof Node || right instanceof Node) {
- if (left instanceof Boolean) {
- right = new Boolean(booleanF(right));
- hasSimpleArgs = true;
- }
- if (right instanceof Boolean) {
- left = new Boolean(booleanF(left));
- hasSimpleArgs = true;
- }
- }
-
- if (hasSimpleArgs) {
- switch (op) {
- case Operators.GT:
- return numberF(left, dom) > numberF(right, dom);
-
- case Operators.LT:
- return numberF(left, dom) < numberF(right, dom);
-
- case Operators.GE:
- return numberF(left, dom) >= numberF(right, dom);
-
- case Operators.LE:
- return numberF(left, dom) <= numberF(right, dom);
-
- default:
- runTimeError(RUN_TIME_INTERNAL_ERR, "compare()");
- }
- }
- // falls through
- }
-
- if (hasSimpleArgs) {
- if (left instanceof Boolean || right instanceof Boolean) {
- result = booleanF(left) == booleanF(right);
- }
- else if (left instanceof Double || right instanceof Double ||
- left instanceof Integer || right instanceof Integer) {
- result = numberF(left, dom) == numberF(right, dom);
- }
- else { // compare them as strings
- result = stringF(left, dom).equals(stringF(right, dom));
- }
-
- if (op == Operators.NE) {
- result = !result;
- }
- }
- else {
- if (left instanceof Node) {
- left = new SingletonIterator(((Node)left).node);
- }
- if (right instanceof Node) {
- right = new SingletonIterator(((Node)right).node);
- }
-
- if (hasSimpleType(left) ||
- left instanceof DOM && right instanceof DTMAxisIterator) {
- // swap operands and operator
- final Object temp = right; right = left; left = temp;
- op = Operators.swapOp(op);
- }
-
- if (left instanceof DOM) {
- if (right instanceof Boolean) {
- result = ((Boolean)right).booleanValue();
- return result == (op == Operators.EQ);
- }
-
- final String sleft = ((DOM)left).getStringValue();
-
- if (right instanceof Number) {
- result = ((Number)right).doubleValue() ==
- stringToReal(sleft);
- }
- else if (right instanceof String) {
- result = sleft.equals((String)right);
- }
- else if (right instanceof DOM) {
- result = sleft.equals(((DOM)right).getStringValue());
- }
-
- if (op == Operators.NE) {
- result = !result;
- }
- return result;
- }
-
- // Next, node-set/t for t in {real, string, node-set, result-tree}
-
- DTMAxisIterator iter = ((DTMAxisIterator)left).reset();
-
- if (right instanceof DTMAxisIterator) {
- result = compare(iter, (DTMAxisIterator)right, op, dom);
- }
- else if (right instanceof String) {
- result = compare(iter, (String)right, op, dom);
- }
- else if (right instanceof Number) {
- final double temp = ((Number)right).doubleValue();
- result = compare(iter, temp, op, dom);
- }
- else if (right instanceof Boolean) {
- boolean temp = ((Boolean)right).booleanValue();
- result = (iter.reset().next() != DTMAxisIterator.END) == temp;
- }
- else if (right instanceof DOM) {
- result = compare(iter, ((DOM)right).getStringValue(),
- op, dom);
- }
- else if (right == null) {
- return(false);
- }
- else {
- final String className = right.getClass().getName();
- runTimeError(INVALID_ARGUMENT_ERR, className, "compare()");
- }
- }
- return result;
- }
-
- /**
- * Utility function: used to test context node's language
- */
- public static boolean testLanguage(String testLang, DOM dom, int node) {
- // language for context node (if any)
- String nodeLang = dom.getLanguage(node);
- if (nodeLang == null)
- return(false);
- else
- nodeLang = nodeLang.toLowerCase();
-
- // compare context node's language agains test language
- testLang = testLang.toLowerCase();
- if (testLang.length() == 2) {
- return(nodeLang.startsWith(testLang));
- }
- else {
- return(nodeLang.equals(testLang));
- }
- }
-
- private static boolean hasSimpleType(Object obj) {
- return obj instanceof Boolean || obj instanceof Double ||
- obj instanceof Integer || obj instanceof String ||
- obj instanceof Node || obj instanceof DOM;
- }
-
- /**
- * Utility function: used in StringType to convert a string to a real.
- */
- public static double stringToReal(String s) {
- try {
- return Double.valueOf(s).doubleValue();
- }
- catch (NumberFormatException e) {
- return Double.NaN;
- }
- }
-
- /**
- * Utility function: used in StringType to convert a string to an int.
- */
- public static int stringToInt(String s) {
- try {
- return Integer.parseInt(s);
- }
- catch (NumberFormatException e) {
- return(-1); // ???
- }
- }
-
- private static final int DOUBLE_FRACTION_DIGITS = 340;
- private static final double lowerBounds = 0.001;
- private static final double upperBounds = 10000000;
- private static DecimalFormat defaultFormatter, xpathFormatter;
- private static String defaultPattern = "";
-
- static {
- NumberFormat f = NumberFormat.getInstance(Locale.getDefault());
- defaultFormatter = (f instanceof DecimalFormat) ?
- (DecimalFormat) f : new DecimalFormat();
- // Set max fraction digits so that truncation does not occur. Setting
- // the max to Integer.MAX_VALUE may cause problems with some JDK's.
- defaultFormatter.setMaximumFractionDigits(DOUBLE_FRACTION_DIGITS);
- defaultFormatter.setMinimumFractionDigits(0);
- defaultFormatter.setMinimumIntegerDigits(1);
- defaultFormatter.setGroupingUsed(false);
-
- // This formatter is used to convert numbers according to the XPath
- // 1.0 syntax which ignores locales (http://www.w3.org/TR/xpath#NT-Number)
- xpathFormatter = new DecimalFormat("",
- new DecimalFormatSymbols(Locale.US));
- xpathFormatter.setMaximumFractionDigits(DOUBLE_FRACTION_DIGITS);
- xpathFormatter.setMinimumFractionDigits(0);
- xpathFormatter.setMinimumIntegerDigits(1);
- xpathFormatter.setGroupingUsed(false);
- }
-
- /**
- * Utility function: used in RealType to convert a real to a string.
- * Removes the decimal if null. Uses a specialized formatter object
- * for very large and very small numbers that ignores locales, thus
- * using always using "." as a decimal separator.
- */
- public static String realToString(double d) {
- final double m = Math.abs(d);
- if ((m >= lowerBounds) && (m < upperBounds)) {
- final String result = Double.toString(d);
- final int length = result.length();
- // Remove leading zeros.
- if ((result.charAt(length-2) == '.') &&
- (result.charAt(length-1) == '0'))
- return result.substring(0, length-2);
- else
- return result;
- }
- else {
- if (Double.isNaN(d) || Double.isInfinite(d))
- return(Double.toString(d));
-
- //Convert -0.0 to +0.0 other values remains the same
- d = d + 0.0;
-
- // Use the XPath formatter to ignore locales
- StringBuffer result = threadLocalStringBuffer.get();
- result.setLength(0);
- xpathFormatter.format(d, result, _fieldPosition);
- return result.toString();
- }
- }
-
- /**
- * Utility function: used in RealType to convert a real to an integer
- */
- public static int realToInt(double d) {
- return (int)d;
- }
-
- /**
- * Utility function: used to format/adjust a double to a string. The
- * DecimalFormat object comes from the 'formatSymbols' map in
- * AbstractTranslet.
- */
- private static FieldPosition _fieldPosition = new FieldPosition(0);
-
- public static String formatNumber(double number, String pattern,
- DecimalFormat formatter) {
- // bugzilla fix 12813
- if (formatter == null) {
- formatter = defaultFormatter;
- }
- try {
- StringBuffer result = threadLocalStringBuffer.get();
- result.setLength(0);
- if (pattern != defaultPattern) {
- formatter.applyLocalizedPattern(pattern);
- }
- formatter.format(number, result, _fieldPosition);
- return result.toString();
- }
- catch (IllegalArgumentException e) {
- runTimeError(FORMAT_NUMBER_ERR, Double.toString(number), pattern);
- return(EMPTYSTRING);
- }
- }
-
- /**
- * Utility function: used to convert references to node-sets. If the
- * obj is an instanceof Node then create a singleton iterator.
- */
- public static DTMAxisIterator referenceToNodeSet(Object obj) {
- // Convert var/param -> node
- if (obj instanceof Node) {
- return(new SingletonIterator(((Node)obj).node));
- }
- // Convert var/param -> node-set
- else if (obj instanceof DTMAxisIterator) {
- return(((DTMAxisIterator)obj).cloneIterator().reset());
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className, "node-set");
- return null;
- }
- }
-
- /**
- * Utility function: used to convert reference to org.w3c.dom.NodeList.
- */
- public static NodeList referenceToNodeList(Object obj, DOM dom) {
- if (obj instanceof Node || obj instanceof DTMAxisIterator) {
- DTMAxisIterator iter = referenceToNodeSet(obj);
- return dom.makeNodeList(iter);
- }
- else if (obj instanceof DOM) {
- dom = (DOM)obj;
- return dom.makeNodeList(DTMDefaultBase.ROOTNODE);
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className,
- "org.w3c.dom.NodeList");
- return null;
- }
- }
-
- /**
- * Utility function: used to convert reference to org.w3c.dom.Node.
- */
- public static org.w3c.dom.Node referenceToNode(Object obj, DOM dom) {
- if (obj instanceof Node || obj instanceof DTMAxisIterator) {
- DTMAxisIterator iter = referenceToNodeSet(obj);
- return dom.makeNode(iter);
- }
- else if (obj instanceof DOM) {
- dom = (DOM)obj;
- DTMAxisIterator iter = dom.getChildren(DTMDefaultBase.ROOTNODE);
- return dom.makeNode(iter);
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className, "org.w3c.dom.Node");
- return null;
- }
- }
-
- /**
- * Utility function: used to convert reference to long.
- */
- public static long referenceToLong(Object obj) {
- if (obj instanceof Number) {
- return ((Number) obj).longValue(); // handles Integer and Double
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className, Long.TYPE);
- return 0;
- }
- }
-
- /**
- * Utility function: used to convert reference to double.
- */
- public static double referenceToDouble(Object obj) {
- if (obj instanceof Number) {
- return ((Number) obj).doubleValue(); // handles Integer and Double
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className, Double.TYPE);
- return 0;
- }
- }
-
- /**
- * Utility function: used to convert reference to boolean.
- */
- public static boolean referenceToBoolean(Object obj) {
- if (obj instanceof Boolean) {
- return ((Boolean) obj).booleanValue();
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className, Boolean.TYPE);
- return false;
- }
- }
-
- /**
- * Utility function: used to convert reference to String.
- */
- public static String referenceToString(Object obj, DOM dom) {
- if (obj instanceof String) {
- return (String) obj;
- }
- else if (obj instanceof DTMAxisIterator) {
- return dom.getStringValueX(((DTMAxisIterator)obj).reset().next());
- }
- else if (obj instanceof Node) {
- return dom.getStringValueX(((Node)obj).node);
- }
- else if (obj instanceof DOM) {
- return ((DOM) obj).getStringValue();
- }
- else {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, className, String.class);
- return null;
- }
- }
-
- /**
- * Utility function used to convert a w3c Node into an internal DOM iterator.
- */
- public static DTMAxisIterator node2Iterator(org.w3c.dom.Node node,
- Translet translet, DOM dom)
- {
- final org.w3c.dom.Node inNode = node;
- // Create a dummy NodeList which only contains the given node to make
- // use of the nodeList2Iterator() interface.
- org.w3c.dom.NodeList nodelist = new org.w3c.dom.NodeList() {
- public int getLength() {
- return 1;
- }
-
- public org.w3c.dom.Node item(int index) {
- if (index == 0)
- return inNode;
- else
- return null;
- }
- };
-
- return nodeList2Iterator(nodelist, translet, dom);
- }
-
- /**
- * In a perfect world, this would be the implementation for
- * nodeList2Iterator. In reality, though, this causes a
- * ClassCastException in getDTMHandleFromNode because SAXImpl is
- * not an instance of DOM2DTM. So we use the more lengthy
- * implementation below until this issue has been addressed.
- *
- * @see org.apache.xml.dtm.ref.DTMManagerDefault#getDTMHandleFromNode
- */
- private static DTMAxisIterator nodeList2IteratorUsingHandleFromNode(
- org.w3c.dom.NodeList nodeList,
- Translet translet, DOM dom)
- {
- final int n = nodeList.getLength();
- final int[] dtmHandles = new int[n];
- DTMManager dtmManager = null;
- if (dom instanceof MultiDOM)
- dtmManager = ((MultiDOM) dom).getDTMManager();
- for (int i = 0; i < n; ++i) {
- org.w3c.dom.Node node = nodeList.item(i);
- int handle;
- if (dtmManager != null) {
- handle = dtmManager.getDTMHandleFromNode(node);
- }
- else if (node instanceof DTMNodeProxy
- && ((DTMNodeProxy) node).getDTM() == dom) {
- handle = ((DTMNodeProxy) node).getDTMNodeNumber();
- }
- else {
- runTimeError(RUN_TIME_INTERNAL_ERR, "need MultiDOM");
- return null;
- }
- dtmHandles[i] = handle;
- System.out.println("Node " + i + " has handle 0x" +
- Integer.toString(handle, 16));
- }
- return new ArrayNodeListIterator(dtmHandles);
- }
-
- /**
- * Utility function used to convert a w3c NodeList into a internal
- * DOM iterator.
- */
- public static DTMAxisIterator nodeList2Iterator(
- org.w3c.dom.NodeList nodeList,
- Translet translet, DOM dom)
- {
- // First pass: build w3c DOM for all nodes not proxied from our DOM.
- //
- // Notice: this looses some (esp. parent) context for these nodes,
- // so some way to wrap the original nodes inside a DTMAxisIterator
- // might be preferable in the long run.
- int n = 0; // allow for change in list length, just in case.
- Document doc = null;
- DTMManager dtmManager = null;
- int[] proxyNodes = new int[nodeList.getLength()];
- if (dom instanceof MultiDOM)
- dtmManager = ((MultiDOM) dom).getDTMManager();
- for (int i = 0; i < nodeList.getLength(); ++i) {
- org.w3c.dom.Node node = nodeList.item(i);
- if (node instanceof DTMNodeProxy) {
- DTMNodeProxy proxy = (DTMNodeProxy)node;
- DTM nodeDTM = proxy.getDTM();
- int handle = proxy.getDTMNodeNumber();
- boolean isOurDOM = (nodeDTM == dom);
- if (!isOurDOM && dtmManager != null) {
- try {
- isOurDOM = (nodeDTM == dtmManager.getDTM(handle));
- }
- catch (ArrayIndexOutOfBoundsException e) {
- // invalid node handle, so definitely not our doc
- }
- }
- if (isOurDOM) {
- proxyNodes[i] = handle;
- ++n;
- continue;
- }
- }
- proxyNodes[i] = DTM.NULL;
- int nodeType = node.getNodeType();
- if (doc == null) {
- if (dom instanceof MultiDOM == false) {
- runTimeError(RUN_TIME_INTERNAL_ERR, "need MultiDOM");
- return null;
- }
- try {
- AbstractTranslet at = (AbstractTranslet) translet;
- doc = at.newDocument("", "__top__");
- }
- catch (javax.xml.parsers.ParserConfigurationException e) {
- runTimeError(RUN_TIME_INTERNAL_ERR, e.getMessage());
- return null;
- }
- }
- // Use one dummy element as container for each node of the
- // list. That way, it is easier to detect resp. avoid
- // funny things which change the number of nodes,
- // e.g. auto-concatenation of text nodes.
- Element mid;
- switch (nodeType) {
- case org.w3c.dom.Node.ELEMENT_NODE:
- case org.w3c.dom.Node.TEXT_NODE:
- case org.w3c.dom.Node.CDATA_SECTION_NODE:
- case org.w3c.dom.Node.COMMENT_NODE:
- case org.w3c.dom.Node.ENTITY_REFERENCE_NODE:
- case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:
- mid = doc.createElementNS(null, "__dummy__");
- mid.appendChild(doc.importNode(node, true));
- doc.getDocumentElement().appendChild(mid);
- ++n;
- break;
- case org.w3c.dom.Node.ATTRIBUTE_NODE:
- // The mid element also serves as a container for
- // attributes, avoiding problems with conflicting
- // attributes or node order.
- mid = doc.createElementNS(null, "__dummy__");
- mid.setAttributeNodeNS((Attr)doc.importNode(node, true));
- doc.getDocumentElement().appendChild(mid);
- ++n;
- break;
- default:
- // Better play it safe for all types we aren't sure we know
- // how to deal with.
- runTimeError(RUN_TIME_INTERNAL_ERR,
- "Don't know how to convert node type "
- + nodeType);
- }
- }
-
- // w3cDOM -> DTM -> DOMImpl
- DTMAxisIterator iter = null, childIter = null, attrIter = null;
- if (doc != null) {
- final MultiDOM multiDOM = (MultiDOM) dom;
- DOM idom = (DOM)dtmManager.getDTM(new DOMSource(doc), false,
- null, true, false);
- // Create DOMAdapter and register with MultiDOM
- DOMAdapter domAdapter = new DOMAdapter(idom,
- translet.getNamesArray(),
- translet.getUrisArray(),
- translet.getTypesArray(),
- translet.getNamespaceArray());
- multiDOM.addDOMAdapter(domAdapter);
-
- DTMAxisIterator iter1 = idom.getAxisIterator(Axis.CHILD);
- DTMAxisIterator iter2 = idom.getAxisIterator(Axis.CHILD);
- iter = new AbsoluteIterator(
- new StepIterator(iter1, iter2));
-
- iter.setStartNode(DTMDefaultBase.ROOTNODE);
-
- childIter = idom.getAxisIterator(Axis.CHILD);
- attrIter = idom.getAxisIterator(Axis.ATTRIBUTE);
- }
-
- // Second pass: find DTM handles for every node in the list.
- int[] dtmHandles = new int[n];
- n = 0;
- for (int i = 0; i < nodeList.getLength(); ++i) {
- if (proxyNodes[i] != DTM.NULL) {
- dtmHandles[n++] = proxyNodes[i];
- continue;
- }
- org.w3c.dom.Node node = nodeList.item(i);
- DTMAxisIterator iter3 = null;
- int nodeType = node.getNodeType();
- switch (nodeType) {
- case org.w3c.dom.Node.ELEMENT_NODE:
- case org.w3c.dom.Node.TEXT_NODE:
- case org.w3c.dom.Node.CDATA_SECTION_NODE:
- case org.w3c.dom.Node.COMMENT_NODE:
- case org.w3c.dom.Node.ENTITY_REFERENCE_NODE:
- case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:
- iter3 = childIter;
- break;
- case org.w3c.dom.Node.ATTRIBUTE_NODE:
- iter3 = attrIter;
- break;
- default:
- // Should not happen, as first run should have got all these
- throw new InternalRuntimeError("Mismatched cases");
- }
- if (iter3 != null) {
- iter3.setStartNode(iter.next());
- dtmHandles[n] = iter3.next();
- // For now, play it self and perform extra checks:
- if (dtmHandles[n] == DTMAxisIterator.END)
- throw new InternalRuntimeError("Expected element missing at " + i);
- if (iter3.next() != DTMAxisIterator.END)
- throw new InternalRuntimeError("Too many elements at " + i);
- ++n;
- }
- }
- if (n != dtmHandles.length)
- throw new InternalRuntimeError("Nodes lost in second pass");
-
- return new ArrayNodeListIterator(dtmHandles);
- }
-
- /**
- * Utility function used to convert references to DOMs.
- */
- public static DOM referenceToResultTree(Object obj) {
- try {
- return ((DOM) obj);
- }
- catch (IllegalArgumentException e) {
- final String className = obj.getClass().getName();
- runTimeError(DATA_CONVERSION_ERR, "reference", className);
- return null;
- }
- }
-
- /**
- * Utility function: used with nth position filters to convert a sequence
- * of nodes to just one single node (the one at position n).
- */
- public static DTMAxisIterator getSingleNode(DTMAxisIterator iterator) {
- int node = iterator.next();
- return(new SingletonIterator(node));
- }
-
- /**
- * Utility function: used in xsl:copy.
- */
- private static char[] _characterArray = new char[32];
-
- public static void copy(Object obj,
- SerializationHandler handler,
- int node,
- DOM dom) {
- try {
- if (obj instanceof DTMAxisIterator)
- {
- DTMAxisIterator iter = (DTMAxisIterator) obj;
- dom.copy(iter.reset(), handler);
- }
- else if (obj instanceof Node) {
- dom.copy(((Node) obj).node, handler);
- }
- else if (obj instanceof DOM) {
- //((DOM)obj).copy(((com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase)((DOMAdapter)obj).getDOMImpl()).getDocument(), handler);
- DOM newDom = (DOM)obj;
- newDom.copy(newDom.getDocument(), handler);
- }
- else {
- String string = obj.toString(); // or call stringF()
- final int length = string.length();
- if (length > _characterArray.length)
- _characterArray = new char[length];
- string.getChars(0, length, _characterArray, 0);
- handler.characters(_characterArray, 0, length);
- }
- }
- catch (SAXException e) {
- runTimeError(RUN_TIME_COPY_ERR);
- }
- }
-
- /**
- * Utility function to check if xsl:attribute has a valid qname
- * This method should only be invoked if the name attribute is an AVT
- */
- public static void checkAttribQName(String name) {
- final int firstOccur = name.indexOf(":");
- final int lastOccur = name.lastIndexOf(":");
- final String localName = name.substring(lastOccur + 1);
-
- if (firstOccur > 0) {
- final String newPrefix = name.substring(0, firstOccur);
-
- if (firstOccur != lastOccur) {
- final String oriPrefix = name.substring(firstOccur+1, lastOccur);
- if (!XML11Char.isXML11ValidNCName(oriPrefix)) {
- // even though the orignal prefix is ignored, it should still get checked for valid NCName
- runTimeError(INVALID_QNAME_ERR,oriPrefix+":"+localName);
- }
- }
-
- // prefix must be a valid NCName
- if (!XML11Char.isXML11ValidNCName(newPrefix)) {
- runTimeError(INVALID_QNAME_ERR,newPrefix+":"+localName);
- }
- }
-
- // local name must be a valid NCName and must not be XMLNS
- if ((!XML11Char.isXML11ValidNCName(localName))||(localName.equals(Constants.XMLNS_PREFIX))) {
- runTimeError(INVALID_QNAME_ERR,localName);
- }
- }
-
- /**
- * Utility function to check if a name is a valid ncname
- * This method should only be invoked if the attribute value is an AVT
- */
- public static void checkNCName(String name) {
- if (!XML11Char.isXML11ValidNCName(name)) {
- runTimeError(INVALID_NCNAME_ERR,name);
- }
- }
-
- /**
- * Utility function to check if a name is a valid qname
- * This method should only be invoked if the attribute value is an AVT
- */
- public static void checkQName(String name) {
- if (!XML11Char.isXML11ValidQName(name)) {
- runTimeError(INVALID_QNAME_ERR,name);
- }
- }
-
- /**
- * Utility function for the implementation of xsl:element.
- */
- public static String startXslElement(String qname, String namespace,
- SerializationHandler handler, DOM dom, int node)
- {
- try {
- // Get prefix from qname
- String prefix;
- final int index = qname.indexOf(':');
-
- if (index > 0) {
- prefix = qname.substring(0, index);
-
- // Handle case when prefix is not known at compile time
- if (namespace == null || namespace.length() == 0) {
- try {
- // not sure if this line of code ever works
- namespace = dom.lookupNamespace(node, prefix);
- }
- catch(RuntimeException e) {
- handler.flushPending(); // need to flush or else can't get namespacemappings
- NamespaceMappings nm = handler.getNamespaceMappings();
- namespace = nm.lookupNamespace(prefix);
- if (namespace == null) {
- runTimeError(NAMESPACE_PREFIX_ERR,prefix);
- }
- }
- }
-
- handler.startElement(namespace, qname.substring(index+1),
- qname);
- handler.namespaceAfterStartElement(prefix, namespace);
- }
- else {
- // Need to generate a prefix?
- if (namespace != null && namespace.length() > 0) {
- prefix = generatePrefix();
- qname = prefix + ':' + qname;
- handler.startElement(namespace, qname, qname);
- handler.namespaceAfterStartElement(prefix, namespace);
- }
- else {
- handler.startElement(null, null, qname);
- }
- }
- }
- catch (SAXException e) {
- throw new RuntimeException(e.getMessage());
- }
-
- return qname;
- }
-
- /**
- * This function is used in the execution of xsl:element
- */
- public static String getPrefix(String qname) {
- final int index = qname.indexOf(':');
- return (index > 0) ? qname.substring(0, index) : null;
- }
-
- /**
- * These functions are used in the execution of xsl:element to generate
- * and reset namespace prefix index local to current transformation process
- */
- public static String generatePrefix() {
- return ("ns" + threadLocalPrefixIndex.get().getAndIncrement());
- }
-
- public static void resetPrefixIndex() {
- threadLocalPrefixIndex.get().set(0);
- }
-
- private static final ThreadLocal<AtomicInteger> threadLocalPrefixIndex =
- new ThreadLocal<AtomicInteger>() {
- @Override
- protected AtomicInteger initialValue() {
- return new AtomicInteger();
- }
- };
-
- public static final String RUN_TIME_INTERNAL_ERR =
- "RUN_TIME_INTERNAL_ERR";
- public static final String RUN_TIME_COPY_ERR =
- "RUN_TIME_COPY_ERR";
- public static final String DATA_CONVERSION_ERR =
- "DATA_CONVERSION_ERR";
- public static final String EXTERNAL_FUNC_ERR =
- "EXTERNAL_FUNC_ERR";
- public static final String EQUALITY_EXPR_ERR =
- "EQUALITY_EXPR_ERR";
- public static final String INVALID_ARGUMENT_ERR =
- "INVALID_ARGUMENT_ERR";
- public static final String FORMAT_NUMBER_ERR =
- "FORMAT_NUMBER_ERR";
- public static final String ITERATOR_CLONE_ERR =
- "ITERATOR_CLONE_ERR";
- public static final String AXIS_SUPPORT_ERR =
- "AXIS_SUPPORT_ERR";
- public static final String TYPED_AXIS_SUPPORT_ERR =
- "TYPED_AXIS_SUPPORT_ERR";
- public static final String STRAY_ATTRIBUTE_ERR =
- "STRAY_ATTRIBUTE_ERR";
- public static final String STRAY_NAMESPACE_ERR =
- "STRAY_NAMESPACE_ERR";
- public static final String NAMESPACE_PREFIX_ERR =
- "NAMESPACE_PREFIX_ERR";
- public static final String DOM_ADAPTER_INIT_ERR =
- "DOM_ADAPTER_INIT_ERR";
- public static final String PARSER_DTD_SUPPORT_ERR =
- "PARSER_DTD_SUPPORT_ERR";
- public static final String NAMESPACES_SUPPORT_ERR =
- "NAMESPACES_SUPPORT_ERR";
- public static final String CANT_RESOLVE_RELATIVE_URI_ERR =
- "CANT_RESOLVE_RELATIVE_URI_ERR";
- public static final String UNSUPPORTED_XSL_ERR =
- "UNSUPPORTED_XSL_ERR";
- public static final String UNSUPPORTED_EXT_ERR =
- "UNSUPPORTED_EXT_ERR";
- public static final String UNKNOWN_TRANSLET_VERSION_ERR =
- "UNKNOWN_TRANSLET_VERSION_ERR";
- public static final String INVALID_QNAME_ERR = "INVALID_QNAME_ERR";
- public static final String INVALID_NCNAME_ERR = "INVALID_NCNAME_ERR";
- public static final String UNALLOWED_EXTENSION_FUNCTION_ERR = "UNALLOWED_EXTENSION_FUNCTION_ERR";
- public static final String UNALLOWED_EXTENSION_ELEMENT_ERR = "UNALLOWED_EXTENSION_ELEMENT_ERR";
-
- // All error messages are localized and are stored in resource bundles.
- private static ResourceBundle m_bundle;
-
- public final static String ERROR_MESSAGES_KEY = "error-messages";
-
- static {
- String resource = "com.sun.org.apache.xalan.internal.xsltc.runtime.ErrorMessages";
- m_bundle = SecuritySupport.getResourceBundle(resource);
- }
-
- /**
- * Print a run-time error message.
- */
- public static void runTimeError(String code) {
- throw new RuntimeException(m_bundle.getString(code));
- }
-
- public static void runTimeError(String code, Object[] args) {
- final String message = MessageFormat.format(m_bundle.getString(code),
- args);
- throw new RuntimeException(message);
- }
-
- public static void runTimeError(String code, Object arg0) {
- runTimeError(code, new Object[]{ arg0 } );
- }
-
- public static void runTimeError(String code, Object arg0, Object arg1) {
- runTimeError(code, new Object[]{ arg0, arg1 } );
- }
-
- public static void consoleOutput(String msg) {
- System.out.println(msg);
- }
-
- /**
- * Replace a certain character in a string with a new substring.
- */
- public static String replace(String base, char ch, String str) {
- return (base.indexOf(ch) < 0) ? base :
- replace(base, String.valueOf(ch), new String[] { str });
- }
-
- public static String replace(String base, String delim, String[] str) {
- final int len = base.length();
- final StringBuilder result = threadLocalStringBuilder.get();
- result.setLength(0);
-
- for (int i = 0; i < len; i++) {
- final char ch = base.charAt(i);
- final int k = delim.indexOf(ch);
-
- if (k >= 0) {
- result.append(str[k]);
- }
- else {
- result.append(ch);
- }
- }
- return result.toString();
- }
-
-
- /**
- * Utility method to allow setting parameters of the form
- * {namespaceuri}localName
- * which get mapped to an instance variable in the class
- * Hence a parameter of the form "{http://foo.bar}xyz"
- * will be replaced with the corresponding values
- * by the BasisLibrary's utility method mapQNametoJavaName
- * and thus get mapped to legal java variable names
- */
- public static String mapQNameToJavaName (String base ) {
- return replace(base, ".-:/{}?#%*",
- new String[] { "$dot$", "$dash$" ,"$colon$", "$slash$",
- "","$colon$","$ques$","$hash$","$per$",
- "$aster$"});
-
- }
-
- /**
- * Utility method to calculate string-length as a number of code points,
- * to avoid possible errors with string that contains
- * complementary characters
- */
- public static int getStringLength(String str) {
- return str.codePointCount(0,str.length());
- }
-
- //-- End utility functions
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Constants.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Constants.java
deleted file mode 100644
index 74a87a7..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Constants.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: Constants.java,v 1.2.4.1 2005/09/06 11:01:29 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import com.sun.org.apache.xml.internal.dtm.DTM;
-
-/**
- * This class defines constants used by both the compiler and the
- * runtime system.
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- */
-public interface Constants {
-
- final static int ANY = -1;
- final static int ATTRIBUTE = -2;
- final static int ROOT = DTM.ROOT_NODE;
- final static int TEXT = DTM.TEXT_NODE;
- final static int ELEMENT = DTM.ELEMENT_NODE;
- final static int COMMENT = DTM.COMMENT_NODE;
- final static int PROCESSING_INSTRUCTION = DTM.PROCESSING_INSTRUCTION_NODE;
-
- public static final String XSLT_URI = "http://www.w3.org/1999/XSL/Transform";
- public static final String NAMESPACE_FEATURE =
- "http://xml.org/sax/features/namespaces";
-
- public static final String EMPTYSTRING = "";
- public static final String XML_PREFIX = "xml";
- public static final String XMLNS_PREFIX = "xmlns";
- public static final String XMLNS_STRING = "xmlns:";
- public static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/";
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages.java
deleted file mode 100644
index fe98ae9..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Run-time internal error in ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Run-time error when executing <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Invalid conversion from ''{0}'' to ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "External function ''{0}'' not supported by XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Unknown argument type in equality expression."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Invalid argument type ''{0}'' in call to ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Attempting to format number ''{0}'' using pattern ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Cannot clone iterator ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iterator for axis ''{0}'' not supported."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iterator for typed axis ''{0}'' not supported."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Attribute ''{0}'' outside of element."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Namespace declaration ''{0}''=''{1}'' outside of element."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "Namespace for prefix ''{0}'' has not been declared."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter created using wrong type of source DOM."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "The SAX parser you are using does not handle DTD declaration events."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "The SAX parser you are using does not have support for XML Namespaces."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "Could not resolve the URI reference ''{0}''."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "Unsupported XSL element ''{0}''"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "Unrecognized XSLTC extension ''{0}''"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "The specified translet, ''{0}'', was created using a version of XSLTC more recent than the version of the XSLTC run-time that is in use. You must recompile the stylesheet or use a more recent version of XSLTC to run this translet."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "An attribute whose value must be a QName had the value ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "An attribute whose value must be an NCName had the value ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "Use of the extension function ''{0}'' is not allowed when the secure processing feature is set to true."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "Use of the extension element ''{0}'' is not allowed when the secure processing feature is set to true."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ca.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ca.java
deleted file mode 100644
index a2b2ba1..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ca.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: ErrorMessages_ca.java,v 1.1.6.1 2005/09/06 10:45:37 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_ca extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "S''ha produ\u00eft un error intern de temps d''execuci\u00f3 a ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Es produeix un error de temps d'execuci\u00f3 en executar <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "La conversi\u00f3 de ''{0}'' a ''{1}'' no \u00e9s v\u00e0lida."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "XSLTC no d\u00f3na suport a la funci\u00f3 externa ''{0}''."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "L'expressi\u00f3 d'igualtat cont\u00e9 un tipus d'argument desconegut."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "La crida a ''{1}'' cont\u00e9 un tipus d''argument ''{0}'' no v\u00e0lid."},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "S''ha intentat donar format al n\u00famero ''{0}'' mitjan\u00e7ant el patr\u00f3 ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "No es pot clonar l''iterador ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "L''iterador de l''eix ''{0}'' no t\u00e9 suport."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "L''iterador de l''eix escrit ''{0}'' no t\u00e9 suport."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "L''atribut ''{0}'' es troba fora de l''element."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "La declaraci\u00f3 d''espai de noms ''{0}''=''{1}'' es troba fora de l''element."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "L''espai de noms del prefix ''{0}'' no s''ha declarat."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter s'ha creat mitjan\u00e7ant un tipus incorrecte de DOM d'origen."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "L'analitzador SAX que feu servir no gestiona esdeveniments de declaraci\u00f3 de DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "L'analitzador SAX que feu servir no d\u00f3na suport a espais de noms XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "No s''ha pogut resoldre la refer\u00e8ncia d''URI ''{0}''."}
- };
-
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_cs.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_cs.java
deleted file mode 100644
index 88409e1..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_cs.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: ErrorMessages_cs.java,v 1.1.6.1 2005/09/06 10:45:37 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_cs extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Vnit\u0159n\u00ed b\u011bhov\u00e1 chyba v ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Vnit\u0159n\u00ed b\u011bhov\u00e1 chyba p\u0159i prov\u00e1d\u011bn\u00ed funkce <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Neplatn\u00e1 konverze z ''{0}'' do ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Extern\u00ed funkce ''{0}'' nen\u00ed podporov\u00e1na produktem SLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Nezn\u00e1m\u00fd typ argumentu ve v\u00fdrazu rovnosti."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Neplatn\u00fd typ argumentu ''{0}'' p\u0159i vol\u00e1n\u00ed ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Pokus form\u00e1tovat \u010d\u00edslo ''{0}'' pou\u017eit\u00edm vzorku ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Nelze klonovat iter\u00e1tor ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iter\u00e1tor pro osu ''{0}'' nen\u00ed podporov\u00e1n."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iter\u00e1tor pro typizovanou osu ''{0}'' nen\u00ed podporov\u00e1n."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Atribut ''{0}'' je vn\u011b prvku."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Deklarace oboru n\u00e1zv\u016f ''{0}''=''{1}'' je vn\u011b prvku."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "Obor n\u00e1zv\u016f pro p\u0159edponu ''{0}'' nebyl deklarov\u00e1n."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter byl vytvo\u0159en s pou\u017eit\u00edm chybn\u00e9ho typu zdroje DOM."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "Pou\u017eit\u00fd analyz\u00e1tor SAX nem\u016f\u017ee manipulovat s deklara\u010dn\u00edmi ud\u00e1lostmi DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "Pou\u017eit\u00fd analyz\u00e1tor SAX nem\u016f\u017ee podporovat obory n\u00e1zv\u016f pro XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "Nelze p\u0159elo\u017eit odkazy URI ''{0}''."}
- };
-
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_de.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_de.java
deleted file mode 100644
index b86e7de..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_de.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_de extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Interner Laufzeitfehler in \"{0}\""},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Laufzeitfehler beim Ausf\u00FChren von <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Ung\u00FCltige Konvertierung von \"{0}\" in \"{1}\"."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Externe Funktion \"{0}\" nicht unterst\u00FCtzt von XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Unbekannter Argumenttyp in Gleichheitsausdruck."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Ung\u00FCltiger Argumenttyp \"{0}\" in Aufruf von \"{1}\""},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Versuch, Zahl \"{0}\" mit Muster \"{1}\" zu formatieren."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Iterator \"{0}\" kann nicht geclont werden."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iterator f\u00FCr Achse \"{0}\" nicht unterst\u00FCtzt."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iterator f\u00FCr typisierte Achse \"{0}\" nicht unterst\u00FCtzt."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Attribut \"{0}\" au\u00DFerhalb des Elements."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Namespace-Deklaration {0}={1} au\u00DFerhalb des Elements."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "Namespace f\u00FCr Pr\u00E4fix \"{0}\" wurde nicht deklariert."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter mit falschem Typ von Quell-DOM erstellt."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "Der verwendete SAX-Parser verarbeitet keine DTD-Deklarationsereignisse."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "Der verwendete SAX-Parser unterst\u00FCtzt keine XML-Namespaces."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "URI-Referenz \"{0}\" konnte nicht aufgel\u00F6st werden."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "Nicht unterst\u00FCtztes XSL-Element \"{0}\""},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "Unbekannte XSLTC-Erweiterung \"{0}\""},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "Das angegebene Translet \"{0}\" wurde mit einer neueren Version von XSLTC als die verwendete Version der XSLTC-Laufzeit erstellt. Sie m\u00FCssen das Stylesheet neu kompilieren oder eine aktuellere Version von XSLTC verwenden, um dieses Translet auszuf\u00FChren."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "Ein Attribut, dessen Wert ein QName sein muss, hatte den Wert \"{0}\""},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "Ein Attribut, dessen Wert ein NCName sein muss, hatte den Wert \"{0}\""},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "Verwendung der Erweiterungsfunktion \"{0}\" ist nicht zul\u00E4ssig, wenn das Feature f\u00FCr die sichere Verarbeitung auf \"true\" gesetzt ist."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "Verwendung des Erweiterungselements \"{0}\" ist nicht zul\u00E4ssig, wenn das Feature f\u00FCr die sichere Verarbeitung auf \"true\" gesetzt ist."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_es.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_es.java
deleted file mode 100644
index 350d75f..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_es.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_es extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Error interno de tiempo de ejecuci\u00F3n en ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Error de tiempo de ejecuci\u00F3n al ejecutar <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Conversi\u00F3n no v\u00E1lida de ''{0}'' a ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Funci\u00F3n externa ''{0}'' no soportada por XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Tipo de argumento desconocido en la expresi\u00F3n de igualdad."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Tipo de argumento ''{0}'' no v\u00E1lido en la llamada a ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Intentando formatear n\u00FAmero ''{0}'' mediante el patr\u00F3n ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "No se puede clonar el iterador ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "El iterador para el eje ''{0}'' no est\u00E1 soportado."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "El iterador para el eje introducido ''{0}'' no est\u00E1 soportado."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "El atributo ''{0}'' est\u00E1 fuera del elemento."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Declaraci\u00F3n del espacio de nombres ''{0}''=''{1}'' fuera del elemento."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "No se ha declarado el espacio de nombres para el prefijo ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "Se ha creado DOMAdapter mediante un tipo incorrecto de DOM de origen."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "El analizador SAX que est\u00E1 utilizando no maneja los eventos de declaraci\u00F3n DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "El analizador SAX que est\u00E1 utilizando no soporta los espacios de nombres XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "No se ha podido resolver la referencia al URI ''{0}''."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "Elemento ''{0}'' de XSL no soportado"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "Extensi\u00F3n ''{0}'' de XSLTC no reconocida"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "El translet especificado, ''{0}'' se ha creado con una versi\u00F3n de XSLTC m\u00E1s reciente que la versi\u00F3n del tiempo de ejecuci\u00F3n de XSLTC que se est\u00E1 utilizando. Debe volver a compilar la hoja de estilo o utilizar una versi\u00F3n m\u00E1s reciente de XSLTC para ejecutar este translet."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "Un atributo cuyo valor debe ser un QName ten\u00EDa el valor ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "Un atributo cuyo valor debe ser un NCName ten\u00EDa el valor ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "El uso de la funci\u00F3n de extensi\u00F3n ''{0}'' no est\u00E1 permitido cuando la funci\u00F3n de procesamiento seguro se ha definido en true."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "El uso del elemento de extensi\u00F3n ''{0}'' no est\u00E1 permitido cuando la funci\u00F3n de procesamiento seguro se ha definido en true."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_fr.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_fr.java
deleted file mode 100644
index f60f2a5..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_fr.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_fr extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Erreur interne d''ex\u00E9cution dans ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Erreur d'ex\u00E9cution de <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Conversion de ''{0}'' \u00E0 ''{1}'' non valide."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Fonction externe ''{0}'' non prise en charge par XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Type d'argument inconnu dans l'expression d'\u00E9galit\u00E9."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Type d''argument ''{0}'' non valide dans l''appel de ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Tentative de formatage du nombre ''{0}'' \u00E0 l''aide du mod\u00E8le ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Impossible de cloner l''it\u00E9rateur ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "It\u00E9rateur de l''axe ''{0}'' non pris en charge."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "It\u00E9rateur de l''axe saisi ''{0}'' non pris en charge."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Attribut ''{0}'' en dehors de l''\u00E9l\u00E9ment."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "La d\u00E9claration d''espace de noms ''{0}''=''{1}'' est \u00E0 l''ext\u00E9rieur de l''\u00E9l\u00E9ment."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "L''espace de noms du pr\u00E9fixe ''{0}'' n''a pas \u00E9t\u00E9 d\u00E9clar\u00E9."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter cr\u00E9\u00E9 avec le mauvais type de DOM source."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "L'analyseur SAX que vous utilisez ne g\u00E8re pas les \u00E9v\u00E9nements de d\u00E9claration DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "L'analyseur SAX que vous utilisez ne prend pas en charge les espaces de noms XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "Impossible de r\u00E9soudre la r\u00E9f\u00E9rence d''URI ''{0}''."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "El\u00E9ment XSL ''{0}'' non pris en charge"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "Extension XSLTC ''{0}'' non reconnue"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "Le translet sp\u00E9cifi\u00E9, ''{0}'', a \u00E9t\u00E9 cr\u00E9\u00E9 \u00E0 l''aide d''une version de XSLTC plus r\u00E9cente que la version de l''ex\u00E9cution XSLTC utilis\u00E9e. Vous devez recompiler la feuille de style ou utiliser une version plus r\u00E9cente de XSLTC pour ex\u00E9cuter ce translet."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "Un attribut dont la valeur doit \u00EAtre un QName avait la valeur ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "Un attribut dont la valeur doit \u00EAtre un NCName avait la valeur ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "L''utilisation de la fonction d''extension ''{0}'' n''est pas autoris\u00E9e lorsque la fonctionnalit\u00E9 de traitement s\u00E9curis\u00E9 est d\u00E9finie sur True."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "L''utilisation de l''\u00E9l\u00E9ment d''extension ''{0}'' n''est pas autoris\u00E9e lorsque la fonctionnalit\u00E9 de traitement s\u00E9curis\u00E9 est d\u00E9finie sur True."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_it.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_it.java
deleted file mode 100644
index e4a7b2d..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_it.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_it extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Errore interno in fase di esecuzione in ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Errore in fase di esecuzione durante l'esecuzione di <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Conversione non valida da ''{0}'' a ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Funzione esterna ''{0}'' non supportata da XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Tipo di argomento sconosciuto nell'espressione di uguaglianza."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Tipo di argomento ''{0}'' non valido nella chiamata a ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Tentativo di formattare il numero ''{0}'' mediante il pattern ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Impossibile duplicare l''iteratore ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iteratore per l''asse ''{0}'' non supportato."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iteratore per l''asse immesso ''{0}'' non supportato."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Attributo ''{0}'' al di fuori dell''elemento."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Dichiarazione dello spazio di nomi ''{0}''=''{1}'' al di fuori dell''elemento."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "Lo spazio di nomi per il prefisso ''{0}'' non \u00E8 stato dichiarato."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter creato utilizzando il tipo errato di DOM di origine."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "Il parser SAX in uso non gestisce gli eventi di dichiarazione DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "Il parser SAX in uso non supporta gli spazi di nomi XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "Impossibile risolvere il riferimento URI ''{0}''."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "Elemento XSL \"{0}\" non supportato"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "Estensione XSLTC ''{0}'' non riconosciuta"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "Il translet specificato ''{0}'' \u00E8 stato creato utilizzando una versione di XSLTC pi\u00F9 recente di quella della fase di esecuzione XSLTC in uso. Ricompilare il foglio di stile o utilizzare una versione pi\u00F9 recente di XSLTC per eseguire questo translet."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "Un attributo il cui valore deve essere un QName contiene il valore ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "Un attributo il cui valore deve essere un NCName contiene il valore ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "Non \u00E8 consentito utilizzare la funzione di estensione ''{0}'' se la funzione di elaborazione sicura \u00E8 impostata su true."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "Non \u00E8 consentito utilizzare l''elemento di estensione ''{0}'' se la funzione di elaborazione sicura \u00E8 impostata su true."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ja.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ja.java
deleted file mode 100644
index 3cd3712..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ja.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_ja extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "''{0}''\u5185\u306E\u30E9\u30F3\u30BF\u30A4\u30E0\u5185\u90E8\u30A8\u30E9\u30FC\u3067\u3059"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "<xsl:copy>\u306E\u5B9F\u884C\u4E2D\u306E\u30E9\u30F3\u30BF\u30A4\u30E0\u30FB\u30A8\u30E9\u30FC\u3067\u3059\u3002"},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "''{0}''\u304B\u3089''{1}''\u3078\u306E\u5909\u63DB\u304C\u7121\u52B9\u3067\u3059\u3002"},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "\u5916\u90E8\u95A2\u6570''{0}''\u306FXSLTC\u306B\u3088\u3063\u3066\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "\u7B49\u4FA1\u5F0F\u306B\u4E0D\u660E\u306A\u5F15\u6570\u30BF\u30A4\u30D7\u304C\u3042\u308A\u307E\u3059\u3002"},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "''{1}''\u306E\u547C\u51FA\u3057\u306E\u5F15\u6570\u30BF\u30A4\u30D7''{0}''\u304C\u7121\u52B9\u3067\u3059"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "\u30D1\u30BF\u30FC\u30F3''{1}''\u3092\u4F7F\u7528\u3057\u3066\u6570\u5024''{0}''\u3092\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u3057\u3088\u3046\u3068\u3057\u307E\u3057\u305F\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "\u30A4\u30C6\u30EC\u30FC\u30BF''{0}''\u306E\u30AF\u30ED\u30FC\u30F3\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "\u8EF8''{0}''\u306E\u30A4\u30C6\u30EC\u30FC\u30BF\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "\u578B\u6307\u5B9A\u3055\u308C\u305F\u8EF8''{0}''\u306E\u30A4\u30C6\u30EC\u30FC\u30BF\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "\u5C5E\u6027''{0}''\u304C\u8981\u7D20\u306E\u5916\u5074\u306B\u3042\u308A\u307E\u3059\u3002"},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "\u30CD\u30FC\u30E0\u30B9\u30DA\u30FC\u30B9\u5BA3\u8A00''{0}''=''{1}''\u304C\u8981\u7D20\u306E\u5916\u5074\u306B\u3042\u308A\u307E\u3059\u3002"},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "\u63A5\u982D\u8F9E''{0}''\u306E\u30CD\u30FC\u30E0\u30B9\u30DA\u30FC\u30B9\u304C\u5BA3\u8A00\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter\u304C\u9593\u9055\u3063\u305F\u30BF\u30A4\u30D7\u306E\u30BD\u30FC\u30B9DOM\u3092\u4F7F\u7528\u3057\u3066\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002"},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "\u4F7F\u7528\u4E2D\u306ESAX\u30D1\u30FC\u30B5\u30FC\u306FDTD\u5BA3\u8A00\u30A4\u30D9\u30F3\u30C8\u3092\u51E6\u7406\u3057\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "\u4F7F\u7528\u4E2D\u306ESAX\u30D1\u30FC\u30B5\u30FC\u306B\u306FXML\u30CD\u30FC\u30E0\u30B9\u30DA\u30FC\u30B9\u306E\u30B5\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002"},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "URI\u53C2\u7167''{0}''\u3092\u89E3\u6C7A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002"},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044XSL\u8981\u7D20''{0}''"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "\u8A8D\u8B58\u3055\u308C\u306A\u3044XSLTC\u62E1\u5F35''{0}''"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "\u6307\u5B9A\u3055\u308C\u305Ftranslet\u306E''{0}''\u306F\u3001\u4F7F\u7528\u4E2D\u306EXSLTC\u30E9\u30F3\u30BF\u30A4\u30E0\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3088\u308A\u3082\u65B0\u3057\u3044XSLTC\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\u3067\u3059\u3002\u3053\u306Etranslet\u3092\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30B9\u30BF\u30A4\u30EB\u30B7\u30FC\u30C8\u3092\u518D\u30B3\u30F3\u30D1\u30A4\u30EB\u3059\u308B\u304B\u3001\u3088\u308A\u65B0\u3057\u3044\u30D0\u30FC\u30B8\u30E7\u30F3\u306EXSLTC\u3092\u4F7F\u7528\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002"},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "\u5024\u304CQName\u3067\u3042\u308B\u3053\u3068\u304C\u5FC5\u8981\u306A\u5C5E\u6027\u306E\u5024\u304C''{0}''\u3067\u3057\u305F"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "\u5024\u304CNCName\u3067\u3042\u308B\u3053\u3068\u304C\u5FC5\u8981\u306A\u5C5E\u6027\u306E\u5024\u304C''{0}''\u3067\u3057\u305F"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "\u30BB\u30AD\u30E5\u30A2\u51E6\u7406\u6A5F\u80FD\u304Ctrue\u306B\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u3068\u304D\u3001\u62E1\u5F35\u95A2\u6570''{0}''\u306E\u4F7F\u7528\u306F\u8A31\u53EF\u3055\u308C\u307E\u305B\u3093\u3002"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "\u30BB\u30AD\u30E5\u30A2\u51E6\u7406\u6A5F\u80FD\u304Ctrue\u306B\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u3068\u304D\u3001\u62E1\u5F35\u8981\u7D20''{0}''\u306E\u4F7F\u7528\u306F\u8A31\u53EF\u3055\u308C\u307E\u305B\u3093\u3002"},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ko.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ko.java
deleted file mode 100644
index e24a7c1..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ko.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_ko extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "''{0}''\uC5D0 \uB7F0\uD0C0\uC784 \uB0B4\uBD80 \uC624\uB958\uAC00 \uC788\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "<xsl:copy>\uB97C \uC2E4\uD589\uD558\uB294 \uC911 \uB7F0\uD0C0\uC784 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "''{0}''\uC5D0\uC11C ''{1}''(\uC73C)\uB85C\uC758 \uBCC0\uD658\uC774 \uBD80\uC801\uD569\uD569\uB2C8\uB2E4."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "XSLTC\uB294 \uC678\uBD80 \uD568\uC218 ''{0}''\uC744(\uB97C) \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "\uB3D9\uB4F1\uC131 \uD45C\uD604\uC2DD\uC5D0 \uC54C \uC218 \uC5C6\uB294 \uC778\uC218 \uC720\uD615\uC774 \uC788\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "''{1}''\uC5D0 \uB300\uD55C \uD638\uCD9C\uC5D0 \uBD80\uC801\uD569\uD55C \uC778\uC218 \uC720\uD615 ''{0}''\uC774(\uAC00) \uC788\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "''{1}'' \uD328\uD134\uC744 \uC0AC\uC6A9\uD558\uC5EC ''{0}'' \uC22B\uC790\uC758 \uD615\uC2DD\uC744 \uC9C0\uC815\uD558\uB824\uACE0 \uC2DC\uB3C4\uD558\uB294 \uC911\uC785\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "''{0}'' \uC774\uD130\uB808\uC774\uD130\uB97C \uBCF5\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "''{0}'' \uCD95\uC5D0 \uB300\uD55C \uC774\uD130\uB808\uC774\uD130\uB294 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "\uC785\uB825\uB41C \uCD95 ''{0}''\uC5D0 \uB300\uD55C \uC774\uD130\uB808\uC774\uD130\uB294 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "''{0}'' \uC18D\uC131\uC774 \uC694\uC18C\uC5D0 \uD3EC\uD568\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "\uB124\uC784\uC2A4\uD398\uC774\uC2A4 \uC120\uC5B8 ''{0}''=''{1}''\uC774(\uAC00) \uC694\uC18C\uC5D0 \uD3EC\uD568\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "''{0}'' \uC811\uB450\uC5B4\uC5D0 \uB300\uD55C \uB124\uC784\uC2A4\uD398\uC774\uC2A4\uAC00 \uC120\uC5B8\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "\uC18C\uC2A4 DOM\uC758 \uC798\uBABB\uB41C \uC720\uD615\uC744 \uC0AC\uC6A9\uD558\uC5EC DOMAdapter\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "\uC0AC\uC6A9 \uC911\uC778 SAX \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 DTD \uC120\uC5B8 \uC774\uBCA4\uD2B8\uB97C \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "\uC0AC\uC6A9 \uC911\uC778 SAX \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 XML \uB124\uC784\uC2A4\uD398\uC774\uC2A4\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "URI \uCC38\uC870 ''{0}''\uC744(\uB97C) \uBD84\uC11D\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "''{0}''\uC740(\uB294) \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 XSL \uC694\uC18C\uC785\uB2C8\uB2E4."},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "''{0}''\uC740(\uB294) \uC54C \uC218 \uC5C6\uB294 XSLTC \uD655\uC7A5\uC785\uB2C8\uB2E4."},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "\uC9C0\uC815\uB41C translet ''{0}''\uC774(\uAC00) \uC0AC\uC6A9 \uC911\uC778 XSLTC \uB7F0\uD0C0\uC784 \uBC84\uC804\uBCF4\uB2E4 \uCD5C\uC2E0\uC758 XSLTC \uBC84\uC804\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC774 translet\uC744 \uC2E4\uD589\uD558\uB824\uBA74 \uC2A4\uD0C0\uC77C\uC2DC\uD2B8\uB97C \uC7AC\uCEF4\uD30C\uC77C\uD558\uAC70\uB098 \uCD5C\uC2E0 XSLTC \uBC84\uC804\uC744 \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "\uAC12\uC774 QName\uC774\uC5B4\uC57C \uD558\uB294 \uC18D\uC131\uC758 \uAC12\uC774 ''{0}''\uC785\uB2C8\uB2E4."},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "\uAC12\uC774 NCName\uC774\uC5B4\uC57C \uD558\uB294 \uC18D\uC131\uC758 \uAC12\uC774 ''{0}''\uC785\uB2C8\uB2E4."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "\uBCF4\uC548 \uCC98\uB9AC \uAE30\uB2A5\uC774 true\uB85C \uC124\uC815\uB41C \uACBD\uC6B0 \uD655\uC7A5 \uD568\uC218 ''{0}''\uC744(\uB97C) \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "\uBCF4\uC548 \uCC98\uB9AC \uAE30\uB2A5\uC774 true\uB85C \uC124\uC815\uB41C \uACBD\uC6B0 \uD655\uC7A5 \uC694\uC18C ''{0}''\uC744(\uB97C) \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_pt_BR.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_pt_BR.java
deleted file mode 100644
index 45e2654..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_pt_BR.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_pt_BR extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Erro interno de runtime em ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Erro de runtime ao executar <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Convers\u00E3o inv\u00E1lida de ''{0}'' para ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Fun\u00E7\u00E3o externa ''{0}'' n\u00E3o suportada por XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Tipo de argumento desconhecido na express\u00E3o de igualdade."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Tipo de argumento inv\u00E1lido ''{0}'' na chamada para ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Tentativa de formatar o n\u00FAmero ''{0}'' usando o padr\u00E3o ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "N\u00E3o \u00E9 poss\u00EDvel clonar o iterador ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iterador do eixo ''{0}'' n\u00E3o suportado."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iterador do eixo digitado ''{0}'' n\u00E3o suportado."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Atributo ''{0}'' fora do elemento."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Declara\u00E7\u00E3o de namespace ''{0}''=''{1}'' fora do elemento."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "O namespace do prefixo ''{0}'' n\u00E3o foi declarado."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter criado usando o tipo incorreto de DOM de origem."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "O parser SAX que voc\u00EA est\u00E1 usando n\u00E3o trata eventos de declara\u00E7\u00E3o de DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "O parser SAX que voc\u00EA est\u00E1 usando n\u00E3o tem suporte para os Namespaces de XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "N\u00E3o foi poss\u00EDvel resolver a refer\u00EAncia do URI ''{0}''."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "Elemento XSL ''{0}'' n\u00E3o suportado"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "Extens\u00E3o ''{0}'' de XSLTC n\u00E3o reconhecida"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "O translet especificado, ''{0}'', foi criado usando uma vers\u00E3o do XSLTC mais recente que a vers\u00E3o de runtime de XSLTC em uso. Recompile a folha de estilos ou use uma vers\u00E3o mais recente de XSLTC para executar este translet."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "Um atributo cujo valor deve ser um QName tinha o valor ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "Um atributo cujo valor deve ser um NCName tinha o valor ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "O uso da fun\u00E7\u00E3o da extens\u00E3o ''{0}'' n\u00E3o ser\u00E1 permitido quando o recurso de processamento seguro for definido como verdadeiro."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "O uso do elemento da extens\u00E3o ''{0}'' n\u00E3o ser\u00E1 permitido quando o recurso de processamento seguro for definido como verdadeiro."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sk.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sk.java
deleted file mode 100644
index 6ee58b7..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sk.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: ErrorMessages_sk.java,v 1.1.6.1 2005/09/06 10:45:39 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_sk extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Intern\u00e1 chyba \u010dasu spustenia v ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Chyba \u010dasu spustenia pri sp\u00fa\u0161\u0165an\u00ed <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Neplatn\u00e1 konverzia z ''{0}'' na ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "XSLTC nepodporuje extern\u00fa funkciu ''{0}''."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Nezn\u00e1my typ argumentu je v\u00fdrazom rovnosti."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Neplatn\u00fd typ argumentu ''{0}'' vo volan\u00ed do ''{1}''"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "Pokus o form\u00e1tovanie \u010d\u00edsla ''{0}'' pomocou vzoru ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Nie je mo\u017en\u00e9 klonova\u0165 iter\u00e1tor ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iter\u00e1tor pre os ''{0}'' nie je podporovan\u00fd."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iter\u00e1tor pre nap\u00edsan\u00fa os ''{0}'' nie je podporovan\u00fd."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Atrib\u00fat ''{0}'' je mimo elementu."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Deklar\u00e1cia n\u00e1zvov\u00e9ho priestoru ''{0}''=''{1}'' je mimo elementu."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "N\u00e1zvov\u00fd priestor pre predponu ''{0}'' nebol deklarovan\u00fd."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter bol vytvoren\u00fd pomocou nespr\u00e1vneho typu zdrojov\u00e9ho DOM."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "Analyz\u00e1tor SAX, ktor\u00fd pou\u017e\u00edvate, nesprac\u00fava udalosti deklar\u00e1cie DTD."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "Analyz\u00e1tor SAX, ktor\u00fd pou\u017e\u00edvate, nem\u00e1 podporu pre n\u00e1zvov\u00e9 priestory XML."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "Nebolo mo\u017en\u00e9 rozl\u00ed\u0161i\u0165 referenciu URI ''{0}''."}
- };
-
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sv.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sv.java
deleted file mode 100644
index 2c2b40e..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sv.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_sv extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "Internt exekveringsfel i ''{0}''"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "Exekveringsexekveringsfel av <xsl:copy>."},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "Ogiltig konvertering fr\u00E5n ''{0}'' till ''{1}''."},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "Den externa funktionen ''{0}'' underst\u00F6ds inte i XSLTC."},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "Ok\u00E4nd argumenttyp i likhetsuttryck."},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "Argumenttyp ''{0}'' i anrop till ''{1}'' \u00E4r inte giltig"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "F\u00F6rs\u00F6ker formatera talet ''{0}'' med m\u00F6nstret ''{1}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "Kan inte klona iteratorn ''{0}''."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "Iteratorn f\u00F6r axeln ''{0}'' underst\u00F6ds inte."},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "Iteratorn f\u00F6r den typade axeln ''{0}'' underst\u00F6ds inte."},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "Attributet ''{0}'' finns utanf\u00F6r elementet."},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "Namnrymdsdeklarationen ''{0}''=''{1}'' finns utanf\u00F6r element."},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "Namnrymd f\u00F6r prefix ''{0}'' har inte deklarerats."},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "DOMAdapter har skapats med fel typ av DOM-k\u00E4lla."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "Den SAX-parser som du anv\u00E4nder hanterar inga DTD-deklarationsh\u00E4ndelser."},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "Den SAX-parser som du anv\u00E4nder saknar st\u00F6d f\u00F6r XML-namnrymder."},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "Kunde inte matcha URI-referensen ''{0}''."},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "XSL-elementet ''{0}'' st\u00F6ds inte"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "XSLTC-till\u00E4gget ''{0}'' \u00E4r ok\u00E4nt"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "Angiven translet, ''{0}'', har skapats med en XSLTC-version som \u00E4r senare \u00E4n den XSLTC-k\u00F6rning i bruk. F\u00F6r att kunna k\u00F6ra denna translet m\u00E5ste du omkompilera formatmallen eller anv\u00E4nda en senare version av XSLTC."},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "Ett attribut vars v\u00E4rde m\u00E5ste vara ett QName hade v\u00E4rdet ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "Ett attribut vars v\u00E4rde m\u00E5ste vara ett NCName hade v\u00E4rdet ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "Anv\u00E4ndning av till\u00E4ggsfunktionen ''{0}'' \u00E4r inte till\u00E5tet n\u00E4r s\u00E4ker bearbetning till\u00E4mpas."},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "Anv\u00E4ndning av till\u00E4ggselementet ''{0}'' \u00E4r inte till\u00E5tet n\u00E4r s\u00E4ker bearbetning till\u00E4mpas."},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_CN.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_CN.java
deleted file mode 100644
index a34d42c..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_CN.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_zh_CN extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "''{0}'' \u4E2D\u7684\u8FD0\u884C\u65F6\u5185\u90E8\u9519\u8BEF"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "\u6267\u884C <xsl:copy> \u65F6\u51FA\u73B0\u8FD0\u884C\u65F6\u9519\u8BEF\u3002"},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "\u4ECE ''{0}'' \u5230 ''{1}'' \u7684\u8F6C\u6362\u65E0\u6548\u3002"},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "XSLTC \u4E0D\u652F\u6301\u5916\u90E8\u51FD\u6570 ''{0}''\u3002"},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "\u7B49\u5F0F\u8868\u8FBE\u5F0F\u4E2D\u7684\u53C2\u6570\u7C7B\u578B\u672A\u77E5\u3002"},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "\u8C03\u7528 ''{1}'' \u65F6\u7684\u53C2\u6570\u7C7B\u578B ''{0}'' \u65E0\u6548"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "\u5C1D\u8BD5\u4F7F\u7528\u6A21\u5F0F ''{1}'' \u8BBE\u7F6E\u6570\u5B57 ''{0}'' \u7684\u683C\u5F0F\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "\u65E0\u6CD5\u514B\u9686\u8FED\u4EE3\u5668 ''{0}''\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "\u4E0D\u652F\u6301\u8F74 ''{0}'' \u7684\u8FED\u4EE3\u5668\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "\u4E0D\u652F\u6301\u7C7B\u578B\u5316\u8F74 ''{0}'' \u7684\u8FED\u4EE3\u5668\u3002"},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "\u5C5E\u6027 ''{0}'' \u5728\u5143\u7D20\u5916\u90E8\u3002"},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "\u540D\u79F0\u7A7A\u95F4\u58F0\u660E ''{0}''=''{1}'' \u5728\u5143\u7D20\u5916\u90E8\u3002"},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "\u6CA1\u6709\u8BF4\u660E\u540D\u79F0\u7A7A\u95F4\u524D\u7F00 ''{0}''\u3002"},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "\u4F7F\u7528\u9519\u8BEF\u7C7B\u578B\u7684\u6E90 DOM \u521B\u5EFA\u4E86 DOMAdapter\u3002"},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "\u4F7F\u7528\u7684 SAX \u89E3\u6790\u5668\u4E0D\u4F1A\u5904\u7406 DTD \u58F0\u660E\u4E8B\u4EF6\u3002"},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "\u4F7F\u7528\u7684 SAX \u89E3\u6790\u5668\u4E0D\u652F\u6301 XML \u540D\u79F0\u7A7A\u95F4\u3002"},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "\u65E0\u6CD5\u89E3\u6790 URI \u5F15\u7528 ''{0}''\u3002"},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "XSL \u5143\u7D20 ''{0}'' \u4E0D\u53D7\u652F\u6301"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "XSLTC \u6269\u5C55 ''{0}'' \u65E0\u6CD5\u8BC6\u522B"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "\u521B\u5EFA\u6307\u5B9A translet ''{0}'' \u65F6\u4F7F\u7528\u7684 XSLTC \u7684\u7248\u672C\u9AD8\u4E8E\u6B63\u5728\u4F7F\u7528\u7684 XSLTC \u8FD0\u884C\u65F6\u7684\u7248\u672C\u3002\u5FC5\u987B\u91CD\u65B0\u7F16\u8BD1\u6837\u5F0F\u8868\u6216\u4F7F\u7528\u8F83\u65B0\u7684 XSLTC \u7248\u672C\u8FD0\u884C\u6B64 translet\u3002"},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "\u5176\u503C\u5FC5\u987B\u4E3A QName \u7684\u5C5E\u6027\u5177\u6709\u503C ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "\u5176\u503C\u5FC5\u987B\u4E3A NCName \u7684\u5C5E\u6027\u5177\u6709\u503C ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "\u5F53\u5B89\u5168\u5904\u7406\u529F\u80FD\u8BBE\u7F6E\u4E3A\u201C\u771F\u201D\u65F6, \u4E0D\u5141\u8BB8\u4F7F\u7528\u6269\u5C55\u51FD\u6570 ''{0}''\u3002"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "\u5F53\u5B89\u5168\u5904\u7406\u529F\u80FD\u8BBE\u7F6E\u4E3A\u201C\u771F\u201D\u65F6, \u4E0D\u5141\u8BB8\u4F7F\u7528\u6269\u5C55\u5143\u7D20 ''{0}''\u3002"},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_TW.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_TW.java
deleted file mode 100644
index 67e3831..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_TW.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import java.util.ListResourceBundle;
-
-/**
- * @author Morten Jorgensen
- */
-public class ErrorMessages_zh_TW extends ListResourceBundle {
-
-/*
- * XSLTC run-time error messages.
- *
- * General notes to translators and definitions:
- *
- * 1) XSLTC is the name of the product. It is an acronym for XML Stylesheet:
- * Transformations Compiler
- *
- * 2) A stylesheet is a description of how to transform an input XML document
- * into a resultant output XML document (or HTML document or text)
- *
- * 3) An axis is a particular "dimension" in a tree representation of an XML
- * document; the nodes in the tree are divided along different axes.
- * Traversing the "child" axis, for instance, means that the program
- * would visit each child of a particular node; traversing the "descendant"
- * axis means that the program would visit the child nodes of a particular
- * node, their children, and so on until the leaf nodes of the tree are
- * reached.
- *
- * 4) An iterator is an object that traverses nodes in a tree along a
- * particular axis, one at a time.
- *
- * 5) An element is a mark-up tag in an XML document; an attribute is a
- * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
- * "elem" is an element name, "attr" and "attr2" are attribute names with
- * the values "val" and "val2", respectively.
- *
- * 6) A namespace declaration is a special attribute that is used to associate
- * a prefix with a URI (the namespace). The meanings of element names and
- * attribute names that use that prefix are defined with respect to that
- * namespace.
- *
- * 7) DOM is an acronym for Document Object Model. It is a tree
- * representation of an XML document.
- *
- * SAX is an acronym for the Simple API for XML processing. It is an API
- * used inform an XML processor (in this case XSLTC) of the structure and
- * content of an XML document.
- *
- * Input to the stylesheet processor can come from an XML parser in the
- * form of a DOM tree or through the SAX API.
- *
- * 8) DTD is a document type declaration. It is a way of specifying the
- * grammar for an XML file, the names and types of elements, attributes,
- * etc.
- *
- * 9) Translet is an invented term that refers to the class file that contains
- * the compiled form of a stylesheet.
- */
-
- // These message should be read from a locale-specific resource bundle
- /** Get the lookup table for error messages.
- *
- * @return The message lookup table.
- */
- public Object[][] getContents()
- {
- return new Object[][] {
-
- /*
- * Note to translators: the substitution text in the following message
- * is a class name. Used for internal errors in the processor.
- */
- {BasisLibrary.RUN_TIME_INTERNAL_ERR,
- "''{0}'' \u4E2D\u7684\u57F7\u884C\u968E\u6BB5\u5167\u90E8\u932F\u8AA4"},
-
- /*
- * Note to translators: <xsl:copy> is a keyword that should not be
- * translated.
- */
- {BasisLibrary.RUN_TIME_COPY_ERR,
- "\u57F7\u884C <xsl:copy> \u6642\u767C\u751F\u57F7\u884C\u968E\u6BB5\u932F\u8AA4"},
-
- /*
- * Note to translators: The substitution text refers to data types.
- * The message is displayed if a value in a particular context needs to
- * be converted to type {1}, but that's not possible for a value of type
- * {0}.
- */
- {BasisLibrary.DATA_CONVERSION_ERR,
- "\u5F9E ''{0}'' \u81F3 ''{1}'' \u7684\u8F49\u63DB\u7121\u6548\u3002"},
-
- /*
- * Note to translators: This message is displayed if the function named
- * by the substitution text is not a function that is supported. XSLTC
- * is the acronym naming the product.
- */
- {BasisLibrary.EXTERNAL_FUNC_ERR,
- "XSLTC \u4E0D\u652F\u63F4\u5916\u90E8\u51FD\u6578 ''{0}''\u3002"},
-
- /*
- * Note to translators: This message is displayed if two values are
- * compared for equality, but the data type of one of the values is
- * unknown.
- */
- {BasisLibrary.EQUALITY_EXPR_ERR,
- "\u76F8\u7B49\u6027\u8868\u793A\u5F0F\u4E2D\u7684\u5F15\u6578\u985E\u578B\u4E0D\u660E\u3002"},
-
- /*
- * Note to translators: The substitution text for {0} will be a data
- * type; the substitution text for {1} will be the name of a function.
- * This is displayed if an argument of the particular data type is not
- * permitted for a call to this function.
- */
- {BasisLibrary.INVALID_ARGUMENT_ERR,
- "\u547C\u53EB ''{1}'' \u4E2D\u7684\u5F15\u6578\u985E\u578B ''{0}'' \u7121\u6548"},
-
- /*
- * Note to translators: There is way of specifying a format for a
- * number using a pattern; the processor was unable to format the
- * particular value using the specified pattern.
- */
- {BasisLibrary.FORMAT_NUMBER_ERR,
- "\u5617\u8A66\u4F7F\u7528\u6A23\u5F0F ''{1}'' \u683C\u5F0F\u5316\u6578\u5B57 ''{0}''\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor was unable to create a copy of an
- * iterator. (See definition of iterator above.)
- */
- {BasisLibrary.ITERATOR_CLONE_ERR,
- "\u7121\u6CD5\u8907\u88FD\u91CD\u8907\u7A0B\u5F0F ''{0}''\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.AXIS_SUPPORT_ERR,
- "\u4E0D\u652F\u63F4\u8EF8 ''{0}'' \u7684\u91CD\u8907\u7A0B\u5F0F\u3002"},
-
- /*
- * Note to translators: The following represents an internal error
- * situation in XSLTC. The processor attempted to create an iterator
- * for a particular axis (see definition above) that it does not
- * support.
- */
- {BasisLibrary.TYPED_AXIS_SUPPORT_ERR,
- "\u4E0D\u652F\u63F4\u985E\u578B\u8EF8 ''{0}'' \u7684\u91CD\u8907\u7A0B\u5F0F\u3002"},
-
- /*
- * Note to translators: This message is reported if the stylesheet
- * being processed attempted to construct an XML document with an
- * attribute in a place other than on an element. The substitution text
- * specifies the name of the attribute.
- */
- {BasisLibrary.STRAY_ATTRIBUTE_ERR,
- "\u5C6C\u6027 ''{0}'' \u5728\u5143\u7D20\u4E4B\u5916\u3002"},
-
- /*
- * Note to translators: As with the preceding message, a namespace
- * declaration has the form of an attribute and is only permitted to
- * appear on an element. The substitution text {0} is the namespace
- * prefix and {1} is the URI that was being used in the erroneous
- * namespace declaration.
- */
- {BasisLibrary.STRAY_NAMESPACE_ERR,
- "\u547D\u540D\u7A7A\u9593\u5BA3\u544A ''{0}''=''{1}'' \u8D85\u51FA\u5143\u7D20\u5916\u3002"},
-
- /*
- * Note to translators: The stylesheet contained a reference to a
- * namespace prefix that was undefined. The value of the substitution
- * text is the name of the prefix.
- */
- {BasisLibrary.NAMESPACE_PREFIX_ERR,
- "\u5B57\u9996 ''{0}'' \u7684\u547D\u540D\u7A7A\u9593\u5C1A\u672A\u5BA3\u544A\u3002"},
-
- /*
- * Note to translators: The following represents an internal error.
- * DOMAdapter is a Java class in XSLTC.
- */
- {BasisLibrary.DOM_ADAPTER_INIT_ERR,
- "\u4F7F\u7528\u932F\u8AA4\u7684\u4F86\u6E90 DOM \u985E\u578B\u5EFA\u7ACB DOMAdapter\u3002"},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not describe to XSLTC the structure of the input XML document's
- * DTD.
- */
- {BasisLibrary.PARSER_DTD_SUPPORT_ERR,
- "\u60A8\u6B63\u5728\u4F7F\u7528\u7684 SAX \u5256\u6790\u5668\u4E0D\u6703\u8655\u7406 DTD \u5BA3\u544A\u4E8B\u4EF6\u3002"},
-
- /*
- * Note to translators: The following message indicates that the XML
- * parser that is providing input to XSLTC cannot be used because it
- * does not distinguish between ordinary XML attributes and namespace
- * declarations.
- */
- {BasisLibrary.NAMESPACES_SUPPORT_ERR,
- "\u60A8\u6B63\u5728\u4F7F\u7528\u7684 SAX \u5256\u6790\u5668\u4E0D\u652F\u63F4 XML \u547D\u540D\u7A7A\u9593\u3002"},
-
- /*
- * Note to translators: The substitution text is the URI that was in
- * error.
- */
- {BasisLibrary.CANT_RESOLVE_RELATIVE_URI_ERR,
- "\u7121\u6CD5\u89E3\u6790 URI \u53C3\u7167 ''{0}''\u3002"},
-
- /*
- * Note to translators: The stylesheet contained an element that was
- * not recognized as part of the XSL syntax. The substitution text
- * gives the element name.
- */
- {BasisLibrary.UNSUPPORTED_XSL_ERR,
- "\u4E0D\u652F\u63F4\u7684 XSL \u5143\u7D20 ''{0}''"},
-
- /*
- * Note to translators: The stylesheet referred to an extension to the
- * XSL syntax and indicated that it was defined by XSLTC, but XSLTC does
- * not recognize the particular extension named. The substitution text
- * gives the extension name.
- */
- {BasisLibrary.UNSUPPORTED_EXT_ERR,
- "\u7121\u6CD5\u8FA8\u8B58\u7684 XSLTC \u64F4\u5145\u5957\u4EF6 ''{0}''"},
-
-
- /*
- * Note to translators: This error message is produced if the translet
- * class was compiled using a newer version of XSLTC and deployed for
- * execution with an older version of XSLTC. The substitution text is
- * the name of the translet class.
- */
- {BasisLibrary.UNKNOWN_TRANSLET_VERSION_ERR,
- "\u5EFA\u7ACB\u6307\u5B9A translet ''{0}'' \u7684 XSLTC \u7248\u672C\u6BD4\u4F7F\u7528\u4E2D XSLTC \u57F7\u884C\u968E\u6BB5\u7684\u7248\u672C\u8F03\u65B0\u3002\u60A8\u5FC5\u9808\u91CD\u65B0\u7DE8\u8B6F\u6A23\u5F0F\u8868\uFF0C\u6216\u4F7F\u7528\u8F03\u65B0\u7684 XSLTC \u7248\u672C\u4F86\u57F7\u884C\u6B64 translet\u3002"},
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "QName" had a value that was incorrect.
- * 'QName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_QNAME_ERR,
- "\u503C\u5FC5\u9808\u70BA QName \u7684\u5C6C\u6027\uFF0C\u5177\u6709\u503C ''{0}''"},
-
-
- /*
- * Note to translators: An attribute whose effective value is required
- * to be a "NCName" had a value that was incorrect.
- * 'NCName' is an XML syntactic term that must not be translated. The
- * substitution text contains the actual value of the attribute.
- */
- {BasisLibrary.INVALID_NCNAME_ERR,
- "\u503C\u5FC5\u9808\u70BA NCName \u7684\u5C6C\u6027\uFF0C\u5177\u6709\u503C ''{0}''"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_FUNCTION_ERR,
- "\u7576\u5B89\u5168\u8655\u7406\u529F\u80FD\u8A2D\u70BA\u771F\u6642\uFF0C\u4E0D\u5141\u8A31\u4F7F\u7528\u64F4\u5145\u5957\u4EF6\u51FD\u6578 ''{0}''\u3002"},
-
- {BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
- "\u7576\u5B89\u5168\u8655\u7406\u529F\u80FD\u8A2D\u70BA\u771F\u6642\uFF0C\u4E0D\u5141\u8A31\u4F7F\u7528\u64F4\u5145\u5957\u4EF6\u5143\u7D20 ''{0}''\u3002"},
- };
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/InternalRuntimeError.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/InternalRuntimeError.java
deleted file mode 100644
index 1f11788..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/InternalRuntimeError.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * $Id: InternalRuntimeError.java,v 1.0 2009-11-25 04:34:28 joehw Exp $
- */
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-/**
- * Class to express failed assertions and similar for the xsltc runtime.
- * As java.lang.AssertionError was introduced in JDK 1.4 we can't use that yet.
- */
-public class InternalRuntimeError extends Error {
-
- public InternalRuntimeError(String message) {
- super(message);
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/MessageHandler.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/MessageHandler.java
deleted file mode 100644
index da227f5..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/MessageHandler.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: MessageHandler.java,v 1.2.4.1 2005/09/06 11:06:49 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-/**
- * @author Morten Jorgensen
- */
-public class MessageHandler {
- public void displayMessage(String msg) {
- System.err.println(msg);
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Node.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Node.java
deleted file mode 100644
index add4114..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Node.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: Node.java,v 1.2.4.1 2005/09/06 11:10:29 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-/**
- * This class is used as "wrapper" for dom nodes. Wrappers are needed when
- * a node is passed as a parameter to a template.
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- */
-public class Node {
- public int node;
- public int type;
-
- public Node(int n, int t) {
- node = n;
- type = t;
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Operators.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Operators.java
deleted file mode 100644
index da71f8c..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Operators.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: Operators.java,v 1.2.4.1 2005/09/12 12:02:15 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-/**
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- */
-public final class Operators {
- public static final int EQ = 0;
- public static final int NE = 1;
- public static final int GT = 2;
- public static final int LT = 3;
- public static final int GE = 4;
- public static final int LE = 5;
-
- private static final String[] names = {
- "=", "!=", ">", "<", ">=", "<="
- };
-
- public static final String getOpNames(int operator) {
- return names[operator];
- }
-
-// Swap operator array
- private static final int[] swapOpArray = {
- EQ, // EQ
- NE, // NE
- LT, // GT
- GT, // LT
- LE, // GE
- GE // LE
- };
-
- public static final int swapOp(int operator) {
- return swapOpArray[operator];
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Parameter.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Parameter.java
deleted file mode 100644
index e3b682d..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/Parameter.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: Parameter.java,v 1.2.4.1 2005/09/06 11:21:58 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-/**
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- * @author Morten Jorgensen
- */
-public class Parameter {
-
- public String _name;
- public Object _value;
- public boolean _isDefault;
-
- public Parameter(String name, Object value) {
- _name = name;
- _value = value;
- _isDefault = true;
- }
-
- public Parameter(String name, Object value, boolean isDefault) {
- _name = name;
- _value = value;
- _isDefault = isDefault;
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/StringValueHandler.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/StringValueHandler.java
deleted file mode 100644
index 8308352..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/StringValueHandler.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: StringValueHandler.java,v 1.2.4.1 2005/09/06 11:33:25 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime;
-
-import org.xml.sax.SAXException;
-
-import com.sun.org.apache.xml.internal.serializer.EmptySerializer;
-
-/**
- * @author Jacek Ambroziak
- * @author Santiago Pericas-Geertsen
- * @author Morten Jorgensen
- */
-public final class StringValueHandler extends EmptySerializer {
-
- private StringBuilder _buffer = new StringBuilder();
- private String _str = null;
- private static final String EMPTY_STR = "";
- private boolean m_escaping = false;
- private int _nestedLevel = 0;
-
- public void characters(char[] ch, int off, int len)
- throws SAXException
- {
- if (_nestedLevel > 0)
- return;
-
- if (_str != null) {
- _buffer.append(_str);
- _str = null;
- }
- _buffer.append(ch, off, len);
- }
-
- public String getValue() {
- if (_buffer.length() != 0) {
- String result = _buffer.toString();
- _buffer.setLength(0);
- return result;
- }
- else {
- String result = _str;
- _str = null;
- return (result != null) ? result : EMPTY_STR;
- }
- }
-
- public void characters(String characters) throws SAXException {
- if (_nestedLevel > 0)
- return;
-
- if (_str == null && _buffer.length() == 0) {
- _str = characters;
- }
- else {
- if (_str != null) {
- _buffer.append(_str);
- _str = null;
- }
-
- _buffer.append(characters);
- }
- }
-
- public void startElement(String qname) throws SAXException {
- _nestedLevel++;
- }
-
- public void endElement(String qname) throws SAXException {
- _nestedLevel--;
- }
-
- // Override the setEscaping method just to indicate that this class is
- // aware that that method might be called.
- public boolean setEscaping(boolean bool) {
- boolean oldEscaping = m_escaping;
- m_escaping = bool;
-
- return bool;
- }
-
- /**
- * The value of a PI must not contain the substring "?>". Should
- * that substring be present, replace it by "? >".
- */
- public String getValueOfPI() {
- final String value = getValue();
-
- if (value.indexOf("?>") > 0) {
- final int n = value.length();
- final StringBuilder valueOfPI = new StringBuilder();
-
- for (int i = 0; i < n;) {
- final char ch = value.charAt(i++);
- if (ch == '?' && value.charAt(i) == '>') {
- valueOfPI.append("? >"); i++;
- }
- else {
- valueOfPI.append(ch);
- }
- }
- return valueOfPI.toString();
- }
- return value;
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/OutputBuffer.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/OutputBuffer.java
deleted file mode 100644
index 01f1ca9..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/OutputBuffer.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: OutputBuffer.java,v 1.2.4.1 2005/09/06 11:35:23 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime.output;
-
-/**
- * @author Santiago Pericas-Geertsen
- */
-interface OutputBuffer {
-
- public String close();
- public OutputBuffer append(char ch);
- public OutputBuffer append(String s);
- public OutputBuffer append(char[] s, int from, int to);
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/StringOutputBuffer.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/StringOutputBuffer.java
deleted file mode 100644
index 2f9c43e..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/StringOutputBuffer.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: StringOutputBuffer.java,v 1.2.4.1 2005/09/06 11:36:16 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime.output;
-
-
-/**
- * @author Santiago Pericas-Geertsen
- */
-class StringOutputBuffer implements OutputBuffer {
- private StringBuffer _buffer;
-
- public StringOutputBuffer() {
- _buffer = new StringBuffer();
- }
-
- public String close() {
- return _buffer.toString();
- }
-
- public OutputBuffer append(String s) {
- _buffer.append(s);
- return this;
- }
-
- public OutputBuffer append(char[] s, int from, int to) {
- _buffer.append(s, from, to);
- return this;
- }
-
- public OutputBuffer append(char ch) {
- _buffer.append(ch);
- return this;
- }
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/TransletOutputHandlerFactory.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/TransletOutputHandlerFactory.java
deleted file mode 100644
index 8b76f3a..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/TransletOutputHandlerFactory.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: TransletOutputHandlerFactory.java,v 1.2.4.2 2005/09/15 19:12:05 jeffsuttor Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime.output;
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.Writer;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.stream.XMLEventWriter;
-import javax.xml.stream.util.XMLEventConsumer;
-import javax.xml.stream.XMLStreamWriter;
-
-import com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM;
-import com.sun.org.apache.xalan.internal.xsltc.trax.SAX2StAXEventWriter;
-import com.sun.org.apache.xalan.internal.xsltc.trax.SAX2StAXStreamWriter;
-
-import com.sun.org.apache.xml.internal.serializer.ToHTMLSAXHandler;
-import com.sun.org.apache.xml.internal.serializer.ToHTMLStream;
-import com.sun.org.apache.xml.internal.serializer.ToTextSAXHandler;
-import com.sun.org.apache.xml.internal.serializer.ToTextStream;
-import com.sun.org.apache.xml.internal.serializer.ToUnknownStream;
-import com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler;
-import com.sun.org.apache.xml.internal.serializer.ToXMLStream;
-import com.sun.org.apache.xml.internal.serializer.SerializationHandler;
-import org.w3c.dom.Node;
-
-import org.xml.sax.ContentHandler;
-import org.xml.sax.ext.LexicalHandler;
-
-/**
- * @author Santiago Pericas-Geertsen
- */
-public class TransletOutputHandlerFactory {
-
- public static final int STREAM = 0;
- public static final int SAX = 1;
- public static final int DOM = 2;
- public static final int STAX = 3;
-
- private String _encoding = "utf-8";
- private String _method = null;
- private int _outputType = STREAM;
- private OutputStream _ostream = System.out;
- private Writer _writer = null;
- private Node _node = null;
- private Node _nextSibling = null;
- private XMLEventWriter _xmlStAXEventWriter = null;
- private XMLStreamWriter _xmlStAXStreamWriter = null;
- private int _indentNumber = -1;
- private ContentHandler _handler = null;
- private LexicalHandler _lexHandler = null;
-
- private boolean _useServicesMechanism;
-
- static public TransletOutputHandlerFactory newInstance() {
- return new TransletOutputHandlerFactory(true);
- }
- static public TransletOutputHandlerFactory newInstance(boolean useServicesMechanism) {
- return new TransletOutputHandlerFactory(useServicesMechanism);
- }
-
- public TransletOutputHandlerFactory(boolean useServicesMechanism) {
- _useServicesMechanism = useServicesMechanism;
- }
- public void setOutputType(int outputType) {
- _outputType = outputType;
- }
-
- public void setEncoding(String encoding) {
- if (encoding != null) {
- _encoding = encoding;
- }
- }
-
- public void setOutputMethod(String method) {
- _method = method;
- }
-
- public void setOutputStream(OutputStream ostream) {
- _ostream = ostream;
- }
-
- public void setWriter(Writer writer) {
- _writer = writer;
- }
-
- public void setHandler(ContentHandler handler) {
- _handler = handler;
- }
-
- public void setLexicalHandler(LexicalHandler lex) {
- _lexHandler = lex;
- }
-
- public void setNode(Node node) {
- _node = node;
- }
-
- public Node getNode() {
- return (_handler instanceof SAX2DOM) ? ((SAX2DOM)_handler).getDOM()
- : null;
- }
-
- public void setNextSibling(Node nextSibling) {
- _nextSibling = nextSibling;
- }
-
- public XMLEventWriter getXMLEventWriter() {
- return (_handler instanceof SAX2StAXEventWriter) ? ((SAX2StAXEventWriter) _handler).getEventWriter() : null;
- }
-
- public void setXMLEventWriter(XMLEventWriter eventWriter) {
- _xmlStAXEventWriter = eventWriter;
- }
-
- public XMLStreamWriter getXMLStreamWriter() {
- return (_handler instanceof SAX2StAXStreamWriter) ? ((SAX2StAXStreamWriter) _handler).getStreamWriter() : null;
- }
-
- public void setXMLStreamWriter(XMLStreamWriter streamWriter) {
- _xmlStAXStreamWriter = streamWriter;
- }
-
- public void setIndentNumber(int value) {
- _indentNumber = value;
- }
-
- public SerializationHandler getSerializationHandler()
- throws IOException, ParserConfigurationException
- {
- SerializationHandler result = null;
- switch (_outputType)
- {
- case STREAM :
-
- if (_method == null)
- {
- result = new ToUnknownStream();
- }
- else if (_method.equalsIgnoreCase("xml"))
- {
-
- result = new ToXMLStream();
-
- }
- else if (_method.equalsIgnoreCase("html"))
- {
-
- result = new ToHTMLStream();
-
- }
- else if (_method.equalsIgnoreCase("text"))
- {
-
- result = new ToTextStream();
-
- }
-
- if (result != null && _indentNumber >= 0)
- {
- result.setIndentAmount(_indentNumber);
- }
-
- result.setEncoding(_encoding);
-
- if (_writer != null)
- {
- result.setWriter(_writer);
- }
- else
- {
- result.setOutputStream(_ostream);
- }
- return result;
-
- case DOM :
- _handler = (_node != null) ? new SAX2DOM(_node, _nextSibling, _useServicesMechanism) : new SAX2DOM(_useServicesMechanism);
- _lexHandler = (LexicalHandler) _handler;
- // falls through
- case STAX :
- if (_xmlStAXEventWriter != null) {
- _handler = new SAX2StAXEventWriter(_xmlStAXEventWriter);
- } else if (_xmlStAXStreamWriter != null) {
- _handler = new SAX2StAXStreamWriter(_xmlStAXStreamWriter);
- }
- _lexHandler = (LexicalHandler) _handler;
- // again falls through - Padmaja Vedula
- case SAX :
- if (_method == null)
- {
- _method = "xml"; // default case
- }
-
- if (_method.equalsIgnoreCase("xml"))
- {
-
- if (_lexHandler == null)
- {
- result = new ToXMLSAXHandler(_handler, _encoding);
- }
- else
- {
- result =
- new ToXMLSAXHandler(
- _handler,
- _lexHandler,
- _encoding);
- }
-
- }
- else if (_method.equalsIgnoreCase("html"))
- {
-
- if (_lexHandler == null)
- {
- result = new ToHTMLSAXHandler(_handler, _encoding);
- }
- else
- {
- result =
- new ToHTMLSAXHandler(
- _handler,
- _lexHandler,
- _encoding);
- }
-
- }
- else if (_method.equalsIgnoreCase("text"))
- {
-
- if (_lexHandler == null)
- {
- result = new ToTextSAXHandler(_handler, _encoding);
- }
- else
- {
- result =
- new ToTextSAXHandler(
- _handler,
- _lexHandler,
- _encoding);
- }
-
- }
- return result;
- }
- return null;
- }
-
-}
diff --git a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/WriterOutputBuffer.java b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/WriterOutputBuffer.java
deleted file mode 100644
index 2b04e01..0000000
--- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/WriterOutputBuffer.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
- */
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * $Id: WriterOutputBuffer.java,v 1.2.4.1 2005/09/06 11:43:01 pvedula Exp $
- */
-
-package com.sun.org.apache.xalan.internal.xsltc.runtime.output;
-
-import com.sun.org.apache.xalan.internal.utils.SecuritySupport;
-import java.io.BufferedWriter;
-import java.io.IOException;
-import java.io.Writer;
-
-/**
- * @author Santiago Pericas-Geertsen
- */
-class WriterOutputBuffer implements OutputBuffer {
- private static final int KB = 1024;
- private static int BUFFER_SIZE = 4 * KB;
-
- static {
- // Set a larger buffer size for Solaris
- final String osName = SecuritySupport.getSystemProperty("os.name");
- if (osName.equalsIgnoreCase("solaris")) {
- BUFFER_SIZE = 32 * KB;
- }
- }
-
- private Writer _writer;
-
- /**
- * Initializes a WriterOutputBuffer by creating an instance of a
- * BufferedWriter. The size of the buffer in this writer may have
- * a significant impact on throughput. Solaris prefers a larger
- * buffer, while Linux works better with a smaller one.
- */
- public WriterOutputBuffer(Writer writer) {
- _writer = new BufferedWriter(writer, BUFFER_SIZE);
- }
-
- public String close() {
- try {
- _writer.flush();
- }
- catch (IOException e) {
- throw new RuntimeException(e.toString());
- }
- return "";
- }
-
- public OutputBuffer append(String s) {
- try {
- _writer.write(s);
- }
- catch (IOException e) {
- throw new RuntimeException(e.toString());
- }
- return this;
- }
-
- public OutputBuffer append(char[] s, int from, int to) {
- try {
- _writer.write(s, from, to);
- }
- catch (IOException e) {
- throw new RuntimeException(e.toString());
- }
- return this;
- }
-
- public OutputBuffer append(char ch) {
- try {
- _writer.write(ch);
- }
- catch (IOException e) {
- throw new RuntimeException(e.toString());
- }
- return this;
- }
-}