Forum: Ruby Dealing with xpath using libxml

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
522c66f4c4bc46cc4df007018e2505e6?d=identicon&s=25 Vaucher Bastien (bastien-vaucher)
on 2007-02-21 10:32

I m trying to generate a xslt file from xhtml using libxml and when I m
parsing the xhtml file and look at xpaths i get something ugly like :


I tried to do the same with REXML and i obtained :


When I m parsing xml files it works fine, but with xhtml files xpaths
are really ugly.

Does anyone know how to get nicer xpaths with libxml ?

Thanks for your answers
This topic is locked and can not be replied to.