4 ms·
I want to address that reuse/repetition thing. It's totally possible to do this in XML+XSLT. E.g. you have some repeating structure that totally calls for what
by Mikhail_Edoshin 7y ago
I want to address that reuse/repetition thing. It's totally possible to do this in XML+XSLT. E.g. you have some repeating structure that totally calls for what would be a helper function in a conventional language, say, "createMyButton(this, that)". In XML that could be done like this:
<android:whatever xmlns:ext="urn:my-corp/ui-ext">
<ext:my-button this="..." that="..." />
</android:whatever>
This gets fed into an XSLT file that copies everything intact and expands your custom elements:
<xsl:template match="ext:my-button">
<!-- expand into what you need -->
</xsl:template>