Dealing with xpath using libxml

Hi,

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 :

//[2]/*[1]

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

/html/body/p

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs