[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to disable escaping of '<' characters --- Addi
> I am using XSL stylesheet to generate HTML output. The > requirement I have is > to compare two XML structures and highlight the difference. The way I > thought I can accomplish this is compare two DOM structures > and whenever > there is a difference, add high lighting HTML tags to the DOM > & print the dom using XSLT. > > If there is a better solution, let me know. The approach is reasonable, but adding text nodes that contain markup characters isn't. Add element nodes instead. Or alternatively, why not add processing instruction nodes to the tree, and turn these into HTML highlighting instructions from your stylesheet? That will make it much easier to modify the display style for changed sections. Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|