View Single Post
  #2 (permalink)  
Old November 20th, 2008, 07:16 PM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,481, Level: 59
Points: 18,481, Level: 59 Points: 18,481, Level: 59 Points: 18,481, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,960
Thanks: 0
Thanked 292 Times in 287 Posts
Default

If the HTML is well-formed (i.e. XHTML) then you can use XSLT to transform it. But of course it will need completely different XSLT code. And don't expect that every transformation is fully reversible - after all, you can compute 2+2=4, but you can't reverse that to convert 4 to 2+2.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
Reply With Quote