- <xslt:copy-of select="exsl:node-set($metadata)/node()[self::comment() or self::* and not(self::html:title)]"/>
- <xslt:if test="not(exsl:node-set($metadata)/html:meta[@name='generator'])">
- <html:meta name="generator" content="⛩️📰 书社"/>
+ <xslt:copy-of select="exsl:node-set($metadata)/node()[not(self::*) or not(self::html:title)]"/>
+ <xslt:if test="$GENERATOR and not(exsl:node-set($metadata)/html:meta[@name='generator'])">
+ <html:meta name="generator">
+ <xslt:attribute name="content">
+ <xslt:value-of select="$GENERATOR"/>
+ <xslt:if test="$VERSION">
+ <xslt:text> (</xslt:text>
+ <xslt:value-of select="$VERSION"/>
+ <xslt:text>)</xslt:text>
+ </xslt:if>
+ </xslt:attribute>
+ </html:meta>