If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Wednesday, July 4, 2012

Generating XQueries from XML based definitions using XSLT2.0

I'm currently working on a project where the customer wants to be able to specify what properties on a per category level of products have to be shown in a parametric table. The parametric header definition contains things like column names, tooltips, ordering, databinding and so on. This blog shows the current approach I took to dynamically generate an XQuery to generate preview table from that header definition. It's definitely not the final result but that is also not in my scope and will be handled by another team of developers. Just as a side note... All this will be automated using Apache Cocoon.

Parametric Header definition (XML input)

Header transformer (XSLT)

Generated XQuery

Preview table image

Final table image

No comments:

Post a Comment