[opencms-dev] x:out and XPath

Dwayne Kristjanson dwayne at realdecoy.com
Wed Dec 13 16:47:31 CET 2006


I'm having some issues using x:out in opencms. I've loaded a an element
into a DOM object using x:parse and when I inspect that object directly
it has the structure I expect. However when I try to use x:out to
display a value I get a NullPointerException.

<c:set var="xmlData"><root><cms:include attribute="file"
cacheable="false" element="mainbox" /></root></c:set>
<x:parse var="dom" xml="${xmlData}" />
<x:out select="$dom//p[1]" />


--
Dwayne Kristjanson



More information about the opencms-dev mailing list