2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 * $Id: NamespaceAlias.java 468643 2006-10-28 06:56:03Z minchau $
21 package org.apache.xalan.templates;
24 * Object to hold an xsl:namespace element.
25 * A stylesheet can use the xsl:namespace-alias element to declare
26 * that one namespace URI is an alias for another namespace URI.
27 * @see <a href="http://www.w3.org/TR/xslt#literal-result-element">literal-result-element in XSLT Specification</a>
29 public class NamespaceAlias extends ElemTemplateElement
31 static final long serialVersionUID = 456173966637810718L;
34 * Constructor NamespaceAlias
36 * @param docOrderNumber The document order number
39 public NamespaceAlias(int docOrderNumber)
42 m_docOrderNumber = docOrderNumber;
46 * The "stylesheet-prefix" attribute.
49 private String m_StylesheetPrefix;
52 * Set the "stylesheet-prefix" attribute.
54 * @param v non-null prefix value.
56 public void setStylesheetPrefix(String v)
58 m_StylesheetPrefix = v;
62 * Get the "stylesheet-prefix" attribute.
64 * @return non-null prefix value.
66 public String getStylesheetPrefix()
68 return m_StylesheetPrefix;
72 * The namespace in the stylesheet space.
75 private String m_StylesheetNamespace;
78 * Set the value for the stylesheet namespace.
80 * @param v non-null prefix value.
82 public void setStylesheetNamespace(String v)
84 m_StylesheetNamespace = v;
88 * Get the value for the stylesheet namespace.
90 * @return non-null prefix value.
92 public String getStylesheetNamespace()
94 return m_StylesheetNamespace;
98 * The "result-prefix" attribute.
101 private String m_ResultPrefix;
104 * Set the "result-prefix" attribute.
106 * @param v non-null prefix value.
108 public void setResultPrefix(String v)
114 * Get the "result-prefix" attribute.
116 * @return non-null prefix value.
118 public String getResultPrefix()
120 return m_ResultPrefix;
124 * The result namespace.
127 private String m_ResultNamespace;
130 * Set the result namespace.
132 * @param v non-null namespace value
134 public void setResultNamespace(String v)
136 m_ResultNamespace = v;
140 * Get the result namespace value.
142 * @return non-null namespace value.
144 public String getResultNamespace()
146 return m_ResultNamespace;
150 * This function is called to recompose() all of the namespace alias properties elements.
152 * @param root The owning root stylesheet
154 public void recompose(StylesheetRoot root)
156 root.recomposeNamespaceAliases(this);