mmidy 00/02/18 10:10:30
Modified: src/org/apache/xalan/xslt StylesheetHandler.java
Log:
Save and restore namespace declarations and namespace stack
Revision Changes Path
1.22 +7 -0
xml-xalan/src/org/apache/xalan/xslt/StylesheetHandler.java
Index: StylesheetHandler.java
===================================================================
RCS file:
/home/cvs/xml-xalan/src/org/apache/xalan/xslt/StylesheetHandler.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- StylesheetHandler.java 2000/02/17 13:06:26 1.21
+++ StylesheetHandler.java 2000/02/18 18:10:30 1.22
@@ -1324,7 +1324,12 @@
String saved_XSLNameSpaceURL = m_stylesheet.m_XSLNameSpaceURL;
boolean saved_foundNotImport = m_foundNotImport;
m_foundNotImport = false;
+ NameSpace saved_namespaceDecls = m_stylesheet.m_namespaceDecls;
+ m_stylesheet.m_namespaceDecls = null;
+ Stack saved_namespaces = m_stylesheet.m_namespaces;
+ m_stylesheet.m_namespaces = new Stack();
+
String href = atts.getValue(i);
URL hrefUrl
= m_processor.getURLFromString(href,
@@ -1357,6 +1362,8 @@
m_foundStylesheet = saved_foundStylesheet;
m_stylesheet.m_XSLNameSpaceURL = saved_XSLNameSpaceURL;
m_foundNotImport = saved_foundNotImport;
+ m_stylesheet.m_namespaceDecls = saved_namespaceDecls;
+ m_stylesheet.m_namespaces = saved_namespaces;
}
else if(!isAttrOK(aname, atts, i))
{