commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject [jelly] Trying to understand TestJSL.testExample1
Date Thu, 11 May 2006 07:58:16 GMT
Hi,

in the efforts of upgrading to dom4j-1.6, I've bumped into the following 
weird behaviour which may be my too small knowledge of JSL:

TestJSL.testExample1 tests the output of the jelly file:
    src/test/org/apache/commons/jelly/jsl/example.jelly
and then tries to assert that the first resulting <small> element should 
start with "James Elson" which is only contained in an attribute in the 
source document whereas <small> elements, in this jsl stylesheet are 
output with the template:
  <jsl:template match="*">
    <small><jsl:applyTemplates/></small>
  </jsl:template>
i.e. only matching elements, not any node...
Can someone tell me whether this test is reasonable ?

The test is running with dom4j 1.5.2 (that tastes like a bug!)
This assert is the only breakage I have in jsl with dom4j 1.6.1.

thanks for hints

paul

PS: I managed already with dom4j-1.5.2...

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message