Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 78622 invoked by uid 500); 11 May 2000 03:27:49 -0000 Delivered-To: apmail-xml-cocoon-cvs@apache.org Received: (qmail 78619 invoked by uid 1037); 11 May 2000 03:27:48 -0000 Date: 11 May 2000 03:27:48 -0000 Message-ID: <20000511032748.78618.qmail@locus.apache.org> From: balld@locus.apache.org To: xml-cocoon-cvs@apache.org Subject: cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xinclude XIncludeProcessor.java balld 00/05/10 20:27:48 Modified: src/org/apache/cocoon/processor/xinclude XIncludeProcessor.java Log: changed xptr() to xpointer() Revision Changes Path 1.5 +3 -3 xml-cocoon/src/org/apache/cocoon/processor/xinclude/XIncludeProcessor.java Index: XIncludeProcessor.java =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xinclude/XIncludeProcessor.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- XIncludeProcessor.java 2000/05/09 19:36:55 1.4 +++ XIncludeProcessor.java 2000/05/11 03:27:48 1.5 @@ -44,7 +44,7 @@ * from my XInclude filter for cocoon2. * * @author Donald Ball - * @version CVS $Revision: 1.4 $ $Date: 2000/05/09 19:36:55 $ $Author: balld $ + * @version CVS $Revision: 1.5 $ $Date: 2000/05/11 03:27:48 $ $Author: balld $ */ public class XIncludeProcessor extends AbstractActor implements Processor, Status { @@ -270,8 +270,8 @@ try { included_document = parser.parse(input,false); } catch (Exception e) {} - if (suffix.startsWith("xptr(") && suffix.endsWith(")")) { - String xpath = suffix.substring(5,suffix.length()-1); + if (suffix.startsWith("xpointer(") && suffix.endsWith(")")) { + String xpath = suffix.substring(9,suffix.length()-1); if (debug) { System.err.println("XPath is "+xpath); } NodeList list = XPathAPI.selectNodeList(included_document,xpath); int length = list.getLength();