[opencms-dev] x:out and XPath

Fabian Huschka fabian.huschka at componio.net
Wed Dec 13 21:56:05 CET 2006


Hello,

Dwayne Kristjanson schrieb:
> 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]" />
>   
Shouldn´t it read ${dom} ?

\Fab



More information about the opencms-dev mailing list