... <counter xmlns="my" />
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="my"> ... <xsl:template match="//my:counter"> <form> <button onclick="form.counter.value -= 1;return false">-</button> <input name="counter" value="0"> <button onclick="form.counter.value = 1 + +form.counter.value;return false">+</button> </form> </xsl:template> </xsl:stylesheet>
Mind you, there isn't exactly a 1:1 mapping between modules & web-components, with the former being 20 years old at this point.