+ \documentclass[<xsl:value-of select="@customizations"/>]{wl}
+
+ <!-- flags and values set on root -->
+
+ \newif\ifflaglessadvertising
+ \newif\ifflagnotwl
+ <xsl:for-each select="@*[starts-with(name(), 'flag-')]">
+ <cmd>
+ <xsl:attribute name="name"><xsl:value-of select="wl:texcommand(name())" />true</xsl:attribute>
+ </cmd>
+ </xsl:for-each>
+
+ <xsl:for-each select="@*[starts-with(name(), 'data-')]">
+ <TeXML escape="0">
+ \def\<xsl:value-of select="wl:texcommand(name())" />{<TeXML escape="1"><xsl:value-of select="."/></TeXML>}
+ </TeXML>
+ </xsl:for-each>