cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/validation/schematron SchematronValidator.java
Date Sun, 13 Jul 2003 21:36:09 GMT
coliver     2003/07/13 14:36:09

  Modified:    src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/validation/schematron
                        SchematronValidator.java
  Log:
  Use JXPath relative context so ../ works
  
  Revision  Changes    Path
  1.2       +2 -3      cocoon-2.1/src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/validation/schematron/SchematronValidator.java
  
  Index: SchematronValidator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/jxforms/java/org/apache/cocoon/components/jxforms/validation/schematron/SchematronValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SchematronValidator.java	12 Jul 2003 19:22:30 -0000	1.1
  +++ SchematronValidator.java	13 Jul 2003 21:36:09 -0000	1.2
  @@ -287,8 +287,7 @@
               nextFailedRule.setContext(ptr.asPath());
   
               // switch to the context of the rule
  -            JXPathContext localJxpContext = JXPathContext.newContext(jxpContext,
  -                                                ptr.getValue());
  +            JXPathContext localJxpContext = jxpContext.getRelativeContext(ptr);
   
               // evaluate asserts
               Iterator assertIter = rule.getAssert().iterator();
  
  
  

Mime
View raw message