1 <?xml version="1.0"?> 2 3 <xsl:stylesheet 4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 xmlns:ui="http://dummy.com/mynamespace" 6 xmlns="http://www.w3.org/1999/xhtml" 7 xmlns:html="http://www.w3.org/1999/xhtml" 8 version="1.0"> 9 10 <xsl:output method="html" 11 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" 12 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="yes"/> 13 14 <xsl:template match="ui:app"> 15 <form> 16 <xsl:attribute name="action"> 17 <xsl:value-of select="@url" /> 18 </xsl:attribute> 19 <xsl:apply-templates select="./*" /> 20 </form> 21 </xsl:template> 22 23 <xsl:template match="ui:someButton"> 24 <input type="submit"> 25 <xsl:attribute name="id"> 26 <xsl:value-of select="@id" /> 27 </xsl:attribute> 28 <xsl:attribute name="name"> 29 <xsl:value-of select="@name" /> 30 </xsl:attribute> 31 <xsl:attribute name="value"> 32 <xsl:value-of select="normalize-space(.)"/> 33 </xsl:attribute> 34 </input> 35 </xsl:template> 36 37 </xsl:stylesheet>