Attachment 'content.xsl'
Download 1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:html="http://www.w3.org/1999/xhtml"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:wwmode="urn:WebWorks-Engine-Mode"
6 xmlns:wwdoc="urn:WebWorks-Document-Schema"
7 xmlns:wwsplits="urn:WebWorks-Engine-Splits-Schema"
8 xmlns:wwimaging="urn:WebWorks-XSLT-Extension-Imaging"
9 xmlns:wwlog="urn:WebWorks-XSLT-Extension-Log"
10 xmlns:wwuri="urn:WebWorks-XSLT-Extension-URI"
11 exclude-result-prefixes="html xsl wwmode wwdoc wwsplits wwimaging wwlog wwuri"
12 >
13 <xsl:import href="wwtransform:super" />
14
15 <xsl:template match="wwdoc:Paragraph[@stylename = 'Equation']" mode="wwmode:content">
16 <xsl:param name="ParamParagraph" select="." />
17 <xsl:param name="ParamSplits"/>
18 <xsl:param name="ParamSplit"/>
19
20 <xsl:variable name="VarWifFrameId" select="$ParamParagraph/descendant::wwdoc:Frame[1]/@id" />
21 <xsl:variable name="VarSplitsFrame" select="$ParamSplits/wwsplits:Splits/wwsplits:Split/wwsplits:Frame[@id = $VarWifFrameId]" />
22 <xsl:variable name="VarImageInfo" select="wwimaging:GetInfo($VarSplitsFrame/@path)" />
23
24 <xsl:variable name="VarSrc" select="wwuri:GetRelativeTo($VarImageInfo/@path, $ParamSplit/@path)" />
25 <xsl:variable name="VarLog" select="wwlog:Warning($VarSrc)"/>
26
27 <html:table style="width: 100%;">
28 <html:tr>
29 <!-- First cell with relative width -->
30 <!-- -->
31 <html:td style="padding-left: 5%; text-align: left;">
32 <html:img src="{$VarSrc}" class="EquationGraphic" style="border: 0px; vertical-align: baseline;" />
33 </html:td>
34
35 <!-- Second cell with fixed width -->
36 <!-- -->
37 <html:td style="padding-right: 20px; text-align: right;">
38 <xsl:for-each select="$ParamParagraph/wwdoc:Number">
39 <html:div style="font-weight: bold; font-size: large;">
40 <xsl:for-each select="descendant::wwdoc:Text">
41 <xsl:value-of select="@value" />
42 </xsl:for-each>
43 </html:div>
44 </xsl:for-each>
45 </html:td>
46 </html:tr>
47 </html:table>
48 </xsl:template>
49
50
51 </xsl:stylesheet>
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.