Marc Portier wrote:



Upayavira wrote:

I'm using the jxpath #{./title} within <jx:for> in jxtemplate, and it is returning <title>Some text</title>, instead of just 'Some text'. How do I cause it to just return the text content, and not the whole node?


not working with: "./title/text()" ?

What I should say is that the XML that I'm using is coming out of XIndice. ./title/text() gives me a null pointer exception:


at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3090) at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3285) at org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2842) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:557)

Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to