Skip to content

How about event-driven templates à la XSLT? #1

Description

@xcazin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions