It sounds like you're trying to avoid the logical solution: namely XSLT.
The w2schools.com has a good tutorial and reference for XSLT (
http://www.w3schools.com/xsl) and XPath
http://www.w3schools.com/xpathshould help with the learning curve.
JEdit has some XSLT, XPath and XQuery
plugins that make the process of developing XSLTs fairly painless.

If you need to test the XSLTs, I might suggest taking a look at using
approval tests.  You can verify that individual transforms are working
properly by comparing the anticipated and actual results.  There's an
approval test plugin for Eclipse.  http://www.approvaltests.sf.net.

You might also try making each transform as atomic as possible. This will
make it easier to test.  You can combine them together later using
xsl:include.

If you want to see some well structured, easy-to-test XSLT code, you might
take a look at the xmlresume project on sourceforge.

Hope this helps,

Mark

On Tue, Jan 19, 2010 at 10:50 AM, Mark Volkmann
<[email protected]>wrote:

> I prefer XQuery over XSLT, but don't find XSLT to be too difficult. I
> recommend using Saxon. It supports XQuery 1, XSLT 2 and XPath 2.
>
> On Tue, Jan 19, 2010 at 12:25 PM, Rakesh <[email protected]>
> wrote:
> > Hi guys,
> >
> > we have a requirement on our project to take some xml and transform it
> into
> > html for rendering.
> >
> > Obviously this screams xslt but I remember using it and it wasn't that
> fun
> > (steep learning curve, hard to test, etc).
> >
> > A more Java-centric solution would be better and SAX-type solution is
> > obviously something to consider. However, I haven't looked in this area
> for
> > more than 5 years.
> >
> > Its 2010, is there anything new out there?
> >
> > Cheers
> >
> > Rakesh
> >
> > PS it needs to be perfromant.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>
>


-- 
Mark Fortner

blog: http://feeds.feedburner.com/jroller/ideafactory
--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.

Reply via email to