You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by ba...@locus.apache.org on 2000/05/11 05:28:30 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/filters XIncludeFilter.java

balld       00/05/10 20:28:29

  Modified:    src/org/apache/cocoon/filters Tag: xml-cocoon2
                        XIncludeFilter.java
  Log:
  changed xptr() to xpointer() and fixed a string length bug
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +3 -3      xml-cocoon/src/org/apache/cocoon/filters/Attic/XIncludeFilter.java
  
  Index: XIncludeFilter.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/filters/Attic/XIncludeFilter.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- XIncludeFilter.java	2000/04/17 00:14:39	1.1.2.4
  +++ XIncludeFilter.java	2000/05/11 03:28:28	1.1.2.5
  @@ -42,7 +42,7 @@
    * by the SAX event FSM yet.
    *
    * @author <a href="mailto:balld@webslingerZ.com">Donald Ball</a>
  - * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/04/17 00:14:39 $ $Author: balld $
  + * @version CVS $Revision: 1.1.2.5 $ $Date: 2000/05/11 03:28:28 $ $Author: balld $
    */
   public class XIncludeFilter extends AbstractFilter implements Composer {
   
  @@ -221,8 +221,8 @@
   			} else {
   				throw new SAXException("Unknown object type: "+object);
   			}
  -			if (suffix.startsWith("xptr(") && suffix.endsWith(")")) {
  -				String xpath = suffix.substring(6,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); }
   				DOMBuilder builder = new DOMBuilder(parser);
   				parser.setContentHandler(builder);