mkwan 2002/10/04 08:52:17 Modified: java/src/org/apache/xalan/processor StylesheetHandler.java Log: For Bugzilla 13106. Visit the XPath expressions created for match patterns. Revision Changes Path 1.54 +4 -1 xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java Index: StylesheetHandler.java =================================================================== RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/StylesheetHandler.java,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- StylesheetHandler.java 8 Jul 2002 22:05:56 -0000 1.53 +++ StylesheetHandler.java 4 Oct 2002 15:52:17 -0000 1.54 @@ -216,7 +216,10 @@ throws javax.xml.transform.TransformerException { ErrorListener handler = m_stylesheetProcessor.getErrorListener(); - return new XPath(str, owningTemplate, this, XPath.MATCH, handler); + XPath xpath = new XPath(str, owningTemplate, this, XPath.MATCH, handler); + // Visit the expression, registering namespaces for any extension functions it includes. + xpath.callVisitors(xpath, new ExpressionVisitor(getStylesheetRoot())); + return xpath; } /**
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]