Foundry: Finished implementation of HTML tags. Almost all elements from the HTML5 specification (http://www.w3.org/TR/html5/) are now available.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2953 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-11-05 17:49:36 +00:00
parent 5159789ec9
commit bd8d621d28
2 changed files with 1178 additions and 95 deletions

View File

@ -402,10 +402,12 @@
<xsl:template name="foundry:process-layouttree-attributes"> <xsl:template name="foundry:process-layouttree-attributes">
<xsl:param name="current-layout-node" select="current()"/> <xsl:param name="current-layout-node" select="current()"/>
<xsl:param name="copy-attributes" select="''"/> <xsl:param name="copy-attributes" select="''"/>
<xsl:param name="id" select="''"/>
<xsl:param name="title" select="''"/> <xsl:param name="title" select="''"/>
<xsl:call-template name="foundry:set-id-and-class"> <xsl:call-template name="foundry:set-id-and-class">
<xsl:with-param name="current-layout-node" select="$current-layout-node"/> <xsl:with-param name="current-layout-node" select="$current-layout-node"/>
<xsl:with-param name="id" select="$id"/>
</xsl:call-template> </xsl:call-template>
<xsl:call-template name="foundry:copy-data-attributes"> <xsl:call-template name="foundry:copy-data-attributes">
@ -451,21 +453,21 @@
</xsl:template> </xsl:template>
<xsl:template name="foundry:process-title-attribute"> <xsl:template name="foundry:process-title-attribute">
<xsl:param name="current-layout-node" select="current()"/> <xsl:param name="current-layout-node" select="current()"/>
<xsl:param name="title" select="''"/> <xsl:param name="title" select="''"/>
<xsl:if test="$title != '' or $current-layout-node/title-static"> <xsl:if test="$title != '' or $current-layout-node/title-static">
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:choose> <xsl:choose>
<xsl:when test="$current-layout-node/title-static"> <xsl:when test="$current-layout-node/title-static">
<xsl:value-of select="foundry:get-static-text('', ./@static-title)"/> <xsl:value-of select="foundry:get-static-text('', ./@static-title)"/>
</xsl:when> </xsl:when>
<xsl:when test="$title != ''"> <xsl:when test="$title != ''">
<xsl:value-of select="$title"/> <xsl:value-of select="$title"/>
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
@ -508,16 +510,19 @@
</xsl:if> </xsl:if>
</xsl:variable> </xsl:variable>
<xsl:if test="$id != ''"> <xsl:if test="$id != '' or $current-layout-node/@id">
<xsl:attribute name="id"> <xsl:attribute name="id">
<xsl:value-of select="$id"/> <xsl:choose>
</xsl:attribute> <xsl:when test="$id != ''">
</xsl:if> <xsl:value-of select="$id"/>
<xsl:if test="$current-layout-node/@id"> </xsl:when>
<xsl:attribute name="id"> <xsl:otherwise>
<xsl:value-of select="@id"/> <xsl:value-of select="$current-layout-node/@id"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<xsl:if test="$current-layout-node/@class <xsl:if test="$current-layout-node/@class
or $cond-class != '' or $cond-class != ''
or $type-class != '' or $type-class != ''