xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minc...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/templates OutputProperties.java
Date Thu, 16 Oct 2003 20:04:56 GMT
minchau     2003/10/16 13:04:56

  Modified:    java/src/org/apache/xalan/templates OutputProperties.java
  Log:
  
  PR: bugzilla 890
  Submitted by:	 Richard Cao
  Reviewed by:	Brian Minchau
  Make sure a non standard property has a key with only one '{' and only one '}'
  and that the '{' is first thing in the key.
  
  Revision  Changes    Path
  1.31      +5 -1      xml-xalan/java/src/org/apache/xalan/templates/OutputProperties.java
  
  Index: OutputProperties.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/OutputProperties.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- OutputProperties.java	15 Oct 2003 14:42:35 -0000	1.30
  +++ OutputProperties.java	16 Oct 2003 20:04:56 -0000	1.31
  @@ -692,7 +692,11 @@
               || key.equals(OutputKeys.OMIT_XML_DECLARATION)
               || key.equals(OutputKeys.STANDALONE)
               || key.equals(OutputKeys.VERSION)
  -            || (key.length() > 0) && (key.charAt(0) == '{'));
  +            || (key.length() > 0) 
  +                  && (key.charAt(0) == '{') 
  +                  && (key.lastIndexOf('{') == 0)
  +                  && (key.indexOf('}') > 0)
  +                  && (key.lastIndexOf('}') == key.indexOf('}')));
     }
   
     /** The output properties.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message