roxen.lists.roxen.general

Subject Author Date
Re: XPath results from a define Peter_Jönsson <peter[at]kolumn[dot]se> 08-10-2006
Patched the file SloppyDOM.pmod to v 1.13 2006/09/16 14:17:15 (just  
replaced the file in etc/modules/SloppyDOM.pmod, restarted server)  
and tested the following:

xml tree:
<datest>
	<pcheck>chk1</pcheck>
	<p>
		<pcheck>chk2</pcheck>
	</p>
</datest>


parsed with <define>:
<define container="datest">
	<contents copy-of=".//pcheck"/>
</define>

Outputs:
<pcheck>chk1</pcheck>

Not really as expected so I tried the same thing in xslt:

<xsl:template match="datest">
	<html>
		<xsl:copy-of select=".//pcheck"/>
	</html>
</xsl:template>

Outputs:
<html>
<pcheck>chk1</pcheck><pcheck>chk2</pcheck>
</html>

Good :)

So Davids problem seems to persist. Am I missing something or is this  
a bug?

//peter



On 8 okt 2006, at 02.55, David Hunter wrote:

> ok i patched the change and still no luck.
> does anyone have a working example that traverses all child nodes?
>
> Dave.
>
> On Fri, 2006-10-06 at 09:33 +0200, Jonas Wallden wrote:
>> David Hunter <<dhunter[at]pauanui.net.nz>> wrote:
>>
>>> iv finally got round to upgrading to roxen 4.5.78.
>>>
>>> im still having the same problem at this stage.
>>
>> The bug was fixed after 4.5.78 so you need to manually patch the file
>> below or wait for the next release.
>>
>>    http://community.roxen.com/developers/cvs/browse.html? 
>> file_id=121374
>>
>> Cheers,
>>
>> -- Jonas
>>
>