/* * 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.8 2004/02/16 22:55:54 minchau Exp $ */ package org.apache.xalan.xsltc.runtime; import org.apache.xml.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/"; }