forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/java/components/org/apache/cocoon/transformation IdGeneratorTransformer.java
Date Mon, 28 Apr 2003 06:22:21 GMT
jefft       2003/04/27 23:22:21

  Modified:    src/java/components/org/apache/cocoon/transformation
                        IdGeneratorTransformer.java
  Log:
  Trim whitespace off <title> contents before using it for @ids
  
  Revision  Changes    Path
  1.6       +1 -0      xml-forrest/src/java/components/org/apache/cocoon/transformation/IdGeneratorTransformer.java
  
  Index: IdGeneratorTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/java/components/org/apache/cocoon/transformation/IdGeneratorTransformer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- IdGeneratorTransformer.java	21 Apr 2003 10:19:55 -0000	1.5
  +++ IdGeneratorTransformer.java	28 Apr 2003 06:22:21 -0000	1.6
  @@ -211,6 +211,7 @@
               String id = null;
               try {
                 id = processor.evaluateAsString(sect, idXPath);
  +              id.trim();
               } catch (Exception e) {
                   throw new SAXException("'id' XPath expression '"+idXPath+"' does not return
a text node: "+e, e);
               }
  
  
  

Mime
View raw message