Syncing Foundry fileSyncing Foundry filess
git-svn-id: https://svn.libreccm.org/ccm/trunk@2949 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
6b40d9159c
commit
a9d5856cb5
|
|
@ -258,7 +258,6 @@
|
||||||
<xsl:sequence select="$src-url"/>
|
<xsl:sequence select="$src-url"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
</xsl:function>
|
</xsl:function>
|
||||||
|
|
||||||
<foundry:doc section="devel" type="function-template">
|
<foundry:doc section="devel" type="function-template">
|
||||||
|
|
@ -392,12 +391,18 @@
|
||||||
<code>foundry:copy-attributes</code>
|
<code>foundry:copy-attributes</code>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#process-title-attribute">
|
||||||
|
<code>foundry:process-title-attribute</code>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</foundry:doc-desc>
|
</foundry:doc-desc>
|
||||||
</foundry:doc>
|
</foundry:doc>
|
||||||
<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="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"/>
|
||||||
|
|
@ -407,6 +412,11 @@
|
||||||
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
|
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
|
<xsl:call-template name="foundry:process-title-attribute">
|
||||||
|
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
|
||||||
|
<xsl:with-param name="title" select="$title"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="foundry:copy-attributes">
|
<xsl:call-template name="foundry:copy-attributes">
|
||||||
<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="attributes" select="$copy-attributes"/>
|
<xsl:with-param name="attributes" select="$copy-attributes"/>
|
||||||
|
|
@ -439,6 +449,25 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template name="foundry:process-title-attribute">
|
||||||
|
<xsl:param name="current-layout-node" select="current()"/>
|
||||||
|
<xsl:param name="title" select="''"/>
|
||||||
|
|
||||||
|
<xsl:if test="$title != '' or $current-layout-node/title-static">
|
||||||
|
<xsl:attribute name="title">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="$current-layout-node/title-static">
|
||||||
|
<xsl:value-of select="foundry:get-static-text('', ./@static-title)"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="$title != ''">
|
||||||
|
<xsl:value-of select="$title"/>
|
||||||
|
</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="devel" type="function-template">
|
<foundry:doc section="devel" type="function-template">
|
||||||
<foundry:doc-desc>
|
<foundry:doc-desc>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
These tags are generating the equivalent HTML tags. In most cases the tags have
|
These tags are generating the equivalent HTML tags. In most cases the tags have
|
||||||
the same name and same attributes as their HTML counterparts, but some work
|
the same name and same attributes as their HTML counterparts, but some work
|
||||||
in a slightly different way, for example by using values provided by other
|
in a slightly different way, for example by using values provided by other
|
||||||
surrounding tags which are passed the them as XSL parameters.
|
surrounding tags which are passed to them as XSL parameters.
|
||||||
</p>
|
</p>
|
||||||
</foundry:doc-file-desc>
|
</foundry:doc-file-desc>
|
||||||
</foundry:doc-file>
|
</foundry:doc-file>
|
||||||
|
|
@ -136,11 +136,6 @@
|
||||||
<xsl:param name="type" select="''" tunnel="yes"/>
|
<xsl:param name="type" select="''" tunnel="yes"/>
|
||||||
|
|
||||||
<a>
|
<a>
|
||||||
<!--<xsl:if test="./@download">
|
|
||||||
<xsl:attribute name="download">
|
|
||||||
<xsl:value-of select="./@download"/>
|
|
||||||
</xsl:attribute>
|
|
||||||
</xsl:if>-->
|
|
||||||
<xsl:if test="./@href-property">
|
<xsl:if test="./@href-property">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$data-tree/*[name = ./@href-property]"/>
|
<xsl:value-of select="$data-tree/*[name = ./@href-property]"/>
|
||||||
|
|
@ -161,21 +156,6 @@
|
||||||
<xsl:value-of select="$hreflang"/>
|
<xsl:value-of select="$hreflang"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<!--<xsl:if test="./@rel">
|
|
||||||
<xsl:attribute name="rel">
|
|
||||||
<xsl:value-of select="./@rel"/>
|
|
||||||
</xsl:attribute>
|
|
||||||
</xsl:if>-->
|
|
||||||
<xsl:if test="./title-static">
|
|
||||||
<xsl:attribute name="title">
|
|
||||||
<xsl:value-of select="foundry:get-static-text('', ./@static-title)"/>
|
|
||||||
</xsl:attribute>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="$title != ''">
|
|
||||||
<xsl:attribute name="title">
|
|
||||||
<xsl:value-of select="$title"/>
|
|
||||||
</xsl:attribute>
|
|
||||||
</xsl:if>
|
|
||||||
<xsl:if test="string-length($type) > 0">
|
<xsl:if test="string-length($type) > 0">
|
||||||
<xsl:attribute name="type">
|
<xsl:attribute name="type">
|
||||||
<xsl:value-of select="$type"/>
|
<xsl:value-of select="$type"/>
|
||||||
|
|
@ -184,6 +164,7 @@
|
||||||
<xsl:call-template name="foundry:process-layouttree-attributes">
|
<xsl:call-template name="foundry:process-layouttree-attributes">
|
||||||
<xsl:with-param name="copy-attributes"
|
<xsl:with-param name="copy-attributes"
|
||||||
select="'download rel type'"/>
|
select="'download rel type'"/>
|
||||||
|
<xsl:with-param name="title" select="$title"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -277,9 +258,36 @@
|
||||||
</aside>
|
</aside>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a HTML5 <code>audio</code> element. The source URL of the audio file can
|
||||||
|
be provided by a surrounding tag, statically in the theme or by an property in the
|
||||||
|
data tree.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-attributes>
|
||||||
|
<foundry:doc-attribute name="src-static">
|
||||||
|
<p>
|
||||||
|
A static URL for the source of the audio file
|
||||||
|
</p>
|
||||||
|
</foundry:doc-attribute>
|
||||||
|
<foundry:doc-attribute name="src-property">
|
||||||
|
<p>
|
||||||
|
Name of property in the data tree containing the source URL.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-attribute>
|
||||||
|
</foundry:doc-attributes>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/embedded-content-0.html#the-audio-element">
|
||||||
|
Description of the <code>audio</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
<xsl:template match="audio">
|
<xsl:template match="audio">
|
||||||
<!-- Source URL of the audio document provided by a surrounding tag -->
|
<!-- Source URL of the audio document provided by a surrounding tag -->
|
||||||
<xsl:param name="src" tunnel="yes" as="xs:string" select="''"/>
|
<xsl:param name="src" tunnel="yes" as="xs:string" select="''"/>
|
||||||
|
<xsl:param name="title" tunnel="yes" as="xs:string" select="''"/>
|
||||||
|
|
||||||
<xsl:variable name="src-raw">
|
<xsl:variable name="src-raw">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
|
@ -302,15 +310,63 @@
|
||||||
that the audio file is served from the CCM database. If the path does *not* start with a
|
that the audio file is served from the CCM database. If the path does *not* start with a
|
||||||
slash the audio file is part of the theme and the theme-prefix is added.
|
slash the audio file is part of the theme and the theme-prefix is added.
|
||||||
-->
|
-->
|
||||||
<!--<xsl:variable name="audio-src">
|
<xsl:variable name="audio-src" select="foundry:gen-src-url($src-raw)"/>
|
||||||
|
|
||||||
</xsl:variable>-->
|
|
||||||
|
|
||||||
<audio>
|
<audio>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes">
|
||||||
|
<xsl:with-param name="copy-attributes"
|
||||||
|
select="'autoplay buffered controls loop muted played preload volume'"/>
|
||||||
|
<xsl:with-param name="title" select="$title"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
<xsl:attribute name="src" select="$audio-src"/>
|
||||||
|
|
||||||
|
<xsl:apply-templates/>
|
||||||
</audio>
|
</audio>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a HTML <code>b</code> element. Use this element only with semantics
|
||||||
|
defined in the HTML5 specification. Originally, in the early incarnations of HTML,
|
||||||
|
this element marked text as bold. In HTML5 the semantics of this element as been
|
||||||
|
redefined. For more information please refer to the HTML5 specification.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/text-level-semantics.html#the-b-element">
|
||||||
|
Description of the <code>b</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="b">
|
||||||
|
<b>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</b>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>blockquote</code> element.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/grouping-content.html#the-blockquote-element">
|
||||||
|
Description of the <code>blockquote</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template name="blockquote">
|
||||||
|
<blockquote>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes">
|
||||||
|
<xsl:with-param name="copy-attributes" select="'cite'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</blockquote>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="user" type="template-tag">
|
<foundry:doc section="user" type="template-tag">
|
||||||
<foundry:doc-desc>
|
<foundry:doc-desc>
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -324,8 +380,6 @@
|
||||||
</foundry:doc-see-also>
|
</foundry:doc-see-also>
|
||||||
</foundry:doc>
|
</foundry:doc>
|
||||||
<xsl:template match="body">
|
<xsl:template match="body">
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
|
||||||
|
|
@ -407,6 +461,25 @@
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</body>
|
</body>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc>
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>br</code> element.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/text-level-semantics.html#the-br-element">
|
||||||
|
Description of the <code>br</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template name="br">
|
||||||
|
<br>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</br>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="user" type="template-tag">
|
<foundry:doc section="user" type="template-tag">
|
||||||
<foundry:doc-desc>
|
<foundry:doc-desc>
|
||||||
|
|
@ -430,6 +503,124 @@
|
||||||
</button>
|
</button>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>canvas</code> element.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/scripting-1.html#the-canvas-element">
|
||||||
|
Description of the <code>canvas</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="canvas">
|
||||||
|
<canvas>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:if test="./@width">
|
||||||
|
<xsl:attribute name="width" select="./@width"/>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
<xsl:if test="./@height">
|
||||||
|
<xsl:attribute name="height" select="./@height"/>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</canvas>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>caption</code> element representing the caption of a table.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/tabular-data.html#the-caption-element">
|
||||||
|
Description of the <code>caption</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="table//caption">
|
||||||
|
<caption>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</caption>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>cite</code> element.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/text-level-semantics.html#the-cite-element">
|
||||||
|
Description of the <code>cite</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="cite">
|
||||||
|
<cite>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</cite>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>code</code> element.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element">
|
||||||
|
Description of the <code>code</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="code">
|
||||||
|
<code>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</code>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
A definition of term in a definition list.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/grouping-content.html#the-dd-element"/>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="dd">
|
||||||
|
<dd>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</dd>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc-desc>
|
||||||
|
<p>
|
||||||
|
Generates a <code>del</code> element.
|
||||||
|
</p>
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/edits.html#the-del-element">
|
||||||
|
Description of the <code>del</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
<xsl:template match="del">
|
||||||
|
<del>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</del>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="user"
|
<foundry:doc section="user"
|
||||||
type="template-tag">
|
type="template-tag">
|
||||||
<foundry:doc-desc>
|
<foundry:doc-desc>
|
||||||
|
|
@ -481,7 +672,7 @@
|
||||||
</foundry:doc>
|
</foundry:doc>
|
||||||
<xsl:template match="dl">
|
<xsl:template match="dl">
|
||||||
<dl>
|
<dl>
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</dl>
|
</dl>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
@ -498,42 +689,95 @@
|
||||||
</foundry:doc>
|
</foundry:doc>
|
||||||
<xsl:template match="dt">
|
<xsl:template match="dt">
|
||||||
<dt>
|
<dt>
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</dt>
|
</dt>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="user" type="template-tag">
|
<foundry:doc>
|
||||||
<foundry:doc-desc>
|
<foundry:doc-desc>
|
||||||
<p>
|
<p>
|
||||||
A definition of term in a definition list.
|
Generates an <code>em</code> element.
|
||||||
</p>
|
</p>
|
||||||
</foundry:doc-desc>
|
</foundry:doc-desc>
|
||||||
<foundry:doc-see-also>
|
<foundry:doc-see-also>
|
||||||
<foundry:doc-link href="http://www.w3.org/TR/html5/grouping-content.html#the-dd-element"/>
|
<foundry:doc-link href="http://www.w3.org/TR/html5/text-level-semantics.html#the-em-element">
|
||||||
|
Description of the <code>em</code> element in the HTML5 specification.
|
||||||
|
</foundry:doc-link>
|
||||||
</foundry:doc-see-also>
|
</foundry:doc-see-also>
|
||||||
</foundry:doc>
|
</foundry:doc>
|
||||||
<xsl:template match="dd">
|
<xsl:template match="em">
|
||||||
<dd>
|
<em>
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</dd>
|
</em>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="form//fieldset">
|
||||||
|
<fieldset>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes">
|
||||||
|
<xsl:with-param name="copy-attributes" select="'disabled form name'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fieldset>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="figcaption">
|
<xsl:template name="figcaption">
|
||||||
<figcaption>
|
<figcaption>
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="figure">
|
<xsl:template name="figure">
|
||||||
<figure>
|
<figure>
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</figure>
|
</figure>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
<foundry:doc-desc>
|
||||||
|
Creates a HTML5 footer element.
|
||||||
|
</foundry:doc-desc>
|
||||||
|
<foundry:doc-see-also>
|
||||||
|
<foundry:doc-link href="http://www.w3.org/TR/html5/sections.html#the-footer-element"/>
|
||||||
|
</foundry:doc-see-also>
|
||||||
|
</foundry:doc>
|
||||||
|
<xsl:template match="footer">
|
||||||
|
<footer>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes"/>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</footer>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template match="form">
|
||||||
|
<xsl:param name="action" tunnel="yes" select="''"/>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<xsl:call-template name="foundry:process-layouttree-attributes">
|
||||||
|
<xsl:with-param name="copy-attributes" select="'method enctype accept name'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
|
||||||
|
<xsl:attribute name="action">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="$action != ''">
|
||||||
|
<xsl:value-of select="$action"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="./@action">
|
||||||
|
<xsl:value-of select="./@action"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="''"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:attribute>
|
||||||
|
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</form>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="h1">
|
<xsl:template match="h1">
|
||||||
<h1>
|
<h1>
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
<xsl:call-template name="foundry:set-id-and-class"/>
|
||||||
|
|
@ -576,20 +820,7 @@
|
||||||
</h6>
|
</h6>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="user" type="template-tag">
|
|
||||||
<foundry:doc-desc>
|
|
||||||
Creates a HTML5 footer element.
|
|
||||||
</foundry:doc-desc>
|
|
||||||
<foundry:doc-see-also>
|
|
||||||
<foundry:doc-link href="http://www.w3.org/TR/html5/sections.html#the-footer-element"/>
|
|
||||||
</foundry:doc-see-also>
|
|
||||||
</foundry:doc>
|
|
||||||
<xsl:template match="footer">
|
|
||||||
<footer>
|
|
||||||
<xsl:call-template name="foundry:set-id-and-class"/>
|
|
||||||
<xsl:apply-templates/>
|
|
||||||
</footer>
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
<foundry:doc section="user" type="template-tag">
|
<foundry:doc section="user" type="template-tag">
|
||||||
<foundry:doc-desc>
|
<foundry:doc-desc>
|
||||||
|
|
@ -805,49 +1036,7 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Generate src URL of the image. If the path is not an external path (a path starting
|
|
||||||
with http:// or https://) add the theme-prefix or the dispatcher-prefix. The
|
|
||||||
dispatcher-prefix is added if the path does start with a slash (/). This indicates
|
|
||||||
that the image is served from the CCM database. If the path does *not* start with a
|
|
||||||
slash the image is part of the theme and the theme-prefix is added.
|
|
||||||
-->
|
|
||||||
<!-- Logic moved to the foundry:gen-src-url function in template-parser.xsl because the
|
|
||||||
logic is also needed for other elements like audio and video-->
|
|
||||||
<!--<xsl:variable name="img-src">
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="substring($src-raw, 1, 7) = 'http://'
|
|
||||||
or substring($src-raw, 1, 8) = 'https://'" >
|
|
||||||
<xsl:value-of select="$src-raw"/>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:when test="substring($src-raw, 1, 1) = '/'">
|
|
||||||
<xsl:variable name="img-dimensions"
|
|
||||||
select="concat('width=', $width, '&height=', $height)"/>
|
|
||||||
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="contains($src-raw, '?')">
|
|
||||||
<xsl:value-of select="concat($dispatcher-prefix,
|
|
||||||
$src-raw,
|
|
||||||
'&',
|
|
||||||
$img-dimensions)"/>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select="concat($dispatcher-prefix,
|
|
||||||
$src-raw,
|
|
||||||
'?',
|
|
||||||
$img-dimensions)"/>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select="foundry:gen-path($src-raw)"/>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:variable>-->
|
|
||||||
|
|
||||||
<xsl:variable name="img-src"
|
<xsl:variable name="img-src"
|
||||||
select="foundry:gen-src-url($src-raw,
|
select="foundry:gen-src-url($src-raw,
|
||||||
concat('width=',
|
concat('width=',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue