Hi Flibbles,
As you know, I'm a big fan of this plugin already. The one thing that I'm missing as of 1.0.1 is the ability for the <$xpath> widget to choose a template based on the current path, as would XSLT do with <xsl:apply-templates>.
It is currently quite difficult to process an XML chunk whose schema allows several distinct subpaths at a given XML node: revealing nested <$xpath>s based on a subpath value doesn't seem impossible with the help of a few variables and some TW5 core widgets, but it would be suboptimal to say the least.
I suggest that in a future version, a mecanism is added to allow the registration of templates based on an xpath string (like <xsl:template> in XSLT), so that <$xpath> can choose one of these templates based on the current node it is in.
Thanks again!
Xavier.
Hi Flibbles,
As you know, I'm a big fan of this plugin already. The one thing that I'm missing as of 1.0.1 is the ability for the
<$xpath>widget to choose a template based on the current path, as would XSLT do with<xsl:apply-templates>.It is currently quite difficult to process an XML chunk whose schema allows several distinct subpaths at a given XML node: revealing nested
<$xpath>s based on a subpath value doesn't seem impossible with the help of a few variables and some TW5 core widgets, but it would be suboptimal to say the least.I suggest that in a future version, a mecanism is added to allow the registration of templates based on an xpath string (like
<xsl:template>in XSLT), so that<$xpath>can choose one of these templates based on the current node it is in.Thanks again!
Xavier.