Last active
October 9, 2016 17:13
-
-
Save jelovirt/cd100d71f723fd3e25818baa0b2c54ea to your computer and use it in GitHub Desktop.
Inline matching in pseudo-XSLT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template match="metasyntactic"> | |
<xsl:match select="."> | |
<xsl:case match="foo">foo</xsl:case> | |
<xsl:case match="bar">bar</xsl:case> | |
<xsl:case match="baz">baz</xsl:case> | |
</xsl:match> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know anything about Schematron Quick Fix, so I don't really know why you'd use it here. Couldn't you just use XSLT?
But yeah, this kind of thing should really be baked into the language itself, since debugging generated stylesheets isn't a whole lot of fun.