001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 /* 019 * $Id: Constants.java 468652 2006-10-28 07:05:17Z minchau $ 020 */ 021 022 package org.apache.xalan.xsltc.runtime; 023 024 import org.apache.xml.dtm.DTM; 025 026 /** 027 * This class defines constants used by both the compiler and the 028 * runtime system. 029 * @author Jacek Ambroziak 030 * @author Santiago Pericas-Geertsen 031 */ 032 public interface Constants { 033 034 final static int ANY = -1; 035 final static int ATTRIBUTE = -2; 036 final static int ROOT = DTM.ROOT_NODE; 037 final static int TEXT = DTM.TEXT_NODE; 038 final static int ELEMENT = DTM.ELEMENT_NODE; 039 final static int COMMENT = DTM.COMMENT_NODE; 040 final static int PROCESSING_INSTRUCTION = DTM.PROCESSING_INSTRUCTION_NODE; 041 042 public static final String XSLT_URI = "http://www.w3.org/1999/XSL/Transform"; 043 public static final String NAMESPACE_FEATURE = 044 "http://xml.org/sax/features/namespaces"; 045 046 public static final String EMPTYSTRING = ""; 047 public static final String XML_PREFIX = "xml"; 048 public static final String XMLNS_PREFIX = "xmlns"; 049 public static final String XMLNS_STRING = "xmlns:"; 050 public static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/"; 051 }