[ via Jason Hunter ] At the SD2001 XML BoF (that’s a mouthful), Jason Hunter praised Enhyrda’s XMLC as an alternative to XSLT:
Enhydra XMLC radically simplifies web development by cleanly separating presentation from code. Enhydra XMLC parses a HTML file and creates a Java object that enables an application to change the HTML file’s content at runtime, without regard for its formatting.
The trick is you can have your designers flag areas in the HTML template you want to squirt content into using id and class attributes, then you look those up in the resulting DOM, inject content, and serialize.
Update 13-APR-2001: I downloaded and played with it. What it does is write and compile a Java class which recreates the HTML or XML in a DOM, and fixes up getters and setters for any div or spans with alphanumeric id attributes.
It’d be interesting to compare XMLC and XSLT side by side, since you could do the same thing as XMLC by using XPATH’s document() function to inject content into an XHTML tree.
Possibly Related posts (machine generated):