Produced by Araxis Merge on Thu Oct 16 22:29:53 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.2\WebWorks\ePublisher Pro\Formats\Microsoft HTML Help 1.x\Transforms | content.xsl | Wed Jul 2 00:18:22 2008 UTC |
2 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Microsoft HTML Help 1.x\Transforms | content.xsl | Mon Oct 13 05:51:52 2008 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 6802 |
Changed | 0 | 0 |
Inserted | 0 | 0 |
Removed | 2 | 2 |
Whitespace | All differences in whitespace within lines are ignored |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <?xml vers ion="1.0" encoding=" UTF-8"?> | 1 | <?xml vers ion="1.0" encoding=" UTF-8"?> | |||
2 | <xsl:style sheet vers ion="1.0" xmlns="htt p://www.w3 .org/1999/ xhtml" | 2 | <xsl:style sheet vers ion="1.0" xmlns="htt p://www.w3 .org/1999/ xhtml" | |||
3 | xmlns:html ="http://w ww.w3.org/ 1999/xhtml " | 3 | xmlns:html ="http://w ww.w3.org/ 1999/xhtml " | |||
4 | xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" | 4 | xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" | |||
5 | xmlns:msxs l="urn:sch emas-micro soft-com:x slt" | 5 | xmlns:msxs l="urn:sch emas-micro soft-com:x slt" | |||
6 | xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" | 6 | xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" | |||
7 | xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" | 7 | xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" | |||
8 | xmlns:wwal inks="urn: WebWorks-A Links-Sche ma" | 8 | xmlns:wwal inks="urn: WebWorks-A Links-Sche ma" | |||
9 | xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" | 9 | xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" | |||
10 | xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" | 10 | xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" | |||
11 | xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" | 11 | xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" | |||
12 | xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" | 12 | xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" | |||
13 | xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" | 13 | xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" | |||
14 | xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" | 14 | xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" | |||
15 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | 15 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | |||
16 | xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" | 16 | xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" | |||
17 | xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" | 17 | xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" | |||
18 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | 18 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | |||
19 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | 19 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | |||
20 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | 20 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | |||
21 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | 21 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | |||
22 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | 22 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | |||
23 | xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" | 23 | xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" | |||
24 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | 24 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | |||
25 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | 25 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | |||
26 | xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" | 26 | xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" | |||
27 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | 27 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | |||
28 | exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks wwalinks w wfiles wwd oc wwsplit s wwtoc ww behaviors wwnotes ww project ww page wwloc ale wwprog ress wwlog wwfilesys tem wwuri wwstring w wunits wwf ilesext ww projext ww imaging ww exsldoc" | 28 | exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks wwalinks w wfiles wwd oc wwsplit s wwtoc ww behaviors wwnotes ww project ww page wwloc ale wwprog ress wwlog wwfilesys tem wwuri wwstring w wunits wwf ilesext ww projext ww imaging ww exsldoc" | |||
29 | > | 29 | > | |||
30 | <xsl:key name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File" use="conca t(@groupID , ':', @ty pe)" /> | 30 | <xsl:key name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File" use="conca t(@groupID , ':', @ty pe)" /> | |||
31 | <xsl:key name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" /> | 31 | <xsl:key name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" /> | |||
32 | <xsl:key name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> | 32 | <xsl:key name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> | |||
33 | <xsl:key name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " /> | 33 | <xsl:key name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " /> | |||
34 | <xsl:key name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> | 34 | <xsl:key name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> | |||
35 | <xsl:key name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> | 35 | <xsl:key name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> | |||
36 | <xsl:key name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> | 36 | <xsl:key name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> | |||
37 | <xsl:key name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> | 37 | <xsl:key name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> | |||
38 | <xsl:key name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> | 38 | <xsl:key name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> | |||
39 | <xsl:key name="wwdo c-paragrap hs-by-id" match="wwd oc:Paragra ph" use="@ id" /> | 39 | <xsl:key name="wwdo c-paragrap hs-by-id" match="wwd oc:Paragra ph" use="@ id" /> | |||
40 | <xsl:key name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> | 40 | <xsl:key name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> | |||
41 | <xsl:key name="wwfi les-files- by-path" m atch="wwfi les:File" use="@path " /> | 41 | <xsl:key name="wwfi les-files- by-path" m atch="wwfi les:File" use="@path " /> | |||
42 | <xsl:key name="wwpr oject-prop erty-by-na me" match= "wwproject :Property" use="@Nam e"/> | 42 | <xsl:key name="wwpr oject-prop erty-by-na me" match= "wwproject :Property" use="@Nam e"/> | |||
43 | 43 | |||||
44 | 44 | |||||
45 | <xsl:temp late name= "Breadcrum bs"> | 45 | <xsl:temp late name= "Breadcrum bs"> | |||
46 | <xsl:par am name="P aramPageRu le" /> | 46 | <xsl:par am name="P aramPageRu le" /> | |||
47 | <xsl:par am name="P aramSplit" /> | 47 | <xsl:par am name="P aramSplit" /> | |||
48 | <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> | 48 | <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> | |||
49 | 49 | |||||
50 | <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> | 50 | <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> | |||
51 | <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> | 51 | <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> | |||
52 | 52 | |||||
53 | <!-- Em it entry - -> | 53 | <!-- Em it entry - -> | |||
54 | <!-- - -> | 54 | <!-- - -> | |||
55 | <xsl:ch oose> | 55 | <xsl:ch oose> | |||
56 | <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) > 0 "> | 56 | <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) > 0 "> | |||
57 | <!-- Entry with link --> | 57 | <!-- Entry with link --> | |||
58 | <!-- --> | 58 | <!-- --> | |||
59 | <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path, $ParamSpli t/@path)" /> | 59 | <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path, $ParamSpli t/@path)" /> | |||
60 | 60 | |||||
61 | <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}"> | 61 | <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}"> | |||
62 | <xsl :call-temp late name= "Breadcrum bEntry"> | 62 | <xsl :call-temp late name= "Breadcrum bEntry"> | |||
63 | <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> | 63 | <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> | |||
64 | </xs l:call-tem plate> | 64 | </xs l:call-tem plate> | |||
65 | </htm l:a> | 65 | </htm l:a> | |||
66 | </xsl: when> | 66 | </xsl: when> | |||
67 | 67 | |||||
68 | <xsl:o therwise> | 68 | <xsl:o therwise> | |||
69 | <!-- Entry with out link - -> | 69 | <!-- Entry with out link - -> | |||
70 | <!-- - -> | 70 | <!-- - -> | |||
71 | <xsl: call-templ ate name=" Breadcrumb Entry"> | 71 | <xsl: call-templ ate name=" Breadcrumb Entry"> | |||
72 | <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> | 72 | <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> | |||
73 | </xsl :call-temp late> | 73 | </xsl :call-temp late> | |||
74 | </xsl: otherwise> | 74 | </xsl: otherwise> | |||
75 | </xsl:c hoose> | 75 | </xsl:c hoose> | |||
76 | 76 | |||||
77 | <!-- Em it separat or --> | 77 | <!-- Em it separat or --> | |||
78 | <!-- --> | 78 | <!-- --> | |||
79 | <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " /> | 79 | <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " /> | |||
80 | <xsl:ch oose> | 80 | <xsl:ch oose> | |||
81 | <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator) > 0"> | 81 | <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator) > 0"> | |||
82 | <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> | 82 | <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> | |||
83 | </xsl: when> | 83 | </xsl: when> | |||
84 | 84 | |||||
85 | <xsl:o therwise> | 85 | <xsl:o therwise> | |||
86 | <xsl: text> : </ xsl:text> | 86 | <xsl: text> : </ xsl:text> | |||
87 | </xsl: otherwise> | 87 | </xsl: otherwise> | |||
88 | </xsl:c hoose> | 88 | </xsl:c hoose> | |||
89 | </xsl:fo r-each> | 89 | </xsl:fo r-each> | |||
90 | 90 | |||||
91 | <!-- Emi t entry -- > | 91 | <!-- Emi t entry -- > | |||
92 | <!-- -- > | 92 | <!-- -- > | |||
93 | <xsl:cal l-template name="Bre adcrumbEnt ry"> | 93 | <xsl:cal l-template name="Bre adcrumbEnt ry"> | |||
94 | <xsl:wi th-param n ame="Param TOCEntry" select="$P aramBreadc rumbTOCEnt ry" /> | 94 | <xsl:wi th-param n ame="Param TOCEntry" select="$P aramBreadc rumbTOCEnt ry" /> | |||
95 | </xsl:ca ll-templat e> | 95 | </xsl:ca ll-templat e> | |||
96 | </xsl:tem plate> | 96 | </xsl:tem plate> | |||
97 | 97 | |||||
98 | 98 | |||||
99 | <xsl:temp late name= "Breadcrum bEntry"> | 99 | <xsl:temp late name= "Breadcrum bEntry"> | |||
100 | <xsl:par am name="P aramTOCEnt ry" /> | 100 | <xsl:par am name="P aramTOCEnt ry" /> | |||
101 | 101 | |||||
102 | <xsl:for -each sele ct="$Param TOCEntry/w wdoc:Parag raph/wwdoc :Number/ww doc:Text | $ParamTOC Entry/wwdo c:Paragrap h/wwdoc:Te xtRun/wwdo c:Text"> | 102 | <xsl:for -each sele ct="$Param TOCEntry/w wdoc:Parag raph/wwdoc :Number/ww doc:Text | $ParamTOC Entry/wwdo c:Paragrap h/wwdoc:Te xtRun/wwdo c:Text"> | |||
103 | <xsl:va riable nam e="VarText " select=" ." /> | 103 | <xsl:va riable nam e="VarText " select=" ." /> | |||
104 | 104 | |||||
105 | <xsl:va lue-of sel ect="$VarT ext/@value " /> | 105 | <xsl:va lue-of sel ect="$VarT ext/@value " /> | |||
106 | </xsl:fo r-each> | 106 | </xsl:fo r-each> | |||
107 | </xsl:tem plate> | 107 | </xsl:tem plate> | |||
108 | 108 | |||||
109 | 109 | |||||
110 | <xsl:temp late name= "Content-C ontent"> | 110 | <xsl:temp late name= "Content-C ontent"> | |||
111 | <xsl:par am name="P aramConten t" /> | 111 | <xsl:par am name="P aramConten t" /> | |||
112 | <xsl:par am name="P aramSplits " /> | 112 | <xsl:par am name="P aramSplits " /> | |||
113 | <xsl:par am name="P aramCargo" /> | 113 | <xsl:par am name="P aramCargo" /> | |||
114 | <xsl:par am name="P aramLinks" /> | 114 | <xsl:par am name="P aramLinks" /> | |||
115 | <xsl:par am name="P aramTOCDat a" /> | 115 | <xsl:par am name="P aramTOCDat a" /> | |||
116 | <xsl:par am name="P aramSplit" /> | 116 | <xsl:par am name="P aramSplit" /> | |||
117 | 117 | |||||
118 | <!-- Con tent --> | 118 | <!-- Con tent --> | |||
119 | <!-- --> | 119 | <!-- --> | |||
120 | <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> | 120 | <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> | |||
121 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 121 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
122 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | 122 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | |||
123 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 123 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
124 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | 124 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | |||
125 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 125 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
126 | </xsl:ap ply-templa tes> | 126 | </xsl:ap ply-templa tes> | |||
127 | 127 | |||||
128 | <!-- Rel ated Topic s --> | 128 | <!-- Rel ated Topic s --> | |||
129 | <!-- --> | 129 | <!-- --> | |||
130 | <xsl:cal l-template name="Rel atedTopics "> | 130 | <xsl:cal l-template name="Rel atedTopics "> | |||
131 | <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> | 131 | <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> | |||
132 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 132 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
133 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | 133 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | |||
134 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 134 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
135 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 135 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
136 | </xsl:ca ll-templat e> | 136 | </xsl:ca ll-templat e> | |||
137 | </xsl:tem plate> | 137 | </xsl:tem plate> | |||
138 | 138 | |||||
139 | 139 | |||||
140 | <xsl:temp late name= "RelatedTo pics"> | 140 | <xsl:temp late name= "RelatedTo pics"> | |||
141 | <xsl:par am name="P aramConten t" /> | 141 | <xsl:par am name="P aramConten t" /> | |||
142 | <xsl:par am name="P aramSplits " /> | 142 | <xsl:par am name="P aramSplits " /> | |||
143 | <xsl:par am name="P aramCargo" /> | 143 | <xsl:par am name="P aramCargo" /> | |||
144 | <xsl:par am name="P aramLinks" /> | 144 | <xsl:par am name="P aramLinks" /> | |||
145 | <xsl:par am name="P aramSplit" /> | 145 | <xsl:par am name="P aramSplit" /> | |||
146 | 146 | |||||
147 | <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> | 147 | <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> | |||
148 | <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> | 148 | <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> | |||
149 | <xsl:w ith-param name="Para mContent" select="$P aramConten t" /> | 149 | <xsl:w ith-param name="Para mContent" select="$P aramConten t" /> | |||
150 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 150 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
151 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 151 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
152 | </xsl:c all-templa te> | 152 | </xsl:c all-templa te> | |||
153 | </xsl:va riable> | 153 | </xsl:va riable> | |||
154 | <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> | 154 | <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> | |||
155 | 155 | |||||
156 | <xsl:if test="coun t($VarRela tedTopicPa ragraphs) > 0"> | 156 | <xsl:if test="coun t($VarRela tedTopicPa ragraphs) > 0"> | |||
157 | <html:p > | 157 | <html:p > | |||
158 | <html: object id= "candomble " type="ap plication/ x-oleobjec t" classid ="clsid:ad b880a6-d8f f-11cf-937 7-00aa003b 7a11" code base="Hhct rl.ocx#Ver sion=4\,72 \,8252\,0" width="10 0" height= "100"> | 158 | <html: object id= "candomble " type="ap plication/ x-oleobjec t" classid ="clsid:ad b880a6-d8f f-11cf-937 7-00aa003b 7a11" code base="Hhct rl.ocx#Ver sion=4\,72 \,8252\,0" width="10 0" height= "100"> | |||
159 | <html :param nam e="Command " value="R elated Top ics\, MENU " /> | 159 | <html :param nam e="Command " value="R elated Top ics\, MENU " /> | |||
160 | <html :param nam e="Button" value="{c oncat('Tex t:', $Glob alLocale/w wlocale:Lo cale/wwloc ale:String s/wwlocale :String[@n ame = 'Rel atedTopics ']/@value) }" /> | 160 | <html :param nam e="Button" value="{c oncat('Tex t:', $Glob alLocale/w wlocale:Lo cale/wwloc ale:String s/wwlocale :String[@n ame = 'Rel atedTopics ']/@value) }" /> | |||
161 | 161 | |||||
162 | <xsl: for-each s elect="$Va rRelatedTo picParagra phs"> | 162 | <xsl: for-each s elect="$Va rRelatedTo picParagra phs"> | |||
163 | <xsl :variable name="VarR elatedTopi cParagraph " select=" ." /> | 163 | <xsl :variable name="VarR elatedTopi cParagraph " select=" ." /> | |||
164 | 164 | |||||
165 | <xsl :variable name="VarE ntryValue" > | 165 | <xsl :variable name="VarE ntryValue" > | |||
166 | <xs l:for-each select="$ VarRelated TopicParag raph/wwdoc :TextRun/w wdoc:Text" > | 166 | <xs l:for-each select="$ VarRelated TopicParag raph/wwdoc :TextRun/w wdoc:Text" > | |||
167 | <x sl:value-o f select=" @value" /> | 167 | <x sl:value-o f select=" @value" /> | |||
168 | </x sl:for-eac h> | 168 | </x sl:for-eac h> | |||
169 | </xs l:variable > | 169 | </xs l:variable > | |||
170 | 170 | |||||
171 | <xsl :variable name="VarL inkInfoAsX ML"> | 171 | <xsl :variable name="VarL inkInfoAsX ML"> | |||
172 | <xs l:call-tem plate name ="LinkInfo "> | 172 | <xs l:call-tem plate name ="LinkInfo "> | |||
173 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 173 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
174 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 174 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
175 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 175 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
176 | <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" /> | 176 | <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" /> | |||
177 | </x sl:call-te mplate> | 177 | </x sl:call-te mplate> | |||
178 | </xs l:variable > | 178 | </xs l:variable > | |||
179 | <xsl :variable name="VarL inkInfo" s elect="msx sl:node-se t($VarLink InfoAsXML) /wwlinks:L inkInfo" / > | 179 | <xsl :variable name="VarL inkInfo" s elect="msx sl:node-se t($VarLink InfoAsXML) /wwlinks:L inkInfo" / > | |||
180 | 180 | |||||
181 | <htm l:param na me="{conca t('Item', position() )}" value= "{concat($ VarEntryVa lue, ';', $VarLinkIn fo/@href, ';', $VarL inkInfo/@h ref)}" /> | 181 | <htm l:param na me="{conca t('Item', position() )}" value= "{concat($ VarEntryVa lue, ';', $VarLinkIn fo/@href, ';', $VarL inkInfo/@h ref)}" /> | |||
182 | </xsl :for-each> | 182 | </xsl :for-each> | |||
183 | </html :object> | 183 | </html :object> | |||
184 | </html: p> | 184 | </html: p> | |||
185 | </xsl:if > | 185 | </xsl:if > | |||
186 | </xsl:tem plate> | 186 | </xsl:tem plate> | |||
187 | 187 | |||||
188 | 188 | |||||
189 | <xsl:temp late name= "RelatedTo picParagra phs"> | 189 | <xsl:temp late name= "RelatedTo picParagra phs"> | |||
190 | <xsl:par am name="P aramConten t" /> | 190 | <xsl:par am name="P aramConten t" /> | |||
191 | <xsl:par am name="P aramCargo" /> | 191 | <xsl:par am name="P aramCargo" /> | |||
192 | <xsl:par am name="P aramSplit" /> | 192 | <xsl:par am name="P aramSplit" /> | |||
193 | 193 | |||||
194 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | 194 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | |||
195 | <xsl:va riable nam e="VarRela tedTopicBe haviorPara graphs" se lect="key( 'wwbehavio rs-paragra phs-by-rel atedtopic' , 'define' ) | key('w wbehaviors -paragraph s-by-relat edtopic', 'define-no -output')" /> | 195 | <xsl:va riable nam e="VarRela tedTopicBe haviorPara graphs" se lect="key( 'wwbehavio rs-paragra phs-by-rel atedtopic' , 'define' ) | key('w wbehaviors -paragraph s-by-relat edtopic', 'define-no -output')" /> | |||
196 | 196 | |||||
197 | <xsl:fo r-each sel ect="$VarR elatedTopi cBehaviorP aragraphs[ (@document position & gt;= $Para mSplit/@do cumentstar tposition) and (@doc umentposit ion <= $ParamSpli t/@documen tendpositi on)]"> | 197 | <xsl:fo r-each sel ect="$VarR elatedTopi cBehaviorP aragraphs[ (@document position & gt;= $Para mSplit/@do cumentstar tposition) and (@doc umentposit ion <= $ParamSpli t/@documen tendpositi on)]"> | |||
198 | <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> | 198 | <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> | |||
199 | 199 | |||||
200 | <xsl:f or-each se lect="$Par amContent[ 1]"> | 200 | <xsl:f or-each se lect="$Par amContent[ 1]"> | |||
201 | <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> | 201 | <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> | |||
202 | <xsl :variable name="VarP aragraph" select="." /> | 202 | <xsl :variable name="VarP aragraph" select="." /> | |||
203 | 203 | |||||
204 | <!-- Paragraph has link? --> | 204 | <!-- Paragraph has link? --> | |||
205 | <!-- --> | 205 | <!-- --> | |||
206 | <xsl :variable name="VarC hildLinks" select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> | 206 | <xsl :variable name="VarC hildLinks" select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> | |||
207 | <xsl :variable name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> | 207 | <xsl :variable name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> | |||
208 | <xsl :if test=" $VarChildL inksCount > 0"> | 208 | <xsl :if test=" $VarChildL inksCount > 0"> | |||
209 | <!- - Emit par agraph --> | 209 | <!- - Emit par agraph --> | |||
210 | <!- - --> | 210 | <!- - --> | |||
211 | <ww doc:Paragr aph> | 211 | <ww doc:Paragr aph> | |||
212 | <x sl:copy-of select="$ VarParagra ph/@*" /> | 212 | <x sl:copy-of select="$ VarParagra ph/@*" /> | |||
213 | 213 | |||||
214 | <! -- Insure link is de fined --> | 214 | <! -- Insure link is de fined --> | |||
215 | <! -- --> | 215 | <! -- --> | |||
216 | <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> | 216 | <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> | |||
217 | < xsl:copy-o f select=" $VarChildL inks[1]" / > | 217 | < xsl:copy-o f select=" $VarChildL inks[1]" / > | |||
218 | </ xsl:if> | 218 | </ xsl:if> | |||
219 | 219 | |||||
220 | <x sl:copy-of select="$ VarParagra ph/*" /> | 220 | <x sl:copy-of select="$ VarParagra ph/*" /> | |||
221 | </w wdoc:Parag raph> | 221 | </w wdoc:Parag raph> | |||
222 | </xs l:if> | 222 | </xs l:if> | |||
223 | </xsl :for-each> | 223 | </xsl :for-each> | |||
224 | </xsl: for-each> | 224 | </xsl: for-each> | |||
225 | </xsl:f or-each> | 225 | </xsl:f or-each> | |||
226 | </xsl:fo r-each> | 226 | </xsl:fo r-each> | |||
227 | </xsl:tem plate> | 227 | </xsl:tem plate> | |||
228 | 228 | |||||
229 | 229 | |||||
230 | <xsl:temp late name= "Content-N otes"> | 230 | <xsl:temp late name= "Content-N otes"> | |||
231 | <xsl:par am name="P aramNotes" /> | 231 | <xsl:par am name="P aramNotes" /> | |||
232 | <xsl:par am name="P aramSplits " /> | 232 | <xsl:par am name="P aramSplits " /> | |||
233 | <xsl:par am name="P aramCargo" /> | 233 | <xsl:par am name="P aramCargo" /> | |||
234 | <xsl:par am name="P aramLinks" /> | 234 | <xsl:par am name="P aramLinks" /> | |||
235 | <xsl:par am name="P aramTOCDat a" /> | 235 | <xsl:par am name="P aramTOCDat a" /> | |||
236 | <xsl:par am name="P aramSplit" /> | 236 | <xsl:par am name="P aramSplit" /> | |||
237 | 237 | |||||
238 | <xsl:if test="coun t($ParamNo tes[1]) = 1"> | 238 | <xsl:if test="coun t($ParamNo tes[1]) = 1"> | |||
239 | <html:h r /> | 239 | <html:h r /> | |||
240 | <xsl:fo r-each sel ect="$Para mNotes"> | 240 | <xsl:fo r-each sel ect="$Para mNotes"> | |||
241 | <xsl:v ariable na me="VarNot e" select= "." /> | 241 | <xsl:v ariable na me="VarNot e" select= "." /> | |||
242 | 242 | |||||
243 | <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id = $VarNote/@ id]/@numbe r" /> | 243 | <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id = $VarNote/@ id]/@numbe r" /> | |||
244 | 244 | |||||
245 | <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> | 245 | <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> | |||
246 | <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right: 10px;"> | 246 | <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right: 10px;"> | |||
247 | <htm l:a name=" {$VarNote/ @id}"> | 247 | <htm l:a name=" {$VarNote/ @id}"> | |||
248 | <xs l:attribut e name="hr ef"> | 248 | <xs l:attribut e name="hr ef"> | |||
249 | <x sl:text>#w wfootnote_ inline_</x sl:text> | 249 | <x sl:text>#w wfootnote_ inline_</x sl:text> | |||
250 | <x sl:value-o f select=" $VarNote/@ id" /> | 250 | <x sl:value-o f select=" $VarNote/@ id" /> | |||
251 | </x sl:attribu te> | 251 | </x sl:attribu te> | |||
252 | 252 | |||||
253 | <xs l:value-of select="$ VarNoteNum ber"/> | 253 | <xs l:value-of select="$ VarNoteNum ber"/> | |||
254 | </ht ml:a> | 254 | </ht ml:a> | |||
255 | </htm l:div> | 255 | </htm l:div> | |||
256 | 256 | |||||
257 | <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> | 257 | <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> | |||
258 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 258 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
259 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 259 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
260 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 260 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
261 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | 261 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | |||
262 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 262 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
263 | </xsl :apply-tem plates> | 263 | </xsl :apply-tem plates> | |||
264 | <html :br style= "clear: al l;" /> | 264 | <html :br style= "clear: al l;" /> | |||
265 | </xsl: if> | 265 | </xsl: if> | |||
266 | </xsl:f or-each> | 266 | </xsl:f or-each> | |||
267 | </xsl:if > | 267 | </xsl:if > | |||
268 | </xsl:tem plate> | 268 | </xsl:tem plate> | |||
269 | 269 | |||||
270 | 270 | |||||
271 | <xsl:temp late name= "Content-B ullet"> | 271 | <xsl:temp late name= "Content-B ullet"> | |||
272 | <xsl:par am name="P aramSplits " /> | 272 | <xsl:par am name="P aramSplits " /> | |||
273 | <xsl:par am name="P aramSplit" /> | 273 | <xsl:par am name="P aramSplit" /> | |||
274 | <xsl:par am name="P aramParagr aph" /> | 274 | <xsl:par am name="P aramParagr aph" /> | |||
275 | <xsl:par am name="P aramCharac ter" /> | 275 | <xsl:par am name="P aramCharac ter" /> | |||
276 | <xsl:par am name="P aramImage" /> | 276 | <xsl:par am name="P aramImage" /> | |||
277 | <xsl:par am name="P aramSepara tor" /> | 277 | <xsl:par am name="P aramSepara tor" /> | |||
278 | <xsl:par am name="P aramStyle" /> | 278 | <xsl:par am name="P aramStyle" /> | |||
279 | 279 | |||||
280 | <xsl:cho ose> | 280 | <xsl:cho ose> | |||
281 | <xsl:wh en test="s tring-leng th($ParamS tyle) > 0"> | 281 | <xsl:wh en test="s tring-leng th($ParamS tyle) > 0"> | |||
282 | 282 | |||||
283 | <!-- G et rule -- > | 283 | <!-- G et rule -- > | |||
284 | <!-- -- > | 284 | <!-- -- > | |||
285 | <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> | 285 | <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> | |||
286 | 286 | |||||
287 | <!-- R esolve pro ject prope rties --> | 287 | <!-- R esolve pro ject prope rties --> | |||
288 | <!-- --> | 288 | <!-- --> | |||
289 | <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> | 289 | <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> | |||
290 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | 290 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | |||
291 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramParagr aph" /> | 291 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramParagr aph" /> | |||
292 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> | 292 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> | |||
293 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> | 293 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> | |||
294 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> | 294 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> | |||
295 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style" /> | 295 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style" /> | |||
296 | </xsl :call-temp late> | 296 | </xsl :call-temp late> | |||
297 | </xsl: variable> | 297 | </xsl: variable> | |||
298 | <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | 298 | <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | |||
299 | 299 | |||||
300 | <!-- C SS propert ies --> | 300 | <!-- C SS propert ies --> | |||
301 | <!-- --> | 301 | <!-- --> | |||
302 | <xsl:v ariable na me="VarCSS Properties AsXML"> | 302 | <xsl:v ariable na me="VarCSS Properties AsXML"> | |||
303 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | 303 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | |||
304 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> | 304 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> | |||
305 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | 305 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | |||
306 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 306 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
307 | </xsl :call-temp late> | 307 | </xsl :call-temp late> | |||
308 | </xsl: variable> | 308 | </xsl: variable> | |||
309 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | 309 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | |||
310 | 310 | |||||
311 | <!-- S tyle attri bute --> | 311 | <!-- S tyle attri bute --> | |||
312 | <!-- --> | 312 | <!-- --> | |||
313 | <xsl:v ariable na me="VarSty leAttribut e"> | 313 | <xsl:v ariable na me="VarSty leAttribut e"> | |||
314 | <xsl: call-templ ate name=" CSS-Inline Properties "> | 314 | <xsl: call-templ ate name=" CSS-Inline Properties "> | |||
315 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> | 315 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> | |||
316 | </xsl :call-temp late> | 316 | </xsl :call-temp late> | |||
317 | </xsl: variable> | 317 | </xsl: variable> | |||
318 | 318 | |||||
319 | <xsl:v ariable na me="VarTag Property" select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value" /> | 319 | <xsl:v ariable na me="VarTag Property" select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value" /> | |||
320 | <xsl:v ariable na me="VarTag "> | 320 | <xsl:v ariable na me="VarTag "> | |||
321 | <xsl: choose> | 321 | <xsl: choose> | |||
322 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | 322 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | |||
323 | <xs l:value-of select="$ VarTagProp erty" /> | 323 | <xs l:value-of select="$ VarTagProp erty" /> | |||
324 | </xs l:when> | 324 | </xs l:when> | |||
325 | 325 | |||||
326 | <xsl :otherwise > | 326 | <xsl :otherwise > | |||
327 | <xs l:value-of select="' span'" /> | 327 | <xs l:value-of select="' span'" /> | |||
328 | </xs l:otherwis e> | 328 | </xs l:otherwis e> | |||
329 | </xsl :choose> | 329 | </xsl :choose> | |||
330 | </xsl: variable> | 330 | </xsl: variable> | |||
331 | 331 | |||||
332 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | 332 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | |||
333 | <!-- Style attr ibute --> | 333 | <!-- Style attr ibute --> | |||
334 | <!-- --> | 334 | <!-- --> | |||
335 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | 335 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | |||
336 | <xsl :attribute name="sty le"> | 336 | <xsl :attribute name="sty le"> | |||
337 | <xs l:value-of select="$ VarStyleAt tribute" / > | 337 | <xs l:value-of select="$ VarStyleAt tribute" / > | |||
338 | </xs l:attribut e> | 338 | </xs l:attribut e> | |||
339 | </xsl :if> | 339 | </xsl :if> | |||
340 | 340 | |||||
341 | <xsl: if test="s tring-leng th($ParamI mage) > 0"> | 341 | <xsl: if test="s tring-leng th($ParamI mage) > 0"> | |||
342 | <!-- Get absol ute path f or imaging info --> | 342 | <!-- Get absol ute path f or imaging info --> | |||
343 | <!-- --> | 343 | <!-- --> | |||
344 | <xsl :variable name="VarI mageFileSy stemPath" select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(), wwprojext :GetGroupN ame($Param Split/@gro upID), $Pa ramImage)" /> | 344 | <xsl :variable name="VarI mageFileSy stemPath" select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(), wwprojext :GetGroupN ame($Param Split/@gro upID), $Pa ramImage)" /> | |||
345 | <xsl :variable name="VarI mageInfo" select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> | 345 | <xsl :variable name="VarI mageInfo" select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> | |||
346 | 346 | |||||
347 | <xsl :variable name="VarI magePath"> | 347 | <xsl :variable name="VarI magePath"> | |||
348 | <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> | 348 | <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> | |||
349 | <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > | 349 | <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > | |||
350 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 350 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
351 | <x sl:with-pa ram name=" ParamURI" select="$P aramImage" /> | 351 | <x sl:with-pa ram name=" ParamURI" select="$P aramImage" /> | |||
352 | </x sl:call-te mplate> | 352 | </x sl:call-te mplate> | |||
353 | </xs l:variable > | 353 | </xs l:variable > | |||
354 | 354 | |||||
355 | <!-- Image --> | 355 | <!-- Image --> | |||
356 | <!-- --> | 356 | <!-- --> | |||
357 | <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}" /> | 357 | <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}" /> | |||
358 | </xsl :if> | 358 | </xsl :if> | |||
359 | 359 | |||||
360 | <!-- Characters --> | 360 | <!-- Characters --> | |||
361 | <!-- --> | 361 | <!-- --> | |||
362 | <xsl: value-of s elect="$Pa ramCharact er" /> | 362 | <xsl: value-of s elect="$Pa ramCharact er" /> | |||
363 | 363 | |||||
364 | <!-- Separator --> | 364 | <!-- Separator --> | |||
365 | <!-- --> | 365 | <!-- --> | |||
366 | <xsl: value-of s elect="$Pa ramSeparat or" /> | 366 | <xsl: value-of s elect="$Pa ramSeparat or" /> | |||
367 | </xsl: element> | 367 | </xsl: element> | |||
368 | </xsl:w hen> | 368 | </xsl:w hen> | |||
369 | 369 | |||||
370 | <xsl:ot herwise> | 370 | <xsl:ot herwise> | |||
371 | <xsl:i f test="st ring-lengt h($ParamIm age) > 0"> | 371 | <xsl:i f test="st ring-lengt h($ParamIm age) > 0"> | |||
372 | <!-- Get absolu te path fo r imaging info --> | 372 | <!-- Get absolu te path fo r imaging info --> | |||
373 | <!-- --> | 373 | <!-- --> | |||
374 | <xsl: variable n ame="VarIm ageFileSys temPath" s elect="wwf ilesystem: Combine(ww projext:Ge tTargetOut putDirecto ryPath(), wwprojext: GetGroupNa me($ParamS plit/@grou pID), $Par amImage)" /> | 374 | <xsl: variable n ame="VarIm ageFileSys temPath" s elect="wwf ilesystem: Combine(ww projext:Ge tTargetOut putDirecto ryPath(), wwprojext: GetGroupNa me($ParamS plit/@grou pID), $Par amImage)" /> | |||
375 | <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)" /> | 375 | <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)" /> | |||
376 | 376 | |||||
377 | <xsl: variable n ame="VarIm agePath"> | 377 | <xsl: variable n ame="VarIm agePath"> | |||
378 | <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> | 378 | <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> | |||
379 | <xs l:with-par am name="P aramFromAb soluteURI" select="$ ParamSplit /@path" /> | 379 | <xs l:with-par am name="P aramFromAb soluteURI" select="$ ParamSplit /@path" /> | |||
380 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 380 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
381 | <xs l:with-par am name="P aramURI" s elect="$Pa ramImage" /> | 381 | <xs l:with-par am name="P aramURI" s elect="$Pa ramImage" /> | |||
382 | </xs l:call-tem plate> | 382 | </xs l:call-tem plate> | |||
383 | </xsl :variable> | 383 | </xsl :variable> | |||
384 | 384 | |||||
385 | <!-- Image --> | 385 | <!-- Image --> | |||
386 | <!-- --> | 386 | <!-- --> | |||
387 | <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}" /> | 387 | <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}" /> | |||
388 | </xsl: if> | 388 | </xsl: if> | |||
389 | 389 | |||||
390 | <!-- C haracters --> | 390 | <!-- C haracters --> | |||
391 | <!-- --> | 391 | <!-- --> | |||
392 | <xsl:v alue-of se lect="$Par amCharacte r" /> | 392 | <xsl:v alue-of se lect="$Par amCharacte r" /> | |||
393 | 393 | |||||
394 | <!-- S eparator - -> | 394 | <!-- S eparator - -> | |||
395 | <!-- - -> | 395 | <!-- - -> | |||
396 | <xsl:v alue-of se lect="$Par amSeparato r" /> | 396 | <xsl:v alue-of se lect="$Par amSeparato r" /> | |||
397 | </xsl:o therwise> | 397 | </xsl:o therwise> | |||
398 | </xsl:ch oose> | 398 | </xsl:ch oose> | |||
399 | </xsl:tem plate> | 399 | </xsl:tem plate> | |||
400 | 400 | |||||
401 | 401 | |||||
402 | <xsl:temp late name= "Notes-Num ber"> | 402 | <xsl:temp late name= "Notes-Num ber"> | |||
403 | <xsl:par am name="P aramNotes" /> | 403 | <xsl:par am name="P aramNotes" /> | |||
404 | 404 | |||||
405 | <wwnotes :NoteNumbe ring versi on="1.0"> | 405 | <wwnotes :NoteNumbe ring versi on="1.0"> | |||
406 | <xsl:fo r-each sel ect="$Para mNotes"> | 406 | <xsl:fo r-each sel ect="$Para mNotes"> | |||
407 | <xsl:v ariable na me="VarNot e" select= "." /> | 407 | <xsl:v ariable na me="VarNot e" select= "." /> | |||
408 | 408 | |||||
409 | <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}" /> | 409 | <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}" /> | |||
410 | </xsl:f or-each> | 410 | </xsl:f or-each> | |||
411 | </wwnote s:NoteNumb ering> | 411 | </wwnote s:NoteNumb ering> | |||
412 | </xsl:tem plate> | 412 | </xsl:tem plate> | |||
413 | 413 | |||||
414 | 414 | |||||
415 | <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > | 415 | <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > | |||
416 | <xsl:par am name="P aramSplits " /> | 416 | <xsl:par am name="P aramSplits " /> | |||
417 | <xsl:par am name="P aramCargo" /> | 417 | <xsl:par am name="P aramCargo" /> | |||
418 | <xsl:par am name="P aramLinks" /> | 418 | <xsl:par am name="P aramLinks" /> | |||
419 | <xsl:par am name="P aramTOCDat a" /> | 419 | <xsl:par am name="P aramTOCDat a" /> | |||
420 | <xsl:par am name="P aramSplit" /> | 420 | <xsl:par am name="P aramSplit" /> | |||
421 | 421 | |||||
422 | <xsl:var iable name ="VarParag raph" sele ct="." /> | 422 | <xsl:var iable name ="VarParag raph" sele ct="." /> | |||
423 | 423 | |||||
424 | <!-- Abo rted? --> | 424 | <!-- Abo rted? --> | |||
425 | <!-- --> | 425 | <!-- --> | |||
426 | <xsl:if test="not( wwprogress :Abort())" > | 426 | <xsl:if test="not( wwprogress :Abort())" > | |||
427 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamS plit/@docu mentID, $V arParagrap h/@id)" /> | 427 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamS plit/@docu mentID, $V arParagrap h/@id)" /> | |||
428 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" /> | 428 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" /> | |||
429 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | 429 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | |||
430 | <xsl:if test="$Va rGenerateO utput"> | 430 | <xsl:if test="$Va rGenerateO utput"> | |||
431 | <!-- R elated Top ic Only or Popup Onl y? --> | 431 | <!-- R elated Top ic Only or Popup Onl y? --> | |||
432 | <!-- --> | 432 | <!-- --> | |||
433 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | 433 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | |||
434 | <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id', $VarParag raph/@id)[ 1]" /> | 434 | <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id', $VarParag raph/@id)[ 1]" /> | |||
435 | <xsl: variable n ame="VarIn PopupPage" select="c ount($Para mCargo/wwb ehaviors:P opupPage) > 0" /> | 435 | <xsl: variable n ame="VarIn PopupPage" select="c ount($Para mCargo/wwb ehaviors:P opupPage) > 0" /> | |||
436 | <xsl: variable n ame="VarPo pupOnly" s elect="($V arParagrap hBehavior/ @popup = ' define-no- output') o r ($VarPar agraphBeha vior/@popu p = 'appen d-no-outpu t')" /> | 436 | <xsl: variable n ame="VarPo pupOnly" s elect="($V arParagrap hBehavior/ @popup = ' define-no- output') o r ($VarPar agraphBeha vior/@popu p = 'appen d-no-outpu t')" /> | |||
437 | <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic = 'define- no-output' " /> | 437 | <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic = 'define- no-output' " /> | |||
438 | 438 | |||||
439 | <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> | 439 | <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> | |||
440 | <!-- Paragraph --> | 440 | <!-- Paragraph --> | |||
441 | <!-- --> | 441 | <!-- --> | |||
442 | <xsl :call-temp late name= "Paragraph "> | 442 | <xsl :call-temp late name= "Paragraph "> | |||
443 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 443 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
444 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | 444 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | |||
445 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 445 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
446 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 446 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
447 | <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> | 447 | <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> | |||
448 | <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > | 448 | <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > | |||
449 | <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> | 449 | <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> | |||
450 | <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> | 450 | <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> | |||
451 | </xs l:call-tem plate> | 451 | </xs l:call-tem plate> | |||
452 | 452 | |||||
453 | <!-- MiniTOC - -> | 453 | <!-- MiniTOC - -> | |||
454 | <!-- - -> | 454 | <!-- - -> | |||
455 | <xsl :if test=" not($VarIn PopupPage) "> | 455 | <xsl :if test=" not($VarIn PopupPage) "> | |||
456 | <xs l:variable name="Var MiniTOCSub Levels" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'min itoc-suble vels']/@Va lue" /> | 456 | <xs l:variable name="Var MiniTOCSub Levels" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'min itoc-suble vels']/@Va lue" /> | |||
457 | <xs l:variable name="Var MiniTOCSub LevelsNume ricPrefix" select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> | 457 | <xs l:variable name="Var MiniTOCSub LevelsNume ricPrefix" select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> | |||
458 | <xs l:variable name="Var MiniTOCSub LevelsGrea terThanZer o" select= "(string-l ength($Var MiniTOCSub LevelsNume ricPrefix) > 0) a nd (number ($VarMiniT OCSubLevel sNumericPr efix) > 0)" /> | 458 | <xs l:variable name="Var MiniTOCSub LevelsGrea terThanZer o" select= "(string-l ength($Var MiniTOCSub LevelsNume ricPrefix) > 0) a nd (number ($VarMiniT OCSubLevel sNumericPr efix) > 0)" /> | |||
459 | <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> | 459 | <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> | |||
460 | <x sl:for-eac h select=" $ParamTOCD ata[1]"> | 460 | <x sl:for-eac h select=" $ParamTOCD ata[1]"> | |||
461 | < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> | 461 | < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> | |||
462 | < xsl:for-ea ch select= "$VarTOCEn try[1]"> | 462 | < xsl:for-ea ch select= "$VarTOCEn try[1]"> | |||
463 | <xsl:call- template n ame="MiniT OC"> | 463 | <xsl:call- template n ame="MiniT OC"> | |||
464 | <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> | 464 | <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> | |||
465 | <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> | 465 | <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> | |||
466 | <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > | 466 | <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > | |||
467 | <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> | 467 | <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> | |||
468 | </xsl:call -template> | 468 | </xsl:call -template> | |||
469 | < /xsl:for-e ach> | 469 | < /xsl:for-e ach> | |||
470 | </ xsl:for-ea ch> | 470 | </ xsl:for-ea ch> | |||
471 | </x sl:if> | 471 | </x sl:if> | |||
472 | </xs l:if> | 472 | </xs l:if> | |||
473 | </xsl :if> | 473 | </xsl :if> | |||
474 | </xsl: for-each> | 474 | </xsl: for-each> | |||
475 | </xsl:i f> | 475 | </xsl:i f> | |||
476 | </xsl:if > | 476 | </xsl:if > | |||
477 | </xsl:tem plate> | 477 | </xsl:tem plate> | |||
478 | 478 | |||||
479 | 479 | |||||
480 | <xsl:temp late name= "MiniTOC"> | 480 | <xsl:temp late name= "MiniTOC"> | |||
481 | <xsl:par am name="P aramSplit" /> | 481 | <xsl:par am name="P aramSplit" /> | |||
482 | <xsl:par am name="P aramTOCEnt ry" /> | 482 | <xsl:par am name="P aramTOCEnt ry" /> | |||
483 | <xsl:par am name="P aramEmitTO CEntry" /> | 483 | <xsl:par am name="P aramEmitTO CEntry" /> | |||
484 | <xsl:par am name="P aramMiniTO CSubLevels " /> | 484 | <xsl:par am name="P aramMiniTO CSubLevels " /> | |||
485 | 485 | |||||
486 | <xsl:if test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> | 486 | <xsl:if test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> | |||
487 | <html:d iv class=" WebWorks_M iniTOC"> | 487 | <html:d iv class=" WebWorks_M iniTOC"> | |||
488 | <!-- E mit top-le vel entry? --> | 488 | <!-- E mit top-le vel entry? --> | |||
489 | <!-- --> | 489 | <!-- --> | |||
490 | <xsl:c hoose> | 490 | <xsl:c hoose> | |||
491 | <xsl: when test= "$ParamEmi tTOCEntry = true()"> | 491 | <xsl: when test= "$ParamEmi tTOCEntry = true()"> | |||
492 | <htm l:div clas s="WebWork s_MiniTOC_ Level1"> | 492 | <htm l:div clas s="WebWork s_MiniTOC_ Level1"> | |||
493 | <!- - Paragrap h --> | 493 | <!- - Paragrap h --> | |||
494 | <!- - --> | 494 | <!- - --> | |||
495 | <xs l:call-tem plate name ="MiniTOCP aragraph"> | 495 | <xs l:call-tem plate name ="MiniTOCP aragraph"> | |||
496 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" /> | 496 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" /> | |||
497 | </x sl:call-te mplate> | 497 | </x sl:call-te mplate> | |||
498 | </ht ml:div> | 498 | </ht ml:div> | |||
499 | 499 | |||||
500 | <!-- Children --> | 500 | <!-- Children --> | |||
501 | <!-- --> | 501 | <!-- --> | |||
502 | <xsl :call-temp late name= "MiniTOCEn tries"> | 502 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
503 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> | 503 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> | |||
504 | <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> | 504 | <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> | |||
505 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | 505 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | |||
506 | <xs l:with-par am name="P aramLevel" select="2 " /> | 506 | <xs l:with-par am name="P aramLevel" select="2 " /> | |||
507 | </xs l:call-tem plate> | 507 | </xs l:call-tem plate> | |||
508 | </xsl :when> | 508 | </xsl :when> | |||
509 | 509 | |||||
510 | <xsl: otherwise> | 510 | <xsl: otherwise> | |||
511 | <!-- Children --> | 511 | <!-- Children --> | |||
512 | <!-- --> | 512 | <!-- --> | |||
513 | <xsl :call-temp late name= "MiniTOCEn tries"> | 513 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
514 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> | 514 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> | |||
515 | <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> | 515 | <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> | |||
516 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | 516 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | |||
517 | <xs l:with-par am name="P aramLevel" select="1 " /> | 517 | <xs l:with-par am name="P aramLevel" select="1 " /> | |||
518 | </xs l:call-tem plate> | 518 | </xs l:call-tem plate> | |||
519 | </xsl :otherwise > | 519 | </xsl :otherwise > | |||
520 | </xsl: choose> | 520 | </xsl: choose> | |||
521 | </html: div> | 521 | </html: div> | |||
522 | </xsl:if > | 522 | </xsl:if > | |||
523 | </xsl:tem plate> | 523 | </xsl:tem plate> | |||
524 | 524 | |||||
525 | 525 | |||||
526 | <xsl:temp late name= "MiniTOCEn tries"> | 526 | <xsl:temp late name= "MiniTOCEn tries"> | |||
527 | <xsl:par am name="P aramRefere ncePath" / > | 527 | <xsl:par am name="P aramRefere ncePath" / > | |||
528 | <xsl:par am name="P aramParent " /> | 528 | <xsl:par am name="P aramParent " /> | |||
529 | <xsl:par am name="P aramMiniTO CSubLevels " /> | 529 | <xsl:par am name="P aramMiniTO CSubLevels " /> | |||
530 | <xsl:par am name="P aramLevel" /> | 530 | <xsl:par am name="P aramLevel" /> | |||
531 | 531 | |||||
532 | <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry" /> | 532 | <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry" /> | |||
533 | 533 | |||||
534 | <xsl:for -each sele ct="$VarSu bEntries[1 ]"> | 534 | <xsl:for -each sele ct="$VarSu bEntries[1 ]"> | |||
535 | <xsl:fo r-each sel ect="$VarS ubEntries" > | 535 | <xsl:fo r-each sel ect="$VarS ubEntries" > | |||
536 | <xsl:v ariable na me="VarEnt ry" select ="." /> | 536 | <xsl:v ariable na me="VarEnt ry" select ="." /> | |||
537 | 537 | |||||
538 | <html: div> | 538 | <html: div> | |||
539 | <xsl: attribute name="clas s"> | 539 | <xsl: attribute name="clas s"> | |||
540 | <xsl :text>WebW orks_MiniT OC_Level</ xsl:text> | 540 | <xsl :text>WebW orks_MiniT OC_Level</ xsl:text> | |||
541 | <xsl :value-of select="$P aramLevel" /> | 541 | <xsl :value-of select="$P aramLevel" /> | |||
542 | </xsl :attribute > | 542 | </xsl :attribute > | |||
543 | 543 | |||||
544 | <xsl: choose> | 544 | <xsl: choose> | |||
545 | <xsl :when test ="string-l ength($Var Entry/@pat h) > 0" > | 545 | <xsl :when test ="string-l ength($Var Entry/@pat h) > 0" > | |||
546 | <!- - Get link --> | 546 | <!- - Get link --> | |||
547 | <!- - --> | 547 | <!- - --> | |||
548 | <xs l:variable name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> | 548 | <xs l:variable name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> | |||
549 | 549 | |||||
550 | <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> | 550 | <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> | |||
551 | <x sl:call-te mplate nam e="MiniTOC Paragraph" > | 551 | <x sl:call-te mplate nam e="MiniTOC Paragraph" > | |||
552 | < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> | 552 | < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> | |||
553 | </ xsl:call-t emplate> | 553 | </ xsl:call-t emplate> | |||
554 | </h tml:a> | 554 | </h tml:a> | |||
555 | </xs l:when> | 555 | </xs l:when> | |||
556 | 556 | |||||
557 | <xsl :otherwise > | 557 | <xsl :otherwise > | |||
558 | <xs l:call-tem plate name ="MiniTOCP aragraph"> | 558 | <xs l:call-tem plate name ="MiniTOCP aragraph"> | |||
559 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph" /> | 559 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph" /> | |||
560 | </x sl:call-te mplate> | 560 | </x sl:call-te mplate> | |||
561 | </xs l:otherwis e> | 561 | </xs l:otherwis e> | |||
562 | </xsl :choose> | 562 | </xsl :choose> | |||
563 | </html :div> | 563 | </html :div> | |||
564 | 564 | |||||
565 | <!-- R ecurse --> | 565 | <!-- R ecurse --> | |||
566 | <!-- --> | 566 | <!-- --> | |||
567 | <xsl:c hoose> | 567 | <xsl:c hoose> | |||
568 | <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> | 568 | <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> | |||
569 | <xsl :call-temp late name= "MiniTOCEn tries"> | 569 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
570 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | 570 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | |||
571 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | 571 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | |||
572 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | 572 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | |||
573 | <xs l:with-par am name="P aramLevel" select="$ ParamLevel + 1" /> | 573 | <xs l:with-par am name="P aramLevel" select="$ ParamLevel + 1" /> | |||
574 | </xs l:call-tem plate> | 574 | </xs l:call-tem plate> | |||
575 | </xsl :when> | 575 | </xsl :when> | |||
576 | 576 | |||||
577 | <xsl: when test= "($ParamMi niTOCSubLe vels - 1) > 0"> | 577 | <xsl: when test= "($ParamMi niTOCSubLe vels - 1) > 0"> | |||
578 | <xsl :call-temp late name= "MiniTOCEn tries"> | 578 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
579 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | 579 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | |||
580 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | 580 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | |||
581 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> | 581 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> | |||
582 | <xs l:with-par am name="P aramLevel" select="$ ParamLevel + 1" /> | 582 | <xs l:with-par am name="P aramLevel" select="$ ParamLevel + 1" /> | |||
583 | </xs l:call-tem plate> | 583 | </xs l:call-tem plate> | |||
584 | </xsl :when> | 584 | </xsl :when> | |||
585 | </xsl: choose> | 585 | </xsl: choose> | |||
586 | </xsl:f or-each> | 586 | </xsl:f or-each> | |||
587 | </xsl:fo r-each> | 587 | </xsl:fo r-each> | |||
588 | </xsl:tem plate> | 588 | </xsl:tem plate> | |||
589 | 589 | |||||
590 | 590 | |||||
591 | <xsl:temp late name= "MiniTOCPa ragraph"> | 591 | <xsl:temp late name= "MiniTOCPa ragraph"> | |||
592 | <xsl:par am name="P aramParagr aph" /> | 592 | <xsl:par am name="P aramParagr aph" /> | |||
593 | 593 | |||||
594 | <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> | 594 | <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> | |||
595 | <xsl:va lue-of sel ect="@valu e" /> | 595 | <xsl:va lue-of sel ect="@valu e" /> | |||
596 | </xsl:fo r-each> | 596 | </xsl:fo r-each> | |||
597 | </xsl:tem plate> | 597 | </xsl:tem plate> | |||
598 | 598 | |||||
599 | 599 | |||||
600 | <xsl:temp late name= "Paragraph "> | 600 | <xsl:temp late name= "Paragraph "> | |||
601 | <xsl:par am name="P aramSplits " /> | 601 | <xsl:par am name="P aramSplits " /> | |||
602 | <xsl:par am name="P aramCargo" /> | 602 | <xsl:par am name="P aramCargo" /> | |||
603 | <xsl:par am name="P aramLinks" /> | 603 | <xsl:par am name="P aramLinks" /> | |||
604 | <xsl:par am name="P aramSplit" /> | 604 | <xsl:par am name="P aramSplit" /> | |||
605 | <xsl:par am name="P aramParagr aph" /> | 605 | <xsl:par am name="P aramParagr aph" /> | |||
606 | <xsl:par am name="P aramStyleN ame" /> | 606 | <xsl:par am name="P aramStyleN ame" /> | |||
607 | <xsl:par am name="P aramOverri deRule" /> | 607 | <xsl:par am name="P aramOverri deRule" /> | |||
608 | <xsl:par am name="P aramParagr aphBehavio r" /> | 608 | <xsl:par am name="P aramParagr aphBehavio r" /> | |||
609 | 609 | |||||
610 | <!-- Pre serve empt y? --> | 610 | <!-- Pre serve empt y? --> | |||
611 | <!-- --> | 611 | <!-- --> | |||
612 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | 612 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | |||
613 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | 613 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | |||
614 | 614 | |||||
615 | <!-- Non -empty tex t runs --> | 615 | <!-- Non -empty tex t runs --> | |||
616 | <!-- --> | 616 | <!-- --> | |||
617 | <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1] | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) > 0]" /> | 617 | <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1] | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) > 0]" /> | |||
618 | 618 | |||||
619 | <!-- Wha t Is This with no Ou tput --> | 619 | <!-- Wha t Is This with no Ou tput --> | |||
620 | <!-- --> | 620 | <!-- --> | |||
621 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / > | 621 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / > | |||
622 | <xsl:var iable name ="VarWhatI sThisOptio n" select= "$VarConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name = 'whatis-th is']/@Valu e" /> | 622 | <xsl:var iable name ="VarWhatI sThisOptio n" select= "$VarConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name = 'whatis-th is']/@Valu e" /> | |||
623 | 623 | |||||
624 | <!-- Pro cess this paragraph at all? -- > | 624 | <!-- Pro cess this paragraph at all? -- > | |||
625 | <!-- -- > | 625 | <!-- -- > | |||
626 | <xsl:if test="(($V arPreserve Empty) or (count($Va rTextRuns[ 1]) = 1)) and ($VarW hatIsThisO ption != ' define-no- output')"> | 626 | <xsl:if test="(($V arPreserve Empty) or (count($Va rTextRuns[ 1]) = 1)) and ($VarW hatIsThisO ption != ' define-no- output')"> | |||
627 | <!-- Pa ss-through ? --> | 627 | <!-- Pa ss-through ? --> | |||
628 | <!-- --> | 628 | <!-- --> | |||
629 | <xsl:va riable nam e="VarPass Through"> | 629 | <xsl:va riable nam e="VarPass Through"> | |||
630 | <xsl:c all-templa te name="C onditions- PassThroug h"> | 630 | <xsl:c all-templa te name="C onditions- PassThroug h"> | |||
631 | <xsl: with-param name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> | 631 | <xsl: with-param name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> | |||
632 | </xsl: call-templ ate> | 632 | </xsl: call-templ ate> | |||
633 | </xsl:v ariable> | 633 | </xsl:v ariable> | |||
634 | 634 | |||||
635 | <!-- A- Link? --> | 635 | <!-- A- Link? --> | |||
636 | <!-- --> | 636 | <!-- --> | |||
637 | <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" /> | 637 | <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" /> | |||
638 | <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" /> | 638 | <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" /> | |||
639 | 639 | |||||
640 | <xsl:ch oose> | 640 | <xsl:ch oose> | |||
641 | <!-- P ass-throug h --> | 641 | <!-- P ass-throug h --> | |||
642 | <!-- --> | 642 | <!-- --> | |||
643 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | 643 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | |||
644 | <xsl: call-templ ate name=" Paragraph- PassThroug h"> | 644 | <xsl: call-templ ate name=" Paragraph- PassThroug h"> | |||
645 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | 645 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | |||
646 | </xsl :call-temp late> | 646 | </xsl :call-temp late> | |||
647 | </xsl: when> | 647 | </xsl: when> | |||
648 | 648 | |||||
649 | <!-- A -Link arou nd whole p aragraph - -> | 649 | <!-- A -Link arou nd whole p aragraph - -> | |||
650 | <!-- - -> | 650 | <!-- - -> | |||
651 | <xsl:w hen test=" $VarALink" > | 651 | <xsl:w hen test=" $VarALink" > | |||
652 | <!-- Update car go --> | 652 | <!-- Update car go --> | |||
653 | <!-- --> | 653 | <!-- --> | |||
654 | <xsl: variable n ame="VarCa rgoALinkAs XML"> | 654 | <xsl: variable n ame="VarCa rgoALinkAs XML"> | |||
655 | <wwa links:ALin k> | 655 | <wwa links:ALin k> | |||
656 | <xs l:attribut e name="hr ef"> | 656 | <xs l:attribut e name="hr ef"> | |||
657 | <x sl:value-o f select=" concat('ja vascript:W ebWorksSee Also.fOnCl ickLink(&q uot;ALink_ ', transla te($ParamP aragraph/@ id, '-', ' _'), '&quo t;);')" /> | 657 | <x sl:value-o f select=" concat('ja vascript:W ebWorksSee Also.fOnCl ickLink(&q uot;ALink_ ', transla te($ParamP aragraph/@ id, '-', ' _'), '&quo t;);')" /> | |||
658 | </x sl:attribu te> | 658 | </x sl:attribu te> | |||
659 | </ww alinks:ALi nk> | 659 | </ww alinks:ALi nk> | |||
660 | </xsl :variable> | 660 | </xsl :variable> | |||
661 | <xsl: variable n ame="VarCa rgoALink" select="ms xsl:node-s et($VarCar goALinkAsX ML)" /> | 661 | <xsl: variable n ame="VarCa rgoALink" select="ms xsl:node-s et($VarCar goALinkAsX ML)" /> | |||
662 | <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/.. | $VarCarg oALink" /> | 662 | <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/.. | $VarCarg oALink" /> | |||
663 | 663 | |||||
664 | <xsl: for-each s elect="$Pa ramSplits[ 1]"> | 664 | <xsl: for-each s elect="$Pa ramSplits[ 1]"> | |||
665 | <!-- Determine image pat hs --> | 665 | <!-- Determine image pat hs --> | |||
666 | <!-- --> | 666 | <!-- --> | |||
667 | <xsl :variable name="Var_ seertup" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eertup.gif '))[1]/@pa th, $Param Split/@pat h)" /> | 667 | <xsl :variable name="Var_ seertup" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eertup.gif '))[1]/@pa th, $Param Split/@pat h)" /> | |||
668 | <xsl :variable name="Var_ seeright" select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase', wwstring:T oLower('ww format:Fil es/images/ seeright.g if'))[1]/@ path, $Par amSplit/@p ath)" /> | 668 | <xsl :variable name="Var_ seeright" select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase', wwstring:T oLower('ww format:Fil es/images/ seeright.g if'))[1]/@ path, $Par amSplit/@p ath)" /> | |||
669 | <xsl :variable name="Var_ seelflow" select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase', wwstring:T oLower('ww format:Fil es/images/ seelflow.g if'))[1]/@ path, $Par amSplit/@p ath)" /> | 669 | <xsl :variable name="Var_ seelflow" select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase', wwstring:T oLower('ww format:Fil es/images/ seelflow.g if'))[1]/@ path, $Par amSplit/@p ath)" /> | |||
670 | <xsl :variable name="Var_ seebttm" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eebttm.gif '))[1]/@pa th, $Param Split/@pat h)" /> | 670 | <xsl :variable name="Var_ seebttm" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eebttm.gif '))[1]/@pa th, $Param Split/@pat h)" /> | |||
671 | <xsl :variable name="Var_ seertlow" select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase', wwstring:T oLower('ww format:Fil es/images/ seertlow.g if'))[1]/@ path, $Par amSplit/@p ath)" /> | 671 | <xsl :variable name="Var_ seertlow" select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase', wwstring:T oLower('ww format:Fil es/images/ seertlow.g if'))[1]/@ path, $Par amSplit/@p ath)" /> | |||
672 | 672 | |||||
673 | <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0" onclick=" {concat('W ebWorksSee Also.fOnCl ickButton( "ALin k_', trans late($Para mParagraph /@id, '-', '_'), '&q uot;);')}" > | 673 | <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0" onclick=" {concat('W ebWorksSee Also.fOnCl ickButton( "ALin k_', trans late($Para mParagraph /@id, '-', '_'), '&q uot;);')}" > | |||
674 | <ht ml:tr> | 674 | <ht ml:tr> | |||
675 | <h tml:td hei ght="2" co lspan="4" bgcolor="# FFFFFF"></ html:td> | 675 | <h tml:td hei ght="2" co lspan="4" bgcolor="# FFFFFF"></ html:td> | |||
676 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td> | 676 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td> | |||
677 | </h tml:tr> | 677 | </h tml:tr> | |||
678 | <ht ml:tr> | 678 | <ht ml:tr> | |||
679 | <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> | 679 | <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> | |||
680 | <h tml:td hei ght="2" co lspan="3" bgcolor="# D4D0C8"></ html:td> | 680 | <h tml:td hei ght="2" co lspan="3" bgcolor="# D4D0C8"></ html:td> | |||
681 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> | 681 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> | |||
682 | </h tml:tr> | 682 | </h tml:tr> | |||
683 | <ht ml:tr> | 683 | <ht ml:tr> | |||
684 | <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td> | 684 | <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td> | |||
685 | <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td> | 685 | <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td> | |||
686 | <h tml:td bgc olor="#D4D 0C8"> | 686 | <h tml:td bgc olor="#D4D 0C8"> | |||
687 | 687 | |||||
688 | < xsl:call-t emplate na me="Paragr aph-Normal "> | 688 | < xsl:call-t emplate na me="Paragr aph-Normal "> | |||
689 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | 689 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | |||
690 | <xsl:with- param name ="ParamCar go" select ="$VarCarg o" /> | 690 | <xsl:with- param name ="ParamCar go" select ="$VarCarg o" /> | |||
691 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | 691 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | |||
692 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | 692 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | |||
693 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | 693 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | |||
694 | <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" /> | 694 | <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" /> | |||
695 | <xsl:with- param name ="ParamOve rrideRule" select="$ ParamOverr ideRule" / > | 695 | <xsl:with- param name ="ParamOve rrideRule" select="$ ParamOverr ideRule" / > | |||
696 | <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / > | 696 | <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / > | |||
697 | < /xsl:call- template> | 697 | < /xsl:call- template> | |||
698 | 698 | |||||
699 | </ html:td> | 699 | </ html:td> | |||
700 | <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td> | 700 | <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td> | |||
701 | <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td> | 701 | <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td> | |||
702 | </h tml:tr> | 702 | </h tml:tr> | |||
703 | <ht ml:tr> | 703 | <ht ml:tr> | |||
704 | <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> | 704 | <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> | |||
705 | <h tml:td hei ght="2" co lspan="3" bgcolor="# D4D0C8"></ html:td> | 705 | <h tml:td hei ght="2" co lspan="3" bgcolor="# D4D0C8"></ html:td> | |||
706 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> | 706 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> | |||
707 | </h tml:tr> | 707 | </h tml:tr> | |||
708 | <ht ml:tr> | 708 | <ht ml:tr> | |||
709 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td> | 709 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td> | |||
710 | <h tml:td hei ght="2" co lspan="3" background ="{$Var_se ebttm}"></ html:td> | 710 | <h tml:td hei ght="2" co lspan="3" background ="{$Var_se ebttm}"></ html:td> | |||
711 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td> | 711 | <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td> | |||
712 | </h tml:tr> | 712 | </h tml:tr> | |||
713 | </ht ml:table> | 713 | </ht ml:table> | |||
714 | </xsl :for-each> | 714 | </xsl :for-each> | |||
715 | </xsl: when> | 715 | </xsl: when> | |||
716 | 716 | |||||
717 | <xsl:o therwise> | 717 | <xsl:o therwise> | |||
718 | <xsl: call-templ ate name=" Paragraph- Normal"> | 718 | <xsl: call-templ ate name=" Paragraph- Normal"> | |||
719 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 719 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
720 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 720 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
721 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 721 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
722 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 722 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
723 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | 723 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | |||
724 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > | 724 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > | |||
725 | <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> | 725 | <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> | |||
726 | <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> | 726 | <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> | |||
727 | </xsl :call-temp late> | 727 | </xsl :call-temp late> | |||
728 | </xsl: otherwise> | 728 | </xsl: otherwise> | |||
729 | </xsl:c hoose> | 729 | </xsl:c hoose> | |||
730 | </xsl:if > | 730 | </xsl:if > | |||
731 | </xsl:tem plate> | 731 | </xsl:tem plate> | |||
732 | 732 | |||||
733 | 733 | |||||
734 | <xsl:temp late name= "Paragraph -PassThrou gh"> | 734 | <xsl:temp late name= "Paragraph -PassThrou gh"> | |||
735 | <xsl:par am name="P aramParagr aph" /> | 735 | <xsl:par am name="P aramParagr aph" /> | |||
736 | 736 | |||||
737 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | 737 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | |||
738 | <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> | 738 | <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> | |||
739 | <xsl:v ariable na me="VarTex t" select= "." /> | 739 | <xsl:v ariable na me="VarTex t" select= "." /> | |||
740 | 740 | |||||
741 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | 741 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | |||
742 | </xsl:f or-each> | 742 | </xsl:f or-each> | |||
743 | </wwexsl doc:Text> | 743 | </wwexsl doc:Text> | |||
744 | </xsl:tem plate> | 744 | </xsl:tem plate> | |||
745 | 745 | |||||
746 | 746 | |||||
747 | <xsl:temp late name= "Paragraph -Normal"> | 747 | <xsl:temp late name= "Paragraph -Normal"> | |||
748 | <xsl:par am name="P aramSplits " /> | 748 | <xsl:par am name="P aramSplits " /> | |||
749 | <xsl:par am name="P aramCargo" /> | 749 | <xsl:par am name="P aramCargo" /> | |||
750 | <xsl:par am name="P aramLinks" /> | 750 | <xsl:par am name="P aramLinks" /> | |||
751 | <xsl:par am name="P aramSplit" /> | 751 | <xsl:par am name="P aramSplit" /> | |||
752 | <xsl:par am name="P aramParagr aph" /> | 752 | <xsl:par am name="P aramParagr aph" /> | |||
753 | <xsl:par am name="P aramStyleN ame" /> | 753 | <xsl:par am name="P aramStyleN ame" /> | |||
754 | <xsl:par am name="P aramOverri deRule" /> | 754 | <xsl:par am name="P aramOverri deRule" /> | |||
755 | <xsl:par am name="P aramParagr aphBehavio r" /> | 755 | <xsl:par am name="P aramParagr aphBehavio r" /> | |||
756 | 756 | |||||
757 | <!-- Res olve proje ct propert ies --> | 757 | <!-- Res olve proje ct propert ies --> | |||
758 | <!-- --> | 758 | <!-- --> | |||
759 | <xsl:var iable name ="VarResol vedPropert iesAsXML"> | 759 | <xsl:var iable name ="VarResol vedPropert iesAsXML"> | |||
760 | <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> | 760 | <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> | |||
761 | <xsl:w ith-param name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property" /> | 761 | <xsl:w ith-param name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property" /> | |||
762 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | 762 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | |||
763 | </xsl:c all-templa te> | 763 | </xsl:c all-templa te> | |||
764 | </xsl:va riable> | 764 | </xsl:va riable> | |||
765 | <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> | 765 | <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> | |||
766 | 766 | |||||
767 | <!-- CSS propertie s --> | 767 | <!-- CSS propertie s --> | |||
768 | <!-- --> | 768 | <!-- --> | |||
769 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | 769 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | |||
770 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | 770 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | |||
771 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedPropert ies" /> | 771 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedPropert ies" /> | |||
772 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | 772 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | |||
773 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 773 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
774 | </xsl:c all-templa te> | 774 | </xsl:c all-templa te> | |||
775 | </xsl:va riable> | 775 | </xsl:va riable> | |||
776 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | 776 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | |||
777 | 777 | |||||
778 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / > | 778 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / > | |||
779 | 779 | |||||
780 | <!-- Res olve proje ct propert ies --> | 780 | <!-- Res olve proje ct propert ies --> | |||
781 | <!-- --> | 781 | <!-- --> | |||
782 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | 782 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | |||
783 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | 783 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | |||
784 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> | 784 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> | |||
785 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | 785 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | |||
786 | <xsl:w ith-param name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> | 786 | <xsl:w ith-param name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> | |||
787 | <xsl:w ith-param name="Para mStyleType " select=" 'Paragraph '" /> | 787 | <xsl:w ith-param name="Para mStyleType " select=" 'Paragraph '" /> | |||
788 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | 788 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | |||
789 | </xsl:c all-templa te> | 789 | </xsl:c all-templa te> | |||
790 | </xsl:va riable> | 790 | </xsl:va riable> | |||
791 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | 791 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | |||
792 | 792 | |||||
793 | <!-- CSS propertie s --> | 793 | <!-- CSS propertie s --> | |||
794 | <!-- --> | 794 | <!-- --> | |||
795 | <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> | 795 | <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> | |||
796 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | 796 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | |||
797 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedContext Properties " /> | 797 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedContext Properties " /> | |||
798 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | 798 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | |||
799 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 799 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
800 | </xsl:c all-templa te> | 800 | </xsl:c all-templa te> | |||
801 | </xsl:va riable> | 801 | </xsl:va riable> | |||
802 | <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property" /> | 802 | <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property" /> | |||
803 | 803 | |||||
804 | <!-- Use numbering ? --> | 804 | <!-- Use numbering ? --> | |||
805 | <!-- --> | 805 | <!-- --> | |||
806 | <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name = 'use-num bering']/@ Value" /> | 806 | <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name = 'use-num bering']/@ Value" /> | |||
807 | <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0) or ($VarU seNumberin gOption = 'true')" / > | 807 | <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0) or ($VarU seNumberin gOption = 'true')" / > | |||
808 | 808 | |||||
809 | <!-- Tex t Indent - -> | 809 | <!-- Tex t Indent - -> | |||
810 | <!-- - -> | 810 | <!-- - -> | |||
811 | <xsl:var iable name ="VarTextI ndent"> | 811 | <xsl:var iable name ="VarTextI ndent"> | |||
812 | <xsl:if test="$Va rUseNumber ing"> | 812 | <xsl:if test="$Va rUseNumber ing"> | |||
813 | <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name = 'text-ind ent']/@Val ue" /> | 813 | <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name = 'text-ind ent']/@Val ue" /> | |||
814 | <xsl:c hoose> | 814 | <xsl:c hoose> | |||
815 | <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> | 815 | <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> | |||
816 | <xsl :value-of select="$V arOverride TextIndent " /> | 816 | <xsl :value-of select="$V arOverride TextIndent " /> | |||
817 | </xsl :when> | 817 | </xsl :when> | |||
818 | 818 | |||||
819 | <xsl: otherwise> | 819 | <xsl: otherwise> | |||
820 | <!-- Text inde nt defined ? --> | 820 | <!-- Text inde nt defined ? --> | |||
821 | <!-- --> | 821 | <!-- --> | |||
822 | <xsl :variable name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> | 822 | <xsl :variable name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> | |||
823 | <xsl :if test=" string-len gth($VarCo ntextTextI ndent) > ; 0"> | 823 | <xsl :if test=" string-len gth($VarCo ntextTextI ndent) > ; 0"> | |||
824 | <xs l:value-of select="$ VarContext TextIndent " /> | 824 | <xs l:value-of select="$ VarContext TextIndent " /> | |||
825 | </xs l:if> | 825 | </xs l:if> | |||
826 | </xsl :otherwise > | 826 | </xsl :otherwise > | |||
827 | </xsl: choose> | 827 | </xsl: choose> | |||
828 | </xsl:i f> | 828 | </xsl:i f> | |||
829 | </xsl:va riable> | 829 | </xsl:va riable> | |||
830 | 830 | |||||
831 | <xsl:var iable name ="VarTextI ndentNumer icPrefix" select="ww units:Nume ricPrefix( $VarTextIn dent)" /> | 831 | <xsl:var iable name ="VarTextI ndentNumer icPrefix" select="ww units:Nume ricPrefix( $VarTextIn dent)" /> | |||
832 | <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix) > 0) a nd (number ($VarTextI ndentNumer icPrefix) < 0)" / > | 832 | <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix) > 0) a nd (number ($VarTextI ndentNumer icPrefix) < 0)" / > | |||
833 | 833 | |||||
834 | <!-- Use bullet fr om UI? --> | 834 | <!-- Use bullet fr om UI? --> | |||
835 | <!-- --> | 835 | <!-- --> | |||
836 | <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " /> | 836 | <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " /> | |||
837 | <xsl:var iable name ="VarBulle tImage" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'bullet-im age']/@Val ue" /> | 837 | <xsl:var iable name ="VarBulle tImage" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'bullet-im age']/@Val ue" /> | |||
838 | <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " /> | 838 | <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " /> | |||
839 | <xsl:var iable name ="VarBulle tStyle" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'bullet-st yle']/@Val ue" /> | 839 | <xsl:var iable name ="VarBulle tStyle" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'bullet-st yle']/@Val ue" /> | |||
840 | <xsl:var iable name ="VarIgnor eDocumentN umber" sel ect="(stri ng-length( $VarBullet Character) > 0) o r (string- length($Va rBulletIma ge) > 0 ) or (stri ng-length( $VarBullet Separator) > 0)" /> | 840 | <xsl:var iable name ="VarIgnor eDocumentN umber" sel ect="(stri ng-length( $VarBullet Character) > 0) o r (string- length($Va rBulletIma ge) > 0 ) or (stri ng-length( $VarBullet Separator) > 0)" /> | |||
841 | 841 | |||||
842 | <!-- Is numbered p aragraph - -> | 842 | <!-- Is numbered p aragraph - -> | |||
843 | <!-- - -> | 843 | <!-- - -> | |||
844 | <xsl:var iable name ="VarIsNum beredParag raph" sele ct="($VarT extIndentL essThanZer o = true() ) and ((co unt($Param Paragraph/ wwdoc:Numb er[1]) = 1 ) or (stri ng-length( $VarBullet Character) > 0) o r (string- length($Va rBulletIma ge) > 0 ) or (stri ng-length( $VarBullet Separator) > 0) o r (string- length($Va rBulletSty le) > 0 ))" /> | 844 | <xsl:var iable name ="VarIsNum beredParag raph" sele ct="($VarT extIndentL essThanZer o = true() ) and ((co unt($Param Paragraph/ wwdoc:Numb er[1]) = 1 ) or (stri ng-length( $VarBullet Character) > 0) o r (string- length($Va rBulletIma ge) > 0 ) or (stri ng-length( $VarBullet Separator) > 0) o r (string- length($Va rBulletSty le) > 0 ))" /> | |||
845 | 845 | |||||
846 | <!-- Cit ation --> | 846 | <!-- Cit ation --> | |||
847 | <!-- --> | 847 | <!-- --> | |||
848 | <xsl:var iable name ="VarCitat ion"> | 848 | <xsl:var iable name ="VarCitat ion"> | |||
849 | <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker"> | 849 | <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker"> | |||
850 | <xsl:w ith-param name="Para mContainer " select=" $ParamPara graph" /> | 850 | <xsl:w ith-param name="Para mContainer " select=" $ParamPara graph" /> | |||
851 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 851 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
852 | <xsl:w ith-param name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" /> | 852 | <xsl:w ith-param name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" /> | |||
853 | <xsl:w ith-param name="Para mRule" sel ect="$VarC ontextRule " /> | 853 | <xsl:w ith-param name="Para mRule" sel ect="$VarC ontextRule " /> | |||
854 | <xsl:w ith-param name="Para mOption" s elect="'ci tation'" / > | 854 | <xsl:w ith-param name="Para mOption" s elect="'ci tation'" / > | |||
855 | </xsl:c all-templa te> | 855 | </xsl:c all-templa te> | |||
856 | </xsl:va riable> | 856 | </xsl:va riable> | |||
857 | 857 | |||||
858 | <!-- Tag --> | 858 | <!-- Tag --> | |||
859 | <!-- --> | 859 | <!-- --> | |||
860 | <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'tag']/@Va lue" /> | 860 | <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'tag']/@Va lue" /> | |||
861 | <xsl:var iable name ="VarTag"> | 861 | <xsl:var iable name ="VarTag"> | |||
862 | <xsl:ch oose> | 862 | <xsl:ch oose> | |||
863 | <xsl:w hen test=" string-len gth($VarTa gProperty) > 0"> | 863 | <xsl:w hen test=" string-len gth($VarTa gProperty) > 0"> | |||
864 | <xsl: value-of s elect="$Va rTagProper ty" /> | 864 | <xsl: value-of s elect="$Va rTagProper ty" /> | |||
865 | </xsl: when> | 865 | </xsl: when> | |||
866 | 866 | |||||
867 | <xsl:o therwise> | 867 | <xsl:o therwise> | |||
868 | <xsl: value-of s elect="'di v'" /> | 868 | <xsl: value-of s elect="'di v'" /> | |||
869 | </xsl: otherwise> | 869 | </xsl: otherwise> | |||
870 | </xsl:c hoose> | 870 | </xsl:c hoose> | |||
871 | </xsl:va riable> | 871 | </xsl:va riable> | |||
872 | 872 | |||||
873 | <!-- Tag to use fo r outer wr apper --> | 873 | <!-- Tag to use fo r outer wr apper --> | |||
874 | <!-- --> | 874 | <!-- --> | |||
875 | <xsl:var iable name ="VarOuter Tag"> | 875 | <xsl:var iable name ="VarOuter Tag"> | |||
876 | <xsl:ch oose> | 876 | <xsl:ch oose> | |||
877 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | 877 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | |||
878 | <xsl: value-of s elect="'di v'" /> | 878 | <xsl: value-of s elect="'di v'" /> | |||
879 | </xsl: when> | 879 | </xsl: when> | |||
880 | 880 | |||||
881 | <xsl:o therwise> | 881 | <xsl:o therwise> | |||
882 | <xsl: value-of s elect="$Va rTag" /> | 882 | <xsl: value-of s elect="$Va rTag" /> | |||
883 | </xsl: otherwise> | 883 | </xsl: otherwise> | |||
884 | </xsl:c hoose> | 884 | </xsl:c hoose> | |||
885 | </xsl:va riable> | 885 | </xsl:va riable> | |||
886 | 886 | |||||
887 | <!-- Use character styles? - -> | 887 | <!-- Use character styles? - -> | |||
888 | <!-- - -> | 888 | <!-- - -> | |||
889 | <xsl:var iable name ="VarUseCh aracterSty lesOption" select="$ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'use-char acter-styl es']/@Valu e" /> | 889 | <xsl:var iable name ="VarUseCh aracterSty lesOption" select="$ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'use-char acter-styl es']/@Valu e" /> | |||
890 | <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) = 0) or ($Va rUseCharac terStylesO ption = 't rue')" /> | 890 | <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) = 0) or ($Va rUseCharac terStylesO ption = 't rue')" /> | |||
891 | 891 | |||||
892 | <!-- Pre serve empt y? --> | 892 | <!-- Pre serve empt y? --> | |||
893 | <!-- --> | 893 | <!-- --> | |||
894 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | 894 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | |||
895 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | 895 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | |||
896 | 896 | |||||
897 | <!-- Beg in paragra ph emit -- > | 897 | <!-- Beg in paragra ph emit -- > | |||
898 | <!-- -- > | 898 | <!-- -- > | |||
899 | <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> | 899 | <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> | |||
900 | <!-- Cl ass attrib ute --> | 900 | <!-- Cl ass attrib ute --> | |||
901 | <!-- --> | 901 | <!-- --> | |||
902 | <xsl:at tribute na me="class" > | 902 | <xsl:at tribute na me="class" > | |||
903 | <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> | 903 | <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> | |||
904 | <xsl:i f test="$V arIsNumber edParagrap h = true() "> | 904 | <xsl:i f test="$V arIsNumber edParagrap h = true() "> | |||
905 | <xsl: value-of s elect="'_o uter'" /> | 905 | <xsl: value-of s elect="'_o uter'" /> | |||
906 | </xsl: if> | 906 | </xsl: if> | |||
907 | 907 | |||||
908 | <!-- A dditional CSS classe s --> | 908 | <!-- A dditional CSS classe s --> | |||
909 | <!-- --> | 909 | <!-- --> | |||
910 | <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | 910 | <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | |||
911 | <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) > 0 "> | 911 | <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) > 0 "> | |||
912 | <xsl: text> </xs l:text> | 912 | <xsl: text> </xs l:text> | |||
913 | <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > | 913 | <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > | |||
914 | <xsl: if test="$ VarIsNumbe redParagra ph = true( )"> | 914 | <xsl: if test="$ VarIsNumbe redParagra ph = true( )"> | |||
915 | <xsl :text> Web Works_Para graph_List _Outer</xs l:text> | 915 | <xsl :text> Web Works_Para graph_List _Outer</xs l:text> | |||
916 | </xsl :if> | 916 | </xsl :if> | |||
917 | </xsl: if> | 917 | </xsl: if> | |||
918 | </xsl:a ttribute> | 918 | </xsl:a ttribute> | |||
919 | 919 | |||||
920 | <!-- St yle attrib ute --> | 920 | <!-- St yle attrib ute --> | |||
921 | <!-- --> | 921 | <!-- --> | |||
922 | <xsl:ch oose> | 922 | <xsl:ch oose> | |||
923 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | 923 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | |||
924 | <xsl: variable n ame="VarSt yleAttribu teOuter"> | 924 | <xsl: variable n ame="VarSt yleAttribu teOuter"> | |||
925 | <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> | 925 | <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> | |||
926 | <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> | 926 | <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> | |||
927 | <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> | 927 | <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> | |||
928 | </xs l:call-tem plate> | 928 | </xs l:call-tem plate> | |||
929 | </xsl :variable> | 929 | </xsl :variable> | |||
930 | 930 | |||||
931 | <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> | 931 | <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> | |||
932 | <xsl :attribute name="sty le"> | 932 | <xsl :attribute name="sty le"> | |||
933 | <xs l:value-of select="$ VarStyleAt tributeOut er" /> | 933 | <xs l:value-of select="$ VarStyleAt tributeOut er" /> | |||
934 | </xs l:attribut e> | 934 | </xs l:attribut e> | |||
935 | </xsl :if> | 935 | </xsl :if> | |||
936 | </xsl: when> | 936 | </xsl: when> | |||
937 | 937 | |||||
938 | <xsl:o therwise> | 938 | <xsl:o therwise> | |||
939 | <xsl: variable n ame="VarSt yleAttribu te"> | 939 | <xsl: variable n ame="VarSt yleAttribu te"> | |||
940 | <xsl :call-temp late name= "CSS-Inlin ePropertie s"> | 940 | <xsl :call-temp late name= "CSS-Inlin ePropertie s"> | |||
941 | <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> | 941 | <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> | |||
942 | </xs l:call-tem plate> | 942 | </xs l:call-tem plate> | |||
943 | </xsl :variable> | 943 | </xsl :variable> | |||
944 | 944 | |||||
945 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | 945 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | |||
946 | <xsl :attribute name="sty le"> | 946 | <xsl :attribute name="sty le"> | |||
947 | <xs l:value-of select="$ VarStyleAt tribute" / > | 947 | <xs l:value-of select="$ VarStyleAt tribute" / > | |||
948 | </xs l:attribut e> | 948 | </xs l:attribut e> | |||
949 | </xsl :if> | 949 | </xsl :if> | |||
950 | </xsl: otherwise> | 950 | </xsl: otherwise> | |||
951 | </xsl:c hoose> | 951 | </xsl:c hoose> | |||
952 | 952 | |||||
953 | <!-- Ci te attribu te --> | 953 | <!-- Ci te attribu te --> | |||
954 | <!-- --> | 954 | <!-- --> | |||
955 | <xsl:if test="str ing-length ($VarCitat ion) > 0"> | 955 | <xsl:if test="str ing-length ($VarCitat ion) > 0"> | |||
956 | <xsl:a ttribute n ame="cite" > | 956 | <xsl:a ttribute n ame="cite" > | |||
957 | <xsl: value-of s elect="$Va rCitation" /> | 957 | <xsl: value-of s elect="$Va rCitation" /> | |||
958 | </xsl: attribute> | 958 | </xsl: attribute> | |||
959 | </xsl:i f> | 959 | </xsl:i f> | |||
960 | 960 | |||||
961 | <!-- Dr opdown --> | 961 | <!-- Dr opdown --> | |||
962 | <!-- --> | 962 | <!-- --> | |||
963 | <xsl:if test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> | 963 | <xsl:if test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> | |||
964 | <xsl:a ttribute n ame="oncli ck"> | 964 | <xsl:a ttribute n ame="oncli ck"> | |||
965 | <xsl: value-of s elect="con cat('WebWo rksDropDow n_ToggleDI V(WebWorks RootPath, "wwdd ', $ParamP aragraph/@ id, '" ;);')" /> | 965 | <xsl: value-of s elect="con cat('WebWo rksDropDow n_ToggleDI V(WebWorks RootPath, "wwdd ', $ParamP aragraph/@ id, '" ;);')" /> | |||
966 | </xsl: attribute> | 966 | </xsl: attribute> | |||
967 | </xsl:i f> | 967 | </xsl:i f> | |||
968 | 968 | |||||
969 | <!-- Us e numberin g? --> | 969 | <!-- Us e numberin g? --> | |||
970 | <!-- --> | 970 | <!-- --> | |||
971 | <xsl:ch oose> | 971 | <xsl:ch oose> | |||
972 | <!-- U se Number --> | 972 | <!-- U se Number --> | |||
973 | <!-- --> | 973 | <!-- --> | |||
974 | <xsl:w hen test=" $VarUseNum bering"> | 974 | <xsl:w hen test=" $VarUseNum bering"> | |||
975 | <xsl: choose> | 975 | <xsl: choose> | |||
976 | <xsl :when test ="(count($ ParamParag raph/wwdoc :Number[1] ) > 0) or (string -length($V arBulletCh aracter) & gt; 0) or (string-l ength($Var BulletImag e) > 0) or (strin g-length($ VarBulletS eparator) > 0)"> | 976 | <xsl :when test ="(count($ ParamParag raph/wwdoc :Number[1] ) > 0) or (string -length($V arBulletCh aracter) & gt; 0) or (string-l ength($Var BulletImag e) > 0) or (strin g-length($ VarBulletS eparator) > 0)"> | |||
977 | <xs l:choose> | 977 | <xs l:choose> | |||
978 | <x sl:when te st="$VarTe xtIndentLe ssThanZero "> | 978 | <x sl:when te st="$VarTe xtIndentLe ssThanZero "> | |||
979 | 979 | |||||
980 | < html:table border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> | 980 | < html:table border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> | |||
981 | <html:tr s tyle="vert ical-align : baseline ;"> | 981 | <html:tr s tyle="vert ical-align : baseline ;"> | |||
982 | <html:td> | 982 | <html:td> | |||
983 | <!-- Emi t number w ith inner class and specific n umber styl e attribut e --> | 983 | <!-- Emi t number w ith inner class and specific n umber styl e attribut e --> | |||
984 | <!-- --> | 984 | <!-- --> | |||
985 | <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> | 985 | <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> | |||
986 | <xsl:at tribute na me="class" > | 986 | <xsl:at tribute na me="class" > | |||
987 | <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> | 987 | <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> | |||
988 | <xsl:t ext>_inner </xsl:text > | 988 | <xsl:t ext>_inner </xsl:text > | |||
989 | 989 | |||||
990 | <!-- A dditional CSS classe s --> | 990 | <!-- A dditional CSS classe s --> | |||
991 | <!-- --> | 991 | <!-- --> | |||
992 | <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | 992 | <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | |||
993 | <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) > 0 "> | 993 | <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) > 0 "> | |||
994 | <xsl: text> </xs l:text> | 994 | <xsl: text> </xs l:text> | |||
995 | <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > | 995 | <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > | |||
996 | <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> | 996 | <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> | |||
997 | </xsl: if> | 997 | </xsl: if> | |||
998 | </xsl:a ttribute> | 998 | </xsl:a ttribute> | |||
999 | 999 | |||||
1000 | <xsl:va riable nam e="VarText IndentNumb erAsUnits" select="w wunits:Num ericPrefix ($VarTextI ndent)" /> | 1000 | <xsl:va riable nam e="VarText IndentNumb erAsUnits" select="w wunits:Num ericPrefix ($VarTextI ndent)" /> | |||
1001 | <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> | 1001 | <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> | |||
1002 | 1002 | |||||
1003 | <xsl:at tribute na me="style" > | 1003 | <xsl:at tribute na me="style" > | |||
1004 | <xsl:v alue-of se lect="conc at('width: ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, '; white-spa ce: nowrap ;')" /> | 1004 | <xsl:v alue-of se lect="conc at('width: ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, '; white-spa ce: nowrap ;')" /> | |||
1005 | <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber "> | 1005 | <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber "> | |||
1006 | <xsl: with-param name="Par amProperti es" select ="$VarCSSP roperties" /> | 1006 | <xsl: with-param name="Par amProperti es" select ="$VarCSSP roperties" /> | |||
1007 | </xsl: call-templ ate> | 1007 | </xsl: call-templ ate> | |||
1008 | </xsl:a ttribute> | 1008 | </xsl:a ttribute> | |||
1009 | 1009 | |||||
1010 | <xsl:ca ll-templat e name="Nu mber"> | 1010 | <xsl:ca ll-templat e name="Nu mber"> | |||
1011 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 1011 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
1012 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 1012 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
1013 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 1013 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
1014 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 1014 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
1015 | <xsl:w ith-param name="Para mParagraph " select=" $ParamPara graph" /> | 1015 | <xsl:w ith-param name="Para mParagraph " select=" $ParamPara graph" /> | |||
1016 | <xsl:w ith-param name="Para mUseCharac terStyles" select="$ VarUseChar acterStyle s" /> | 1016 | <xsl:w ith-param name="Para mUseCharac terStyles" select="$ VarUseChar acterStyle s" /> | |||
1017 | <xsl:w ith-param name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> | 1017 | <xsl:w ith-param name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> | |||
1018 | <xsl:w ith-param name="Para mCharacter " select=" $VarBullet Character" /> | 1018 | <xsl:w ith-param name="Para mCharacter " select=" $VarBullet Character" /> | |||
1019 | <xsl:w ith-param name="Para mImage" se lect="$Var BulletImag e" /> | 1019 | <xsl:w ith-param name="Para mImage" se lect="$Var BulletImag e" /> | |||
1020 | <xsl:w ith-param name="Para mSeparator " select=" $VarBullet Separator" /> | 1020 | <xsl:w ith-param name="Para mSeparator " select=" $VarBullet Separator" /> | |||
1021 | <xsl:w ith-param name="Para mStyle" se lect="$Var BulletStyl e" /> | 1021 | <xsl:w ith-param name="Para mStyle" se lect="$Var BulletStyl e" /> | |||
1022 | </xsl:c all-templa te> | 1022 | </xsl:c all-templa te> | |||
1023 | </xsl:el ement> | 1023 | </xsl:el ement> | |||
1024 | </html:td > | 1024 | </html:td > | |||
1025 | 1025 | |||||
1026 | <!-- Forc e second c ell to hon or first c ell width --> | 1026 | <!-- Forc e second c ell to hon or first c ell width --> | |||
1027 | <!-- --> | 1027 | <!-- --> | |||
1028 | <html:td width="100 %"> | 1028 | <html:td width="100 %"> | |||
1029 | <xsl:var iable name ="VarStyle AttributeI nnerConten t"> | 1029 | <xsl:var iable name ="VarStyle AttributeI nnerConten t"> | |||
1030 | <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> | 1030 | <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> | |||
1031 | <xsl:w ith-param name="Para mPropertie s" select= "$VarCSSPr operties" /> | 1031 | <xsl:w ith-param name="Para mPropertie s" select= "$VarCSSPr operties" /> | |||
1032 | </xsl:c all-templa te> | 1032 | </xsl:c all-templa te> | |||
1033 | </xsl:va riable> | 1033 | </xsl:va riable> | |||
1034 | 1034 | |||||
1035 | <!-- Emi t content --> | 1035 | <!-- Emi t content --> | |||
1036 | <!-- --> | 1036 | <!-- --> | |||
1037 | <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> | 1037 | <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> | |||
1038 | <xsl:at tribute na me="class" > | 1038 | <xsl:at tribute na me="class" > | |||
1039 | <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> | 1039 | <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> | |||
1040 | <xsl:t ext>_inner </xsl:text > | 1040 | <xsl:t ext>_inner </xsl:text > | |||
1041 | 1041 | |||||
1042 | <!-- A dditional CSS classe s --> | 1042 | <!-- A dditional CSS classe s --> | |||
1043 | <!-- --> | 1043 | <!-- --> | |||
1044 | <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | 1044 | <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | |||
1045 | <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) > 0 "> | 1045 | <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) > 0 "> | |||
1046 | <xsl: text> </xs l:text> | 1046 | <xsl: text> </xs l:text> | |||
1047 | <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > | 1047 | <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > | |||
1048 | <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> | 1048 | <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> | |||
1049 | </xsl: if> | 1049 | </xsl: if> | |||
1050 | </xsl:a ttribute> | 1050 | </xsl:a ttribute> | |||
1051 | <xsl:if test="str ing-length ($VarStyle AttributeI nnerConten t) > 0" > | 1051 | <xsl:if test="str ing-length ($VarStyle AttributeI nnerConten t) > 0" > | |||
1052 | <xsl:a ttribute n ame="style "> | 1052 | <xsl:a ttribute n ame="style "> | |||
1053 | <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > | 1053 | <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > | |||
1054 | </xsl: attribute> | 1054 | </xsl: attribute> | |||
1055 | </xsl:i f> | 1055 | </xsl:i f> | |||
1056 | 1056 | |||||
1057 | <!-- Te xt Runs -- > | 1057 | <!-- Te xt Runs -- > | |||
1058 | <!-- -- > | 1058 | <!-- -- > | |||
1059 | <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> | 1059 | <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> | |||
1060 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 1060 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
1061 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 1061 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
1062 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 1062 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
1063 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 1063 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
1064 | <xsl:w ith-param name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> | 1064 | <xsl:w ith-param name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> | |||
1065 | <xsl:w ith-param name="Para mUseCharac terStyles" select="$ VarUseChar acterStyle s" /> | 1065 | <xsl:w ith-param name="Para mUseCharac terStyles" select="$ VarUseChar acterStyle s" /> | |||
1066 | <xsl:w ith-param name="Para mParagraph " select=" $ParamPara graph" /> | 1066 | <xsl:w ith-param name="Para mParagraph " select=" $ParamPara graph" /> | |||
1067 | </xsl:c all-templa te> | 1067 | </xsl:c all-templa te> | |||
1068 | 1068 | |||||
1069 | <!-- Dr opdown Arr ow --> | 1069 | <!-- Dr opdown Arr ow --> | |||
1070 | <!-- --> | 1070 | <!-- --> | |||
1071 | <xsl:if test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> | 1071 | <xsl:if test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> | |||
1072 | <html: script typ e="text/ja vascript" language=" JavaScript 1.2">WebWo rksDropDow n.fWriteAr row(WebWor ksRootPath , "<x sl:value-o f select=" concat('ww dd', $Para mParagraph /@id)" />& quot;, <xs l:value-of select="$ ParamParag raphBehavi or/@dropdo wn = 'star t-open'" / >);</html: script> | 1072 | <html: script typ e="text/ja vascript" language=" JavaScript 1.2">WebWo rksDropDow n.fWriteAr row(WebWor ksRootPath , "<x sl:value-o f select=" concat('ww dd', $Para mParagraph /@id)" />& quot;, <xs l:value-of select="$ ParamParag raphBehavi or/@dropdo wn = 'star t-open'" / >);</html: script> | |||
1073 | </xsl:i f> | 1073 | </xsl:i f> | |||
1074 | </xsl:el ement> | 1074 | </xsl:el ement> | |||
1075 | </html:td > | 1075 | </html:td > | |||
1076 | </html:tr> | 1076 | </html:tr> | |||
1077 | < /html:tabl e> | 1077 | < /html:tabl e> | |||
1078 | </ xsl:when> | 1078 | </ xsl:when> | |||
1079 | 1079 | |||||
1080 | <x sl:otherwi se> | 1080 | <x sl:otherwi se> | |||
1081 | < xsl:call-t emplate na me="Number "> | 1081 | < xsl:call-t emplate na me="Number "> | |||
1082 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | 1082 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | |||
1083 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | 1083 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | |||
1084 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | 1084 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | |||
1085 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | 1085 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | |||
1086 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | 1086 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | |||
1087 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | 1087 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | |||
1088 | <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> | 1088 | <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> | |||
1089 | <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> | 1089 | <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> | |||
1090 | <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > | 1090 | <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > | |||
1091 | <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> | 1091 | <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> | |||
1092 | <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > | 1092 | <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > | |||
1093 | < /xsl:call- template> | 1093 | < /xsl:call- template> | |||
1094 | 1094 | |||||
1095 | < !-- Text R uns --> | 1095 | < !-- Text R uns --> | |||
1096 | < !-- --> | 1096 | < !-- --> | |||
1097 | < xsl:call-t emplate na me="Paragr aphTextRun s"> | 1097 | < xsl:call-t emplate na me="Paragr aphTextRun s"> | |||
1098 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | 1098 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | |||
1099 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | 1099 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | |||
1100 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | 1100 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | |||
1101 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | 1101 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | |||
1102 | <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > | 1102 | <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > | |||
1103 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | 1103 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | |||
1104 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | 1104 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | |||
1105 | < /xsl:call- template> | 1105 | < /xsl:call- template> | |||
1106 | 1106 | |||||
1107 | < !-- Dropdo wn Arrow - -> | 1107 | < !-- Dropdo wn Arrow - -> | |||
1108 | < !-- - -> | 1108 | < !-- - -> | |||
1109 | < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown = 'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" > | 1109 | < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown = 'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" > | |||
1110 | <html:scri pt type="t ext/javasc ript" lang uage="Java Script1.2" >WebWorksD ropDown.fW riteArrow( WebWorksRo otPath, &q uot;<xsl:v alue-of se lect="conc at('wwdd', $ParamPar agraph/@id )" />" ;, <xsl:va lue-of sel ect="$Para mParagraph Behavior/@ dropdown = 'start-op en'" />);< /html:scri pt> | 1110 | <html:scri pt type="t ext/javasc ript" lang uage="Java Script1.2" >WebWorksD ropDown.fW riteArrow( WebWorksRo otPath, &q uot;<xsl:v alue-of se lect="conc at('wwdd', $ParamPar agraph/@id )" />" ;, <xsl:va lue-of sel ect="$Para mParagraph Behavior/@ dropdown = 'start-op en'" />);< /html:scri pt> | |||
1111 | < /xsl:if> | 1111 | < /xsl:if> | |||
1112 | </ xsl:otherw ise> | 1112 | </ xsl:otherw ise> | |||
1113 | </x sl:choose> | 1113 | </x sl:choose> | |||
1114 | </xs l:when> | 1114 | </xs l:when> | |||
1115 | 1115 | |||||
1116 | <xsl :otherwise > | 1116 | <xsl :otherwise > | |||
1117 | <!- - Text Run s --> | 1117 | <!- - Text Run s --> | |||
1118 | <!- - --> | 1118 | <!- - --> | |||
1119 | <xs l:call-tem plate name ="Paragrap hTextRuns" > | 1119 | <xs l:call-tem plate name ="Paragrap hTextRuns" > | |||
1120 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 1120 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
1121 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 1121 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
1122 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 1122 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
1123 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 1123 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
1124 | <x sl:with-pa ram name=" ParamPrese rveEmpty" select="$V arPreserve Empty" /> | 1124 | <x sl:with-pa ram name=" ParamPrese rveEmpty" select="$V arPreserve Empty" /> | |||
1125 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> | 1125 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> | |||
1126 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph" /> | 1126 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph" /> | |||
1127 | </x sl:call-te mplate> | 1127 | </x sl:call-te mplate> | |||
1128 | 1128 | |||||
1129 | <!- - Dropdown Arrow --> | 1129 | <!- - Dropdown Arrow --> | |||
1130 | <!- - --> | 1130 | <!- - --> | |||
1131 | <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown = 'start-c losed')"> | 1131 | <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown = 'start-c losed')"> | |||
1132 | <h tml:script type="tex t/javascri pt" langua ge="JavaSc ript1.2">W ebWorksDro pDown.fWri teArrow(We bWorksRoot Path, &quo t;<xsl:val ue-of sele ct="concat ('wwdd', $ ParamParag raph/@id)" />", <xsl:valu e-of selec t="$ParamP aragraphBe havior/@dr opdown = ' start-open '" />);</h tml:script > | 1132 | <h tml:script type="tex t/javascri pt" langua ge="JavaSc ript1.2">W ebWorksDro pDown.fWri teArrow(We bWorksRoot Path, &quo t;<xsl:val ue-of sele ct="concat ('wwdd', $ ParamParag raph/@id)" />", <xsl:valu e-of selec t="$ParamP aragraphBe havior/@dr opdown = ' start-open '" />);</h tml:script > | |||
1133 | </x sl:if> | 1133 | </x sl:if> | |||
1134 | </xs l:otherwis e> | 1134 | </xs l:otherwis e> | |||
1135 | </xsl :choose> | 1135 | </xsl :choose> | |||
1136 | </xsl: when> | 1136 | </xsl: when> | |||
1137 | 1137 | |||||
1138 | <!-- S kip Number --> | 1138 | <!-- S kip Number --> | |||
1139 | <!-- --> | 1139 | <!-- --> | |||
1140 | <xsl:o therwise> | 1140 | <xsl:o therwise> | |||
1141 | <!-- Text Runs --> | 1141 | <!-- Text Runs --> | |||
1142 | <!-- --> | 1142 | <!-- --> | |||
1143 | <xsl: call-templ ate name=" ParagraphT extRuns"> | 1143 | <xsl: call-templ ate name=" ParagraphT extRuns"> | |||
1144 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1144 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1145 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1145 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1146 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1146 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1147 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1147 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1148 | <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> | 1148 | <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> | |||
1149 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> | 1149 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> | |||
1150 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | 1150 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | |||
1151 | </xsl :call-temp late> | 1151 | </xsl :call-temp late> | |||
1152 | 1152 | |||||
1153 | <!-- Dropdown A rrow --> | 1153 | <!-- Dropdown A rrow --> | |||
1154 | <!-- --> | 1154 | <!-- --> | |||
1155 | <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open') or ($Param ParagraphB ehavior/@d ropdown = 'start-clo sed')"> | 1155 | <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open') or ($Param ParagraphB ehavior/@d ropdown = 'start-clo sed')"> | |||
1156 | <htm l:script t ype="text/ javascript " language ="JavaScri pt1.2">Web WorksDropD own.fWrite Arrow(WebW orksRootPa th, " <xsl:value -of select ="concat(' wwdd', $Pa ramParagra ph/@id)" / >", < xsl:value- of select= "$ParamPar agraphBeha vior/@drop down = 'st art-open'" />);</htm l:script> | 1156 | <htm l:script t ype="text/ javascript " language ="JavaScri pt1.2">Web WorksDropD own.fWrite Arrow(WebW orksRootPa th, " <xsl:value -of select ="concat(' wwdd', $Pa ramParagra ph/@id)" / >", < xsl:value- of select= "$ParamPar agraphBeha vior/@drop down = 'st art-open'" />);</htm l:script> | |||
1157 | </xsl :if> | 1157 | </xsl :if> | |||
1158 | </xsl: otherwise> | 1158 | </xsl: otherwise> | |||
1159 | </xsl:c hoose> | 1159 | </xsl:c hoose> | |||
1160 | 1160 | |||||
1161 | <!-- End paragraph emit --> | 1161 | <!-- End paragraph emit --> | |||
1162 | <!-- --> | 1162 | <!-- --> | |||
1163 | </xsl:el ement> | 1163 | </xsl:el ement> | |||
1164 | 1164 | |||||
1165 | <!-- Dro pdown Star t --> | 1165 | <!-- Dro pdown Star t --> | |||
1166 | <!-- --> | 1166 | <!-- --> | |||
1167 | <xsl:if test="($Pa ramParagra phBehavior /@dropdown = 'start- open') or ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> | 1167 | <xsl:if test="($Pa ramParagra phBehavior /@dropdown = 'start- open') or ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> | |||
1168 | <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Open(" ;<xsl:valu e-of selec t="concat( 'wwdd', $P aramParagr aph/@id)" />", <xsl:value -of select ="$ParamPa ragraphBeh avior/@dro pdown = 's tart-open' " />);</ht ml:script> | 1168 | <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Open(" ;<xsl:valu e-of selec t="concat( 'wwdd', $P aramParagr aph/@id)" />", <xsl:value -of select ="$ParamPa ragraphBeh avior/@dro pdown = 's tart-open' " />);</ht ml:script> | |||
1169 | </xsl:if > | 1169 | </xsl:if > | |||
1170 | 1170 | |||||
1171 | <!-- Dro pdown End --> | 1171 | <!-- Dro pdown End --> | |||
1172 | <!-- --> | 1172 | <!-- --> | |||
1173 | <xsl:if test="$Par amParagrap hBehavior/ @dropdown = 'end'"> | 1173 | <xsl:if test="$Par amParagrap hBehavior/ @dropdown = 'end'"> | |||
1174 | <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t> | 1174 | <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t> | |||
1175 | </xsl:if > | 1175 | </xsl:if > | |||
1176 | </xsl:tem plate> | 1176 | </xsl:tem plate> | |||
1177 | 1177 | |||||
1178 | 1178 | |||||
1179 | <xsl:temp late name= "Number"> | 1179 | <xsl:temp late name= "Number"> | |||
1180 | <xsl:par am name="P aramSplits " /> | 1180 | <xsl:par am name="P aramSplits " /> | |||
1181 | <xsl:par am name="P aramCargo" /> | 1181 | <xsl:par am name="P aramCargo" /> | |||
1182 | <xsl:par am name="P aramLinks" /> | 1182 | <xsl:par am name="P aramLinks" /> | |||
1183 | <xsl:par am name="P aramSplit" /> | 1183 | <xsl:par am name="P aramSplit" /> | |||
1184 | <xsl:par am name="P aramParagr aph" /> | 1184 | <xsl:par am name="P aramParagr aph" /> | |||
1185 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1185 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1186 | <xsl:par am name="P aramIgnore DocumentNu mber" /> | 1186 | <xsl:par am name="P aramIgnore DocumentNu mber" /> | |||
1187 | <xsl:par am name="P aramCharac ter" /> | 1187 | <xsl:par am name="P aramCharac ter" /> | |||
1188 | <xsl:par am name="P aramImage" /> | 1188 | <xsl:par am name="P aramImage" /> | |||
1189 | <xsl:par am name="P aramSepara tor" /> | 1189 | <xsl:par am name="P aramSepara tor" /> | |||
1190 | <xsl:par am name="P aramStyle" /> | 1190 | <xsl:par am name="P aramStyle" /> | |||
1191 | 1191 | |||||
1192 | <xsl:cho ose> | 1192 | <xsl:cho ose> | |||
1193 | <xsl:wh en test="$ ParamIgnor eDocumentN umber"> | 1193 | <xsl:wh en test="$ ParamIgnor eDocumentN umber"> | |||
1194 | <xsl:c all-templa te name="C ontent-Bul let"> | 1194 | <xsl:c all-templa te name="C ontent-Bul let"> | |||
1195 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1195 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1196 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1196 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1197 | <xsl: with-param name="Par amParagrap h" select= "$ParamPar agraph" /> | 1197 | <xsl: with-param name="Par amParagrap h" select= "$ParamPar agraph" /> | |||
1198 | <xsl: with-param name="Par amCharacte r" select= "$ParamCha racter" /> | 1198 | <xsl: with-param name="Par amCharacte r" select= "$ParamCha racter" /> | |||
1199 | <xsl: with-param name="Par amImage" s elect="$Pa ramImage" /> | 1199 | <xsl: with-param name="Par amImage" s elect="$Pa ramImage" /> | |||
1200 | <xsl: with-param name="Par amSeparato r" select= "$ParamSep arator" /> | 1200 | <xsl: with-param name="Par amSeparato r" select= "$ParamSep arator" /> | |||
1201 | <xsl: with-param name="Par amStyle" s elect="$Pa ramStyle" /> | 1201 | <xsl: with-param name="Par amStyle" s elect="$Pa ramStyle" /> | |||
1202 | </xsl: call-templ ate> | 1202 | </xsl: call-templ ate> | |||
1203 | </xsl:w hen> | 1203 | </xsl:w hen> | |||
1204 | 1204 | |||||
1205 | <xsl:ot herwise> | 1205 | <xsl:ot herwise> | |||
1206 | <xsl:v ariable na me="VarBul letPropert iesAsXML"> | 1206 | <xsl:v ariable na me="VarBul letPropert iesAsXML"> | |||
1207 | <wwpr oject:Bull etProperti es> | 1207 | <wwpr oject:Bull etProperti es> | |||
1208 | <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> | 1208 | <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> | |||
1209 | </wwp roject:Bul letPropert ies> | 1209 | </wwp roject:Bul letPropert ies> | |||
1210 | </xsl: variable> | 1210 | </xsl: variable> | |||
1211 | <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> | 1211 | <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> | |||
1212 | 1212 | |||||
1213 | <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > | 1213 | <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > | |||
1214 | 1214 | |||||
1215 | <xsl:c all-templa te name="T extRun"> | 1215 | <xsl:c all-templa te name="T extRun"> | |||
1216 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1216 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1217 | <xsl: with-param name="Par amCargo" s elect="$Va rCargo" /> | 1217 | <xsl: with-param name="Par amCargo" s elect="$Va rCargo" /> | |||
1218 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1218 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1219 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1219 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1220 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> | 1220 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> | |||
1221 | <xsl: with-param name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> | 1221 | <xsl: with-param name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> | |||
1222 | <xsl: with-param name="Par amTextRun" select="$ ParamParag raph/wwdoc :Number[1] " /> | 1222 | <xsl: with-param name="Par amTextRun" select="$ ParamParag raph/wwdoc :Number[1] " /> | |||
1223 | <xsl: with-param name="Par amPosition " select=" 0" /> | 1223 | <xsl: with-param name="Par amPosition " select=" 0" /> | |||
1224 | </xsl: call-templ ate> | 1224 | </xsl: call-templ ate> | |||
1225 | </xsl:o therwise> | 1225 | </xsl:o therwise> | |||
1226 | </xsl:ch oose> | 1226 | </xsl:ch oose> | |||
1227 | </xsl:tem plate> | 1227 | </xsl:tem plate> | |||
1228 | 1228 | |||||
1229 | 1229 | |||||
1230 | <xsl:temp late name= "Paragraph TextRuns"> | 1230 | <xsl:temp late name= "Paragraph TextRuns"> | |||
1231 | <xsl:par am name="P aramSplits " /> | 1231 | <xsl:par am name="P aramSplits " /> | |||
1232 | <xsl:par am name="P aramCargo" /> | 1232 | <xsl:par am name="P aramCargo" /> | |||
1233 | <xsl:par am name="P aramLinks" /> | 1233 | <xsl:par am name="P aramLinks" /> | |||
1234 | <xsl:par am name="P aramSplit" /> | 1234 | <xsl:par am name="P aramSplit" /> | |||
1235 | <xsl:par am name="P aramPreser veEmpty" / > | 1235 | <xsl:par am name="P aramPreser veEmpty" / > | |||
1236 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1236 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1237 | <xsl:par am name="P aramParagr aph" /> | 1237 | <xsl:par am name="P aramParagr aph" /> | |||
1238 | 1238 | |||||
1239 | <!-- Pre vent white space issu es with pr eformatted text bloc ks --> | 1239 | <!-- Pre vent white space issu es with pr eformatted text bloc ks --> | |||
1240 | <!-- --> | 1240 | <!-- --> | |||
1241 | <wwexsld oc:NoBreak /> | 1241 | <wwexsld oc:NoBreak /> | |||
1242 | 1242 | |||||
1243 | <!-- Non -empty tex t runs --> | 1243 | <!-- Non -empty tex t runs --> | |||
1244 | <!-- --> | 1244 | <!-- --> | |||
1245 | <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1] | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) > 0]" /> | 1245 | <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1] | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) > 0]" /> | |||
1246 | 1246 | |||||
1247 | <!-- Che ck for emp ty paragra phs --> | 1247 | <!-- Che ck for emp ty paragra phs --> | |||
1248 | <!-- --> | 1248 | <!-- --> | |||
1249 | <xsl:cho ose> | 1249 | <xsl:cho ose> | |||
1250 | <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> | 1250 | <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> | |||
1251 | <!-- P aragraph h as content --> | 1251 | <!-- P aragraph h as content --> | |||
1252 | <!-- --> | 1252 | <!-- --> | |||
1253 | <xsl:f or-each se lect="$Var TextRuns"> | 1253 | <xsl:f or-each se lect="$Var TextRuns"> | |||
1254 | <xsl: variable n ame="VarTe xtRun" sel ect="." /> | 1254 | <xsl: variable n ame="VarTe xtRun" sel ect="." /> | |||
1255 | 1255 | |||||
1256 | <xsl: call-templ ate name=" TextRun"> | 1256 | <xsl: call-templ ate name=" TextRun"> | |||
1257 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1257 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1258 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1258 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1259 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1259 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1260 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1260 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1261 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> | 1261 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> | |||
1262 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> | 1262 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> | |||
1263 | <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> | 1263 | <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> | |||
1264 | <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> | 1264 | <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> | |||
1265 | </xsl :call-temp late> | 1265 | </xsl :call-temp late> | |||
1266 | </xsl: for-each> | 1266 | </xsl: for-each> | |||
1267 | </xsl:w hen> | 1267 | </xsl:w hen> | |||
1268 | 1268 | |||||
1269 | <xsl:ot herwise> | 1269 | <xsl:ot herwise> | |||
1270 | <!-- E mpty parag raph! --> | 1270 | <!-- E mpty parag raph! --> | |||
1271 | <!-- --> | 1271 | <!-- --> | |||
1272 | <xsl:i f test="$P aramPreser veEmpty"> | 1272 | <xsl:i f test="$P aramPreser veEmpty"> | |||
1273 | <html :a name="{ $ParamPara graph/@id} "> </ html:a> | 1273 | <html :a name="{ $ParamPara graph/@id} "> </ html:a> | |||
1274 | </xsl: if> | 1274 | </xsl: if> | |||
1275 | </xsl:o therwise> | 1275 | </xsl:o therwise> | |||
1276 | </xsl:ch oose> | 1276 | </xsl:ch oose> | |||
1277 | </xsl:tem plate> | 1277 | </xsl:tem plate> | |||
1278 | 1278 | |||||
1279 | 1279 | |||||
1280 | <xsl:temp late name= "LinkInfo" > | 1280 | <xsl:temp late name= "LinkInfo" > | |||
1281 | <xsl:par am name="P aramSplits " /> | 1281 | <xsl:par am name="P aramSplits " /> | |||
1282 | <xsl:par am name="P aramLinks" /> | 1282 | <xsl:par am name="P aramLinks" /> | |||
1283 | <xsl:par am name="P aramSplit" /> | 1283 | <xsl:par am name="P aramSplit" /> | |||
1284 | <xsl:par am name="P aramDocume ntLink" /> | 1284 | <xsl:par am name="P aramDocume ntLink" /> | |||
1285 | 1285 | |||||
1286 | <xsl:ele ment name= "LinkInfo" namespace ="urn:WebW orks-Engin e-Links-Sc hema"> | 1286 | <xsl:ele ment name= "LinkInfo" namespace ="urn:WebW orks-Engin e-Links-Sc hema"> | |||
1287 | <xsl:if test="cou nt($ParamD ocumentLin k) > 0" > | 1287 | <xsl:if test="cou nt($ParamD ocumentLin k) > 0" > | |||
1288 | <!-- R esolve lin k --> | 1288 | <!-- R esolve lin k --> | |||
1289 | <!-- --> | 1289 | <!-- --> | |||
1290 | <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> | 1290 | <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> | |||
1291 | <xsl: call-templ ate name=" Links-Reso lve"> | 1291 | <xsl: call-templ ate name=" Links-Reso lve"> | |||
1292 | <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > | 1292 | <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > | |||
1293 | <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > | 1293 | <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > | |||
1294 | <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL" /> | 1294 | <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL" /> | |||
1295 | <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> | 1295 | <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> | |||
1296 | <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> | 1296 | <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> | |||
1297 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1297 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1298 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1298 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1299 | <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> | 1299 | <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> | |||
1300 | <xsl :with-para m name="Pa ramSplitDo cumentID" select="$P aramSplit/ @documentI D" /> | 1300 | <xsl :with-para m name="Pa ramSplitDo cumentID" select="$P aramSplit/ @documentI D" /> | |||
1301 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> | 1301 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> | |||
1302 | </xsl :call-temp late> | 1302 | </xsl :call-temp late> | |||
1303 | </xsl: variable> | 1303 | </xsl: variable> | |||
1304 | <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> | 1304 | <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> | |||
1305 | 1305 | |||||
1306 | <!-- @ title --> | 1306 | <!-- @ title --> | |||
1307 | <!-- --> | 1307 | <!-- --> | |||
1308 | <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title) > 0"> | 1308 | <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title) > 0"> | |||
1309 | <xsl: attribute name="titl e"> | 1309 | <xsl: attribute name="titl e"> | |||
1310 | <xsl :value-of select="$V arResolved LinkInfo/@ title" /> | 1310 | <xsl :value-of select="$V arResolved LinkInfo/@ title" /> | |||
1311 | </xsl :attribute > | 1311 | </xsl :attribute > | |||
1312 | </xsl: if> | 1312 | </xsl: if> | |||
1313 | 1313 | |||||
1314 | <xsl:c hoose> | 1314 | <xsl:c hoose> | |||
1315 | <!-- Baggage -- > | 1315 | <!-- Baggage -- > | |||
1316 | <!-- -- > | 1316 | <!-- -- > | |||
1317 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'baggage'" > | 1317 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'baggage'" > | |||
1318 | <xsl :variable name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > | 1318 | <xsl :variable name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > | |||
1319 | 1319 | |||||
1320 | <xsl :attribute name="hre f"> | 1320 | <xsl :attribute name="hre f"> | |||
1321 | <xs l:value-of select="$ VarRelativ ePath" /> | 1321 | <xs l:value-of select="$ VarRelativ ePath" /> | |||
1322 | </xs l:attribut e> | 1322 | </xs l:attribut e> | |||
1323 | 1323 | |||||
1324 | <xsl :variable name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> | 1324 | <xsl :variable name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> | |||
1325 | 1325 | |||||
1326 | <xsl :if test=" (string-le ngth($VarT arget) > ; 0) and ( $VarTarget != 'none' )"> | 1326 | <xsl :if test=" (string-le ngth($VarT arget) > ; 0) and ( $VarTarget != 'none' )"> | |||
1327 | <xs l:attribut e name="ta rget"> | 1327 | <xs l:attribut e name="ta rget"> | |||
1328 | <x sl:value-o f select=" $VarTarget " /> | 1328 | <x sl:value-o f select=" $VarTarget " /> | |||
1329 | </x sl:attribu te> | 1329 | </x sl:attribu te> | |||
1330 | </xs l:if> | 1330 | </xs l:if> | |||
1331 | </xsl :when> | 1331 | </xsl :when> | |||
1332 | 1332 | |||||
1333 | <!-- Document - -> | 1333 | <!-- Document - -> | |||
1334 | <!-- - -> | 1334 | <!-- - -> | |||
1335 | <xsl: when test= "($VarReso lvedLinkIn fo/@type = 'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> | 1335 | <xsl: when test= "($VarReso lvedLinkIn fo/@type = 'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> | |||
1336 | <xsl :choose> | 1336 | <xsl :choose> | |||
1337 | <!- - Popup -- > | 1337 | <!- - Popup -- > | |||
1338 | <!- - -- > | 1338 | <!- - -- > | |||
1339 | <xs l:when tes t="$VarRes olvedLinkI nfo/@popup = 'true'" > | 1339 | <xs l:when tes t="$VarRes olvedLinkI nfo/@popup = 'true'" > | |||
1340 | <x sl:variabl e name="Va rPopupPath "> | 1340 | <x sl:variabl e name="Va rPopupPath "> | |||
1341 | < xsl:for-ea ch select= "$GlobalPr ojectSplit s[1]"> | 1341 | < xsl:for-ea ch select= "$GlobalPr ojectSplit s[1]"> | |||
1342 | <xsl:varia ble name=" VarSplitsP opups" sel ect="key(' wwsplits-p opups-by-i d', $VarRe solvedLink Info/@link id)[@docum entID = $V arResolved LinkInfo/@ documentID ]" /> | 1342 | <xsl:varia ble name=" VarSplitsP opups" sel ect="key(' wwsplits-p opups-by-i d', $VarRe solvedLink Info/@link id)[@docum entID = $V arResolved LinkInfo/@ documentID ]" /> | |||
1343 | <xsl:for-e ach select ="$VarSpli tsPopups[1 ]"> | 1343 | <xsl:for-e ach select ="$VarSpli tsPopups[1 ]"> | |||
1344 | <xsl:vari able name= "VarSplits Popup" sel ect="." /> | 1344 | <xsl:vari able name= "VarSplits Popup" sel ect="." /> | |||
1345 | 1345 | |||||
1346 | <xsl:call -template name="Reso lveLinkPat h"> | 1346 | <xsl:call -template name="Reso lveLinkPat h"> | |||
1347 | <xsl:wit h-param na me="ParamS plit" sele ct="$Param Split" /> | 1347 | <xsl:wit h-param na me="ParamS plit" sele ct="$Param Split" /> | |||
1348 | <xsl:wit h-param na me="ParamL inkGroupID " select=" $VarSplits Popup/@gro upID" /> | 1348 | <xsl:wit h-param na me="ParamL inkGroupID " select=" $VarSplits Popup/@gro upID" /> | |||
1349 | <xsl:wit h-param na me="ParamL inkPath" s elect="$Va rSplitsPop up/@path" /> | 1349 | <xsl:wit h-param na me="ParamL inkPath" s elect="$Va rSplitsPop up/@path" /> | |||
1350 | </xsl:cal l-template > | 1350 | </xsl:cal l-template > | |||
1351 | </xsl:for- each> | 1351 | </xsl:for- each> | |||
1352 | < /xsl:for-e ach> | 1352 | < /xsl:for-e ach> | |||
1353 | </ xsl:variab le> | 1353 | </ xsl:variab le> | |||
1354 | 1354 | |||||
1355 | <! -- href -- > | 1355 | <! -- href -- > | |||
1356 | <! -- -- > | 1356 | <! -- -- > | |||
1357 | <x sl:attribu te name="h ref"> | 1357 | <x sl:attribu te name="h ref"> | |||
1358 | < xsl:text>j avascript: WebWorksHT MLHelp.fSh owPopup('< /xsl:text> | 1358 | < xsl:text>j avascript: WebWorksHT MLHelp.fSh owPopup('< /xsl:text> | |||
1359 | < xsl:value- of select= "wwstring: JavaScript Encoding($ VarPopupPa th)" /> | 1359 | < xsl:value- of select= "wwstring: JavaScript Encoding($ VarPopupPa th)" /> | |||
1360 | < xsl:text>' );</xsl:te xt> | 1360 | < xsl:text>' );</xsl:te xt> | |||
1361 | </ xsl:attrib ute> | 1361 | </ xsl:attrib ute> | |||
1362 | 1362 | |||||
1363 | <! -- onMouse Over --> | 1363 | <! -- onMouse Over --> | |||
1364 | <! -- --> | 1364 | <! -- --> | |||
1365 | <x sl:attribu te name="o nMouseOver "> | 1365 | <x sl:attribu te name="o nMouseOver "> | |||
1366 | < xsl:text>W ebWorksHTM LHelp.fMou seOverPopu p(event);< /xsl:text> | 1366 | < xsl:text>W ebWorksHTM LHelp.fMou seOverPopu p(event);< /xsl:text> | |||
1367 | </ xsl:attrib ute> | 1367 | </ xsl:attrib ute> | |||
1368 | 1368 | |||||
1369 | <! -- onMouse Out --> | 1369 | <! -- onMouse Out --> | |||
1370 | <! -- --> | 1370 | <! -- --> | |||
1371 | <x sl:attribu te name="o nMouseOut" > | 1371 | <x sl:attribu te name="o nMouseOut" > | |||
1372 | < xsl:text>W ebWorksHTM LHelp.fMou seOutPopup ();</xsl:t ext> | 1372 | < xsl:text>W ebWorksHTM LHelp.fMou seOutPopup ();</xsl:t ext> | |||
1373 | </ xsl:attrib ute> | 1373 | </ xsl:attrib ute> | |||
1374 | </x sl:when> | 1374 | </x sl:when> | |||
1375 | 1375 | |||||
1376 | <!- - Link --> | 1376 | <!- - Link --> | |||
1377 | <!- - --> | 1377 | <!- - --> | |||
1378 | <xs l:otherwis e> | 1378 | <xs l:otherwis e> | |||
1379 | <x sl:variabl e name="Va rLinkPath" > | 1379 | <x sl:variabl e name="Va rLinkPath" > | |||
1380 | < xsl:call-t emplate na me="Resolv eLinkPath" > | 1380 | < xsl:call-t emplate na me="Resolv eLinkPath" > | |||
1381 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | 1381 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | |||
1382 | <xsl:with- param name ="ParamLin kGroupID" select="$V arResolved LinkInfo/@ groupID" / > | 1382 | <xsl:with- param name ="ParamLin kGroupID" select="$V arResolved LinkInfo/@ groupID" / > | |||
1383 | <xsl:with- param name ="ParamLin kPath" sel ect="$VarR esolvedLin kInfo/@pat h" /> | 1383 | <xsl:with- param name ="ParamLin kPath" sel ect="$VarR esolvedLin kInfo/@pat h" /> | |||
1384 | < /xsl:call- template> | 1384 | < /xsl:call- template> | |||
1385 | </ xsl:variab le> | 1385 | </ xsl:variab le> | |||
1386 | 1386 | |||||
1387 | <! -- href -- > | 1387 | <! -- href -- > | |||
1388 | <! -- -- > | 1388 | <! -- -- > | |||
1389 | <x sl:attribu te name="h ref"> | 1389 | <x sl:attribu te name="h ref"> | |||
1390 | < xsl:value- of select= "$VarLinkP ath" /> | 1390 | < xsl:value- of select= "$VarLinkP ath" /> | |||
1391 | < xsl:if tes t="string- length($Pa ramDocumen tLink/@anc hor) > 0"> | 1391 | < xsl:if tes t="string- length($Pa ramDocumen tLink/@anc hor) > 0"> | |||
1392 | <xsl:text> #</xsl:tex t> | 1392 | <xsl:text> #</xsl:tex t> | |||
1393 | <xsl:value -of select ="$VarReso lvedLinkIn fo/@linkid " /> | 1393 | <xsl:value -of select ="$VarReso lvedLinkIn fo/@linkid " /> | |||
1394 | < /xsl:if> | 1394 | < /xsl:if> | |||
1395 | </ xsl:attrib ute> | 1395 | </ xsl:attrib ute> | |||
1396 | </x sl:otherwi se> | 1396 | </x sl:otherwi se> | |||
1397 | </xs l:choose> | 1397 | </xs l:choose> | |||
1398 | </xsl :when> | 1398 | </xsl :when> | |||
1399 | 1399 | |||||
1400 | <!-- URL --> | 1400 | <!-- URL --> | |||
1401 | <!-- --> | 1401 | <!-- --> | |||
1402 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'url'"> | 1402 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'url'"> | |||
1403 | <xsl :attribute name="hre f"> | 1403 | <xsl :attribute name="hre f"> | |||
1404 | <xs l:value-of select="$ VarResolve dLinkInfo/ @url" /> | 1404 | <xs l:value-of select="$ VarResolve dLinkInfo/ @url" /> | |||
1405 | </xs l:attribut e> | 1405 | </xs l:attribut e> | |||
1406 | 1406 | |||||
1407 | <!-- External URL Target --> | 1407 | <!-- External URL Target --> | |||
1408 | <!-- --> | 1408 | <!-- --> | |||
1409 | <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> | 1409 | <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> | |||
1410 | <xs l:variable name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> | 1410 | <xs l:variable name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> | |||
1411 | 1411 | |||||
1412 | <xs l:if test= "(string-l ength($Var Target) &g t; 0) and ($VarTarge t != 'none ')"> | 1412 | <xs l:if test= "(string-l ength($Var Target) &g t; 0) and ($VarTarge t != 'none ')"> | |||
1413 | <x sl:attribu te name="t arget"> | 1413 | <x sl:attribu te name="t arget"> | |||
1414 | < xsl:value- of select= "$VarTarge t" /> | 1414 | < xsl:value- of select= "$VarTarge t" /> | |||
1415 | </ xsl:attrib ute> | 1415 | </ xsl:attrib ute> | |||
1416 | </x sl:if> | 1416 | </x sl:if> | |||
1417 | </xs l:if> | 1417 | </xs l:if> | |||
1418 | </xsl :when> | 1418 | </xsl :when> | |||
1419 | </xsl: choose> | 1419 | </xsl: choose> | |||
1420 | </xsl:i f> | 1420 | </xsl:i f> | |||
1421 | </xsl:el ement> | 1421 | </xsl:el ement> | |||
1422 | </xsl:tem plate> | 1422 | </xsl:tem plate> | |||
1423 | 1423 | |||||
1424 | 1424 | |||||
1425 | <xsl:temp late name= "ResolveLi nkPath"> | 1425 | <xsl:temp late name= "ResolveLi nkPath"> | |||
1426 | <xsl:par am name="P aramSplit" /> | 1426 | <xsl:par am name="P aramSplit" /> | |||
1427 | <xsl:par am name="P aramLinkGr oupID" /> | 1427 | <xsl:par am name="P aramLinkGr oupID" /> | |||
1428 | <xsl:par am name="P aramLinkPa th" /> | 1428 | <xsl:par am name="P aramLinkPa th" /> | |||
1429 | 1429 | |||||
1430 | <xsl:cho ose> | 1430 | <xsl:cho ose> | |||
1431 | <!-- Sa me group - -> | 1431 | <!-- Sa me group - -> | |||
1432 | <!-- - -> | 1432 | <!-- - -> | |||
1433 | <xsl:wh en test="$ ParamLinkG roupID = $ ParamSplit /@groupID" > | 1433 | <xsl:wh en test="$ ParamLinkG roupID = $ ParamSplit /@groupID" > | |||
1434 | <xsl:v alue-of se lect="wwur i:GetRelat iveTo($Par amLinkPath , $ParamSp lit/@path) " /> | 1434 | <xsl:v alue-of se lect="wwur i:GetRelat iveTo($Par amLinkPath , $ParamSp lit/@path) " /> | |||
1435 | </xsl:w hen> | 1435 | </xsl:w hen> | |||
1436 | 1436 | |||||
1437 | <!-- Di fferent gr oup --> | 1437 | <!-- Di fferent gr oup --> | |||
1438 | <!-- --> | 1438 | <!-- --> | |||
1439 | <xsl:ot herwise> | 1439 | <xsl:ot herwise> | |||
1440 | <xsl:f or-each se lect="$Glo balProject Splits[1]" > | 1440 | <xsl:f or-each se lect="$Glo balProject Splits[1]" > | |||
1441 | <xsl: variable n ame="VarCH MSplit" se lect="key( 'wwsplits- files-by-g roupid-typ e', concat ($ParamLin kGroupID, ':', $Para meterCHMSp litFileTyp e))[1]" /> | 1441 | <xsl: variable n ame="VarCH MSplit" se lect="key( 'wwsplits- files-by-g roupid-typ e', concat ($ParamLin kGroupID, ':', $Para meterCHMSp litFileTyp e))[1]" /> | |||
1442 | <xsl: variable n ame="VarGr oupName" s elect="wwp rojext:Get GroupName( $ParamLink GroupID)" /> | 1442 | <xsl: variable n ame="VarGr oupName" s elect="wwp rojext:Get GroupName( $ParamLink GroupID)" /> | |||
1443 | <xsl: variable n ame="VarGr oupOutputD irectoryPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), $VarG roupName, 'dummy.com ponent')" /> | 1443 | <xsl: variable n ame="VarGr oupOutputD irectoryPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), $VarG roupName, 'dummy.com ponent')" /> | |||
1444 | <xsl: variable n ame="VarIn ternalCHMP ath" selec t="wwuri:G etRelative To($ParamL inkPath, $ VarGroupOu tputDirect oryPath)" /> | 1444 | <xsl: variable n ame="VarIn ternalCHMP ath" selec t="wwuri:G etRelative To($ParamL inkPath, $ VarGroupOu tputDirect oryPath)" /> | |||
1445 | 1445 | |||||
1446 | <xsl: value-of s elect="con cat('ms-it s:', wwfil esystem:Ge tFileName( $VarCHMSpl it/@path), '::/', $V arInternal CHMPath)" /> | 1446 | <xsl: value-of s elect="con cat('ms-it s:', wwfil esystem:Ge tFileName( $VarCHMSpl it/@path), '::/', $V arInternal CHMPath)" /> | |||
1447 | </xsl: for-each> | 1447 | </xsl: for-each> | |||
1448 | </xsl:o therwise> | 1448 | </xsl:o therwise> | |||
1449 | </xsl:ch oose> | 1449 | </xsl:ch oose> | |||
1450 | </xsl:tem plate> | 1450 | </xsl:tem plate> | |||
1451 | 1451 | |||||
1452 | 1452 | |||||
1453 | <xsl:temp late name= "TextRun"> | 1453 | <xsl:temp late name= "TextRun"> | |||
1454 | <xsl:par am name="P aramSplits " /> | 1454 | <xsl:par am name="P aramSplits " /> | |||
1455 | <xsl:par am name="P aramCargo" /> | 1455 | <xsl:par am name="P aramCargo" /> | |||
1456 | <xsl:par am name="P aramLinks" /> | 1456 | <xsl:par am name="P aramLinks" /> | |||
1457 | <xsl:par am name="P aramSplit" /> | 1457 | <xsl:par am name="P aramSplit" /> | |||
1458 | <xsl:par am name="P aramParagr aphID" /> | 1458 | <xsl:par am name="P aramParagr aphID" /> | |||
1459 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1459 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1460 | <xsl:par am name="P aramTextRu n" /> | 1460 | <xsl:par am name="P aramTextRu n" /> | |||
1461 | <xsl:par am name="P aramPositi on" /> | 1461 | <xsl:par am name="P aramPositi on" /> | |||
1462 | 1462 | |||||
1463 | <!-- Get rule --> | 1463 | <!-- Get rule --> | |||
1464 | <!-- --> | 1464 | <!-- --> | |||
1465 | <xsl:var iable name ="VarRule" select="w wprojext:G etRule('Ch aracter', $ParamText Run/@style name)" /> | 1465 | <xsl:var iable name ="VarRule" select="w wprojext:G etRule('Ch aracter', $ParamText Run/@style name)" /> | |||
1466 | 1466 | |||||
1467 | <!-- Gen erate outp ut? --> | 1467 | <!-- Gen erate outp ut? --> | |||
1468 | <!--- --> | 1468 | <!--- --> | |||
1469 | <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ge nerate-out put']/@Val ue" /> | 1469 | <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ge nerate-out put']/@Val ue" /> | |||
1470 | <xsl:var iable name ="VarGener ateOutput" select="( string-len gth($VarGe nerateOutp utOption) = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> | 1470 | <xsl:var iable name ="VarGener ateOutput" select="( string-len gth($VarGe nerateOutp utOption) = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> | |||
1471 | <xsl:if test="$Var GenerateOu tput"> | 1471 | <xsl:if test="$Var GenerateOu tput"> | |||
1472 | <!-- Pa ss-through ? --> | 1472 | <!-- Pa ss-through ? --> | |||
1473 | <!-- --> | 1473 | <!-- --> | |||
1474 | <xsl:va riable nam e="VarPass Through"> | 1474 | <xsl:va riable nam e="VarPass Through"> | |||
1475 | <xsl:c all-templa te name="C onditions- PassThroug h"> | 1475 | <xsl:c all-templa te name="C onditions- PassThroug h"> | |||
1476 | <xsl: with-param name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> | 1476 | <xsl: with-param name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> | |||
1477 | </xsl: call-templ ate> | 1477 | </xsl: call-templ ate> | |||
1478 | </xsl:v ariable> | 1478 | </xsl:v ariable> | |||
1479 | 1479 | |||||
1480 | <xsl:ch oose> | 1480 | <xsl:ch oose> | |||
1481 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | 1481 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | |||
1482 | <xsl: call-templ ate name=" TextRun-Pa ssThrough" > | 1482 | <xsl: call-templ ate name=" TextRun-Pa ssThrough" > | |||
1483 | <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> | 1483 | <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> | |||
1484 | </xsl :call-temp late> | 1484 | </xsl :call-temp late> | |||
1485 | </xsl: when> | 1485 | </xsl: when> | |||
1486 | 1486 | |||||
1487 | <xsl:o therwise> | 1487 | <xsl:o therwise> | |||
1488 | <!-- A-Link? -- > | 1488 | <!-- A-Link? -- > | |||
1489 | <!-- -- > | 1489 | <!-- -- > | |||
1490 | <xsl: variable n ame="VarAL inkOption" select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'alink']/ @Value" /> | 1490 | <xsl: variable n ame="VarAL inkOption" select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'alink']/ @Value" /> | |||
1491 | <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption = 'true'" / > | 1491 | <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption = 'true'" / > | |||
1492 | 1492 | |||||
1493 | <xsl: choose> | 1493 | <xsl: choose> | |||
1494 | <!-- Handle A- Links --> | 1494 | <!-- Handle A- Links --> | |||
1495 | <!-- --> | 1495 | <!-- --> | |||
1496 | <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1]) = 0) and ( $VarALink) "> | 1496 | <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1]) = 0) and ( $VarALink) "> | |||
1497 | <!- - Update c argo --> | 1497 | <!- - Update c argo --> | |||
1498 | <!- - --> | 1498 | <!- - --> | |||
1499 | <xs l:variable name="Var CargoALink AsXML"> | 1499 | <xs l:variable name="Var CargoALink AsXML"> | |||
1500 | <w walinks:AL ink> | 1500 | <w walinks:AL ink> | |||
1501 | < xsl:attrib ute name=" href"> | 1501 | < xsl:attrib ute name=" href"> | |||
1502 | <xsl:value -of select ="concat(' javascript :WebWorksS eeAlso.fOn ClickLink( "ALin k_', trans late($Para mTextRun/@ id, '-', ' _'), '&quo t;);')" /> | 1502 | <xsl:value -of select ="concat(' javascript :WebWorksS eeAlso.fOn ClickLink( "ALin k_', trans late($Para mTextRun/@ id, '-', ' _'), '&quo t;);')" /> | |||
1503 | < /xsl:attri bute> | 1503 | < /xsl:attri bute> | |||
1504 | </ wwalinks:A Link> | 1504 | </ wwalinks:A Link> | |||
1505 | </x sl:variabl e> | 1505 | </x sl:variabl e> | |||
1506 | <xs l:variable name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" /> | 1506 | <xs l:variable name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" /> | |||
1507 | <xs l:variable name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink" /> | 1507 | <xs l:variable name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink" /> | |||
1508 | 1508 | |||||
1509 | <xs l:call-tem plate name ="TextRun- Normal"> | 1509 | <xs l:call-tem plate name ="TextRun- Normal"> | |||
1510 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 1510 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
1511 | <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo" /> | 1511 | <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo" /> | |||
1512 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 1512 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
1513 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 1513 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
1514 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | 1514 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | |||
1515 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > | 1515 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > | |||
1516 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | 1516 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | |||
1517 | <x sl:with-pa ram name=" ParamRule" select="$ VarRule" / > | 1517 | <x sl:with-pa ram name=" ParamRule" select="$ VarRule" / > | |||
1518 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | 1518 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | |||
1519 | </x sl:call-te mplate> | 1519 | </x sl:call-te mplate> | |||
1520 | </xs l:when> | 1520 | </xs l:when> | |||
1521 | 1521 | |||||
1522 | <xsl :otherwise > | 1522 | <xsl :otherwise > | |||
1523 | <xs l:call-tem plate name ="TextRun- Normal"> | 1523 | <xs l:call-tem plate name ="TextRun- Normal"> | |||
1524 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 1524 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
1525 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 1525 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
1526 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 1526 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
1527 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 1527 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
1528 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | 1528 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | |||
1529 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > | 1529 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > | |||
1530 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | 1530 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | |||
1531 | <x sl:with-pa ram name=" ParamRule" select="$ VarRule" / > | 1531 | <x sl:with-pa ram name=" ParamRule" select="$ VarRule" / > | |||
1532 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | 1532 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | |||
1533 | </x sl:call-te mplate> | 1533 | </x sl:call-te mplate> | |||
1534 | </xs l:otherwis e> | 1534 | </xs l:otherwis e> | |||
1535 | </xsl :choose> | 1535 | </xsl :choose> | |||
1536 | </xsl: otherwise> | 1536 | </xsl: otherwise> | |||
1537 | </xsl:c hoose> | 1537 | </xsl:c hoose> | |||
1538 | </xsl:if > | 1538 | </xsl:if > | |||
1539 | </xsl:tem plate> | 1539 | </xsl:tem plate> | |||
1540 | 1540 | |||||
1541 | 1541 | |||||
1542 | <xsl:temp late name= "TextRun-P assThrough "> | 1542 | <xsl:temp late name= "TextRun-P assThrough "> | |||
1543 | <xsl:par am name="P aramTextRu n" /> | 1543 | <xsl:par am name="P aramTextRu n" /> | |||
1544 | 1544 | |||||
1545 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | 1545 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | |||
1546 | <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > | 1546 | <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > | |||
1547 | <xsl:v ariable na me="VarTex t" select= "." /> | 1547 | <xsl:v ariable na me="VarTex t" select= "." /> | |||
1548 | 1548 | |||||
1549 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | 1549 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | |||
1550 | </xsl:f or-each> | 1550 | </xsl:f or-each> | |||
1551 | </wwexsl doc:Text> | 1551 | </wwexsl doc:Text> | |||
1552 | </xsl:tem plate> | 1552 | </xsl:tem plate> | |||
1553 | 1553 | |||||
1554 | 1554 | |||||
1555 | <xsl:temp late name= "TextRun-N ormal"> | 1555 | <xsl:temp late name= "TextRun-N ormal"> | |||
1556 | <xsl:par am name="P aramSplits " /> | 1556 | <xsl:par am name="P aramSplits " /> | |||
1557 | <xsl:par am name="P aramCargo" /> | 1557 | <xsl:par am name="P aramCargo" /> | |||
1558 | <xsl:par am name="P aramLinks" /> | 1558 | <xsl:par am name="P aramLinks" /> | |||
1559 | <xsl:par am name="P aramSplit" /> | 1559 | <xsl:par am name="P aramSplit" /> | |||
1560 | <xsl:par am name="P aramParagr aphID" /> | 1560 | <xsl:par am name="P aramParagr aphID" /> | |||
1561 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1561 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1562 | <xsl:par am name="P aramTextRu n" /> | 1562 | <xsl:par am name="P aramTextRu n" /> | |||
1563 | <xsl:par am name="P aramRule" /> | 1563 | <xsl:par am name="P aramRule" /> | |||
1564 | <xsl:par am name="P aramPositi on" /> | 1564 | <xsl:par am name="P aramPositi on" /> | |||
1565 | 1565 | |||||
1566 | <xsl:cho ose> | 1566 | <xsl:cho ose> | |||
1567 | <xsl:wh en test="( $ParamUseC haracterSt yles) and ((string-l ength($Par amTextRun/ @stylename ) > 0) or (count( $ParamText Run/wwdoc: Style) = 1 ))"> | 1567 | <xsl:wh en test="( $ParamUseC haracterSt yles) and ((string-l ength($Par amTextRun/ @stylename ) > 0) or (count( $ParamText Run/wwdoc: Style) = 1 ))"> | |||
1568 | <!-- G et overrid e rule --> | 1568 | <!-- G et overrid e rule --> | |||
1569 | <!-- --> | 1569 | <!-- --> | |||
1570 | <xsl:v ariable na me="VarOve rrideRule" select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / > | 1570 | <xsl:v ariable na me="VarOve rrideRule" select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / > | |||
1571 | 1571 | |||||
1572 | <!-- R esolve pro ject prope rties --> | 1572 | <!-- R esolve pro ject prope rties --> | |||
1573 | <!-- --> | 1573 | <!-- --> | |||
1574 | <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> | 1574 | <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> | |||
1575 | <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> | 1575 | <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> | |||
1576 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property" /> | 1576 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property" /> | |||
1577 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> | 1577 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> | |||
1578 | </xsl :call-temp late> | 1578 | </xsl :call-temp late> | |||
1579 | </xsl: variable> | 1579 | </xsl: variable> | |||
1580 | <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > | 1580 | <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > | |||
1581 | 1581 | |||||
1582 | <!-- C SS propert ies --> | 1582 | <!-- C SS propert ies --> | |||
1583 | <!-- --> | 1583 | <!-- --> | |||
1584 | <xsl:v ariable na me="VarCSS Properties AsXML"> | 1584 | <xsl:v ariable na me="VarCSS Properties AsXML"> | |||
1585 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | 1585 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | |||
1586 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> | 1586 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> | |||
1587 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | 1587 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | |||
1588 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1588 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1589 | </xsl :call-temp late> | 1589 | </xsl :call-temp late> | |||
1590 | </xsl: variable> | 1590 | </xsl: variable> | |||
1591 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | 1591 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | |||
1592 | 1592 | |||||
1593 | <!-- A bbreviatio n --> | 1593 | <!-- A bbreviatio n --> | |||
1594 | <!-- --> | 1594 | <!-- --> | |||
1595 | <xsl:v ariable na me="VarAbb reviationT itle"> | 1595 | <xsl:v ariable na me="VarAbb reviationT itle"> | |||
1596 | <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> | 1596 | <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> | |||
1597 | <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> | 1597 | <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> | |||
1598 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1598 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1599 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | 1599 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | |||
1600 | <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > | 1600 | <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > | |||
1601 | <xsl :with-para m name="Pa ramOption" select="' abbreviati on'" /> | 1601 | <xsl :with-para m name="Pa ramOption" select="' abbreviati on'" /> | |||
1602 | </xsl :call-temp late> | 1602 | </xsl :call-temp late> | |||
1603 | </xsl: variable> | 1603 | </xsl: variable> | |||
1604 | 1604 | |||||
1605 | <!-- A cronym --> | 1605 | <!-- A cronym --> | |||
1606 | <!-- --> | 1606 | <!-- --> | |||
1607 | <xsl:v ariable na me="VarAcr onymTitle" > | 1607 | <xsl:v ariable na me="VarAcr onymTitle" > | |||
1608 | <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> | 1608 | <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> | |||
1609 | <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> | 1609 | <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> | |||
1610 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1610 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1611 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | 1611 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | |||
1612 | <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > | 1612 | <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > | |||
1613 | <xsl :with-para m name="Pa ramOption" select="' acronym'" /> | 1613 | <xsl :with-para m name="Pa ramOption" select="' acronym'" /> | |||
1614 | </xsl :call-temp late> | 1614 | </xsl :call-temp late> | |||
1615 | </xsl: variable> | 1615 | </xsl: variable> | |||
1616 | 1616 | |||||
1617 | <!-- C itation -- > | 1617 | <!-- C itation -- > | |||
1618 | <!-- -- > | 1618 | <!-- -- > | |||
1619 | <xsl:v ariable na me="VarCit ation"> | 1619 | <xsl:v ariable na me="VarCit ation"> | |||
1620 | <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> | 1620 | <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> | |||
1621 | <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> | 1621 | <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> | |||
1622 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1622 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1623 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | 1623 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | |||
1624 | <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > | 1624 | <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > | |||
1625 | <xsl :with-para m name="Pa ramOption" select="' citation'" /> | 1625 | <xsl :with-para m name="Pa ramOption" select="' citation'" /> | |||
1626 | </xsl :call-temp late> | 1626 | </xsl :call-temp late> | |||
1627 | </xsl: variable> | 1627 | </xsl: variable> | |||
1628 | 1628 | |||||
1629 | <!-- T ag --> | 1629 | <!-- T ag --> | |||
1630 | <!-- --> | 1630 | <!-- --> | |||
1631 | <xsl:v ariable na me="VarTag Property" select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> | 1631 | <xsl:v ariable na me="VarTag Property" select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> | |||
1632 | <xsl:v ariable na me="VarTag "> | 1632 | <xsl:v ariable na me="VarTag "> | |||
1633 | <xsl: choose> | 1633 | <xsl: choose> | |||
1634 | <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0"> | 1634 | <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0"> | |||
1635 | <xs l:value-of select="' abbr'" /> | 1635 | <xs l:value-of select="' abbr'" /> | |||
1636 | </xs l:when> | 1636 | </xs l:when> | |||
1637 | <xsl :when test ="string-l ength($Var AcronymTit le) > 0 "> | 1637 | <xsl :when test ="string-l ength($Var AcronymTit le) > 0 "> | |||
1638 | <xs l:value-of select="' acronym'" /> | 1638 | <xs l:value-of select="' acronym'" /> | |||
1639 | </xs l:when> | 1639 | </xs l:when> | |||
1640 | <xsl :when test ="string-l ength($Var Citation) > 0"> | 1640 | <xsl :when test ="string-l ength($Var Citation) > 0"> | |||
1641 | <xs l:value-of select="' q'" /> | 1641 | <xs l:value-of select="' q'" /> | |||
1642 | </xs l:when> | 1642 | </xs l:when> | |||
1643 | <xsl :otherwise > | 1643 | <xsl :otherwise > | |||
1644 | <xs l:choose> | 1644 | <xs l:choose> | |||
1645 | <x sl:when te st="string -length($V arTagPrope rty) > 0"> | 1645 | <x sl:when te st="string -length($V arTagPrope rty) > 0"> | |||
1646 | < xsl:value- of select= "$VarTagPr operty" /> | 1646 | < xsl:value- of select= "$VarTagPr operty" /> | |||
1647 | </ xsl:when> | 1647 | </ xsl:when> | |||
1648 | 1648 | |||||
1649 | <x sl:otherwi se> | 1649 | <x sl:otherwi se> | |||
1650 | < xsl:value- of select= "'span'" / > | 1650 | < xsl:value- of select= "'span'" / > | |||
1651 | </ xsl:otherw ise> | 1651 | </ xsl:otherw ise> | |||
1652 | </x sl:choose> | 1652 | </x sl:choose> | |||
1653 | </xs l:otherwis e> | 1653 | </xs l:otherwis e> | |||
1654 | </xsl :choose> | 1654 | </xsl :choose> | |||
1655 | </xsl: variable> | 1655 | </xsl: variable> | |||
1656 | 1656 | |||||
1657 | <!-- C lass attri bute --> | 1657 | <!-- C lass attri bute --> | |||
1658 | <!-- --> | 1658 | <!-- --> | |||
1659 | <xsl:v ariable na me="VarCla ssAttribut e"> | 1659 | <xsl:v ariable na me="VarCla ssAttribut e"> | |||
1660 | <xsl: choose> | 1660 | <xsl: choose> | |||
1661 | <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name = 'bullet- style']/@V alue) > 0"> | 1661 | <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name = 'bullet- style']/@V alue) > 0"> | |||
1662 | <xs l:value-of select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> | 1662 | <xs l:value-of select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> | |||
1663 | </xs l:when> | 1663 | </xs l:when> | |||
1664 | 1664 | |||||
1665 | <xsl :otherwise > | 1665 | <xsl :otherwise > | |||
1666 | <xs l:value-of select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> | 1666 | <xs l:value-of select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> | |||
1667 | </xs l:otherwis e> | 1667 | </xs l:otherwis e> | |||
1668 | </xsl :choose> | 1668 | </xsl :choose> | |||
1669 | 1669 | |||||
1670 | <!-- Additional CSS class es --> | 1670 | <!-- Additional CSS class es --> | |||
1671 | <!-- --> | 1671 | <!-- --> | |||
1672 | <xsl: variable n ame="VarAd ditionalCS SClassesOp tion" sele ct="normal ize-space( $VarOverri deRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name = 'additiona l-css-clas ses']/@Val ue)" /> | 1672 | <xsl: variable n ame="VarAd ditionalCS SClassesOp tion" sele ct="normal ize-space( $VarOverri deRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name = 'additiona l-css-clas ses']/@Val ue)" /> | |||
1673 | <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) > 0"> | 1673 | <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) > 0"> | |||
1674 | <xsl :text> </x sl:text> | 1674 | <xsl :text> </x sl:text> | |||
1675 | <xsl :value-of select="$V arAddition alCSSClass esOption" /> | 1675 | <xsl :value-of select="$V arAddition alCSSClass esOption" /> | |||
1676 | </xsl :if> | 1676 | </xsl :if> | |||
1677 | </xsl: variable> | 1677 | </xsl: variable> | |||
1678 | 1678 | |||||
1679 | <!-- S tyle attri bute --> | 1679 | <!-- S tyle attri bute --> | |||
1680 | <!-- --> | 1680 | <!-- --> | |||
1681 | <xsl:v ariable na me="VarSty leAttribut e"> | 1681 | <xsl:v ariable na me="VarSty leAttribut e"> | |||
1682 | <xsl: call-templ ate name=" CSS-Inline Properties "> | 1682 | <xsl: call-templ ate name=" CSS-Inline Properties "> | |||
1683 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> | 1683 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> | |||
1684 | </xsl :call-temp late> | 1684 | </xsl :call-temp late> | |||
1685 | </xsl: variable> | 1685 | </xsl: variable> | |||
1686 | 1686 | |||||
1687 | <xsl:c hoose> | 1687 | <xsl:c hoose> | |||
1688 | <xsl: when test= "(string-l ength($Var ClassAttri bute) > 0) or (st ring-lengt h($VarStyl eAttribute ) > 0)" > | 1688 | <xsl: when test= "(string-l ength($Var ClassAttri bute) > 0) or (st ring-lengt h($VarStyl eAttribute ) > 0)" > | |||
1689 | <!-- Character Style --> | 1689 | <!-- Character Style --> | |||
1690 | <!-- --> | 1690 | <!-- --> | |||
1691 | <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> | 1691 | <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> | |||
1692 | <xs l:if test= "string-le ngth($VarC lassAttrib ute) > 0"> | 1692 | <xs l:if test= "string-le ngth($VarC lassAttrib ute) > 0"> | |||
1693 | <x sl:attribu te name="c lass"> | 1693 | <x sl:attribu te name="c lass"> | |||
1694 | < xsl:value- of select= "$VarClass Attribute" /> | 1694 | < xsl:value- of select= "$VarClass Attribute" /> | |||
1695 | </ xsl:attrib ute> | 1695 | </ xsl:attrib ute> | |||
1696 | </x sl:if> | 1696 | </x sl:if> | |||
1697 | <xs l:if test= "string-le ngth($VarS tyleAttrib ute) > 0"> | 1697 | <xs l:if test= "string-le ngth($VarS tyleAttrib ute) > 0"> | |||
1698 | <x sl:attribu te name="s tyle"> | 1698 | <x sl:attribu te name="s tyle"> | |||
1699 | < xsl:value- of select= "$VarStyle Attribute" /> | 1699 | < xsl:value- of select= "$VarStyle Attribute" /> | |||
1700 | </ xsl:attrib ute> | 1700 | </ xsl:attrib ute> | |||
1701 | </x sl:if> | 1701 | </x sl:if> | |||
1702 | 1702 | |||||
1703 | <!- - Abbrevia tion title --> | 1703 | <!- - Abbrevia tion title --> | |||
1704 | <!- - --> | 1704 | <!- - --> | |||
1705 | <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0"> | 1705 | <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0"> | |||
1706 | <x sl:attribu te name="t itle"> | 1706 | <x sl:attribu te name="t itle"> | |||
1707 | < xsl:value- of select= "$VarAbbre viationTit le" /> | 1707 | < xsl:value- of select= "$VarAbbre viationTit le" /> | |||
1708 | </ xsl:attrib ute> | 1708 | </ xsl:attrib ute> | |||
1709 | </x sl:if> | 1709 | </x sl:if> | |||
1710 | 1710 | |||||
1711 | <!- - Acronym title --> | 1711 | <!- - Acronym title --> | |||
1712 | <!- - --> | 1712 | <!- - --> | |||
1713 | <xs l:if test= "string-le ngth($VarA cronymTitl e) > 0" > | 1713 | <xs l:if test= "string-le ngth($VarA cronymTitl e) > 0" > | |||
1714 | <x sl:attribu te name="t itle"> | 1714 | <x sl:attribu te name="t itle"> | |||
1715 | < xsl:value- of select= "$VarAcron ymTitle" / > | 1715 | < xsl:value- of select= "$VarAcron ymTitle" / > | |||
1716 | </ xsl:attrib ute> | 1716 | </ xsl:attrib ute> | |||
1717 | </x sl:if> | 1717 | </x sl:if> | |||
1718 | 1718 | |||||
1719 | <!- - Cite att ribute --> | 1719 | <!- - Cite att ribute --> | |||
1720 | <!- - --> | 1720 | <!- - --> | |||
1721 | <xs l:if test= "string-le ngth($VarC itation) & gt; 0"> | 1721 | <xs l:if test= "string-le ngth($VarC itation) & gt; 0"> | |||
1722 | <x sl:attribu te name="c ite"> | 1722 | <x sl:attribu te name="c ite"> | |||
1723 | < xsl:value- of select= "$VarCitat ion" /> | 1723 | < xsl:value- of select= "$VarCitat ion" /> | |||
1724 | </ xsl:attrib ute> | 1724 | </ xsl:attrib ute> | |||
1725 | </x sl:if> | 1725 | </x sl:if> | |||
1726 | 1726 | |||||
1727 | <xs l:call-tem plate name ="TextRunC hildren"> | 1727 | <xs l:call-tem plate name ="TextRunC hildren"> | |||
1728 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 1728 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
1729 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 1729 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
1730 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 1730 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
1731 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 1731 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
1732 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | 1732 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | |||
1733 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | 1733 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | |||
1734 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | 1734 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | |||
1735 | </x sl:call-te mplate> | 1735 | </x sl:call-te mplate> | |||
1736 | </xs l:element> | 1736 | </xs l:element> | |||
1737 | </xsl :when> | 1737 | </xsl :when> | |||
1738 | 1738 | |||||
1739 | <xsl: otherwise> | 1739 | <xsl: otherwise> | |||
1740 | <!-- No style --> | 1740 | <!-- No style --> | |||
1741 | <!-- --> | 1741 | <!-- --> | |||
1742 | <xsl :call-temp late name= "TextRunCh ildren"> | 1742 | <xsl :call-temp late name= "TextRunCh ildren"> | |||
1743 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 1743 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
1744 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | 1744 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | |||
1745 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 1745 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
1746 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 1746 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
1747 | <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> | 1747 | <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> | |||
1748 | <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> | 1748 | <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> | |||
1749 | <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> | 1749 | <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> | |||
1750 | </xs l:call-tem plate> | 1750 | </xs l:call-tem plate> | |||
1751 | </xsl :otherwise > | 1751 | </xsl :otherwise > | |||
1752 | </xsl: choose> | 1752 | </xsl: choose> | |||
1753 | </xsl:w hen> | 1753 | </xsl:w hen> | |||
1754 | 1754 | |||||
1755 | <xsl:ot herwise> | 1755 | <xsl:ot herwise> | |||
1756 | <!-- N o style -- > | 1756 | <!-- N o style -- > | |||
1757 | <!-- -- > | 1757 | <!-- -- > | |||
1758 | <xsl:c all-templa te name="T extRunChil dren"> | 1758 | <xsl:c all-templa te name="T extRunChil dren"> | |||
1759 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1759 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1760 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 1760 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
1761 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1761 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1762 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1762 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1763 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraphID " /> | 1763 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraphID " /> | |||
1764 | <xsl: with-param name="Par amTextRun" select="$ ParamTextR un" /> | 1764 | <xsl: with-param name="Par amTextRun" select="$ ParamTextR un" /> | |||
1765 | <xsl: with-param name="Par amPosition " select=" $ParamPosi tion" /> | 1765 | <xsl: with-param name="Par amPosition " select=" $ParamPosi tion" /> | |||
1766 | </xsl: call-templ ate> | 1766 | </xsl: call-templ ate> | |||
1767 | </xsl:o therwise> | 1767 | </xsl:o therwise> | |||
1768 | </xsl:ch oose> | 1768 | </xsl:ch oose> | |||
1769 | </xsl:tem plate> | 1769 | </xsl:tem plate> | |||
1770 | 1770 | |||||
1771 | 1771 | |||||
1772 | <xsl:temp late name= "TextRunCh ildren"> | 1772 | <xsl:temp late name= "TextRunCh ildren"> | |||
1773 | <xsl:par am name="P aramSplits " /> | 1773 | <xsl:par am name="P aramSplits " /> | |||
1774 | <xsl:par am name="P aramCargo" /> | 1774 | <xsl:par am name="P aramCargo" /> | |||
1775 | <xsl:par am name="P aramLinks" /> | 1775 | <xsl:par am name="P aramLinks" /> | |||
1776 | <xsl:par am name="P aramSplit" /> | 1776 | <xsl:par am name="P aramSplit" /> | |||
1777 | <xsl:par am name="P aramParagr aphID" /> | 1777 | <xsl:par am name="P aramParagr aphID" /> | |||
1778 | <xsl:par am name="P aramTextRu n" /> | 1778 | <xsl:par am name="P aramTextRu n" /> | |||
1779 | <xsl:par am name="P aramPositi on" /> | 1779 | <xsl:par am name="P aramPositi on" /> | |||
1780 | 1780 | |||||
1781 | <!-- For ce anchor on same li ne as cont aining spa n --> | 1781 | <!-- For ce anchor on same li ne as cont aining spa n --> | |||
1782 | <!-- --> | 1782 | <!-- --> | |||
1783 | <wwexsld oc:NoBreak /> | 1783 | <wwexsld oc:NoBreak /> | |||
1784 | 1784 | |||||
1785 | <!-- Lin k? --> | 1785 | <!-- Lin k? --> | |||
1786 | <!-- --> | 1786 | <!-- --> | |||
1787 | <xsl:var iable name ="VarLinkI nfoAsXML"> | 1787 | <xsl:var iable name ="VarLinkI nfoAsXML"> | |||
1788 | <xsl:ca ll-templat e name="Li nkInfo"> | 1788 | <xsl:ca ll-templat e name="Li nkInfo"> | |||
1789 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 1789 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
1790 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 1790 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
1791 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 1791 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
1792 | <xsl:w ith-param name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > | 1792 | <xsl:w ith-param name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > | |||
1793 | </xsl:c all-templa te> | 1793 | </xsl:c all-templa te> | |||
1794 | </xsl:va riable> | 1794 | </xsl:va riable> | |||
1795 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | 1795 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | |||
1796 | 1796 | |||||
1797 | <!-- Han dle links --> | 1797 | <!-- Han dle links --> | |||
1798 | <!-- --> | 1798 | <!-- --> | |||
1799 | <xsl:cho ose> | 1799 | <xsl:cho ose> | |||
1800 | <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href) > 0"> | 1800 | <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href) > 0"> | |||
1801 | <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}"> | 1801 | <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}"> | |||
1802 | <xsl: if test="$ ParamPosit ion = 1"> | 1802 | <xsl: if test="$ ParamPosit ion = 1"> | |||
1803 | <xsl :attribute name="nam e"> | 1803 | <xsl :attribute name="nam e"> | |||
1804 | <xs l:value-of select="$ ParamParag raphID" /> | 1804 | <xs l:value-of select="$ ParamParag raphID" /> | |||
1805 | </xs l:attribut e> | 1805 | </xs l:attribut e> | |||
1806 | </xsl :if> | 1806 | </xsl :if> | |||
1807 | 1807 | |||||
1808 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | 1808 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | |||
1809 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1809 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1810 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1810 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1811 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1811 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1812 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1812 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1813 | </xsl :apply-tem plates> | 1813 | </xsl :apply-tem plates> | |||
1814 | </html :a> | 1814 | </html :a> | |||
1815 | </xsl:w hen> | 1815 | </xsl:w hen> | |||
1816 | 1816 | |||||
1817 | <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) > 0" > | 1817 | <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) > 0" > | |||
1818 | <html: a href="{$ VarLinkInf o/@href}"> | 1818 | <html: a href="{$ VarLinkInf o/@href}"> | |||
1819 | <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) > 0 "> | 1819 | <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) > 0 "> | |||
1820 | <xsl :attribute name="tit le"> | 1820 | <xsl :attribute name="tit le"> | |||
1821 | <xs l:value-of select="$ VarLinkInf o/@title" /> | 1821 | <xs l:value-of select="$ VarLinkInf o/@title" /> | |||
1822 | </xs l:attribut e> | 1822 | </xs l:attribut e> | |||
1823 | </xsl :if> | 1823 | </xsl :if> | |||
1824 | <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) > 0"> | 1824 | <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) > 0"> | |||
1825 | <xsl :attribute name="tar get"> | 1825 | <xsl :attribute name="tar get"> | |||
1826 | <xs l:value-of select="$ VarLinkInf o/@target" /> | 1826 | <xs l:value-of select="$ VarLinkInf o/@target" /> | |||
1827 | </xs l:attribut e> | 1827 | </xs l:attribut e> | |||
1828 | </xsl :if> | 1828 | </xsl :if> | |||
1829 | <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver) > 0"> | 1829 | <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver) > 0"> | |||
1830 | <xsl :attribute name="onM ouseOver"> | 1830 | <xsl :attribute name="onM ouseOver"> | |||
1831 | <xs l:value-of select="$ VarLinkInf o/@onMouse Over" /> | 1831 | <xs l:value-of select="$ VarLinkInf o/@onMouse Over" /> | |||
1832 | </xs l:attribut e> | 1832 | </xs l:attribut e> | |||
1833 | </xsl :if> | 1833 | </xsl :if> | |||
1834 | <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0"> | 1834 | <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0"> | |||
1835 | <xsl :attribute name="onM ouseOut"> | 1835 | <xsl :attribute name="onM ouseOut"> | |||
1836 | <xs l:value-of select="$ VarLinkInf o/@onMouse Out" /> | 1836 | <xs l:value-of select="$ VarLinkInf o/@onMouse Out" /> | |||
1837 | </xs l:attribut e> | 1837 | </xs l:attribut e> | |||
1838 | </xsl :if> | 1838 | </xsl :if> | |||
1839 | <xsl: if test="$ ParamPosit ion = 1"> | 1839 | <xsl: if test="$ ParamPosit ion = 1"> | |||
1840 | <xsl :attribute name="nam e"> | 1840 | <xsl :attribute name="nam e"> | |||
1841 | <xs l:value-of select="$ ParamParag raphID" /> | 1841 | <xs l:value-of select="$ ParamParag raphID" /> | |||
1842 | </xs l:attribut e> | 1842 | </xs l:attribut e> | |||
1843 | </xsl :if> | 1843 | </xsl :if> | |||
1844 | 1844 | |||||
1845 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | 1845 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | |||
1846 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1846 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1847 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1847 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1848 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1848 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1849 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1849 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1850 | </xsl :apply-tem plates> | 1850 | </xsl :apply-tem plates> | |||
1851 | </html :a> | 1851 | </html :a> | |||
1852 | </xsl:w hen> | 1852 | </xsl:w hen> | |||
1853 | 1853 | |||||
1854 | <xsl:wh en test="$ ParamPosit ion = 1"> | 1854 | <xsl:wh en test="$ ParamPosit ion = 1"> | |||
1855 | <html: a name="{$ ParamParag raphID}"> | 1855 | <html: a name="{$ ParamParag raphID}"> | |||
1856 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | 1856 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | |||
1857 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1857 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1858 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1858 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1859 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1859 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1860 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1860 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1861 | </xsl :apply-tem plates> | 1861 | </xsl :apply-tem plates> | |||
1862 | </html :a> | 1862 | </html :a> | |||
1863 | </xsl:w hen> | 1863 | </xsl:w hen> | |||
1864 | 1864 | |||||
1865 | <xsl:ot herwise> | 1865 | <xsl:ot herwise> | |||
1866 | <xsl:a pply-templ ates selec t="$ParamT extRun/*" mode="wwmo de:textrun "> | 1866 | <xsl:a pply-templ ates selec t="$ParamT extRun/*" mode="wwmo de:textrun "> | |||
1867 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1867 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1868 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 1868 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
1869 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1869 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1870 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1870 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1871 | </xsl: apply-temp lates> | 1871 | </xsl: apply-temp lates> | |||
1872 | </xsl:o therwise> | 1872 | </xsl:o therwise> | |||
1873 | </xsl:ch oose> | 1873 | </xsl:ch oose> | |||
1874 | 1874 | |||||
1875 | <!-- For ce anchor on same li ne as cont aining spa n --> | 1875 | <!-- For ce anchor on same li ne as cont aining spa n --> | |||
1876 | <!-- --> | 1876 | <!-- --> | |||
1877 | <wwexsld oc:NoBreak /> | 1877 | <wwexsld oc:NoBreak /> | |||
1878 | </xsl:tem plate> | 1878 | </xsl:tem plate> | |||
1879 | 1879 | |||||
1880 | 1880 | |||||
1881 | <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> | 1881 | <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> | |||
1882 | <xsl:par am name="P aramSplits " /> | 1882 | <xsl:par am name="P aramSplits " /> | |||
1883 | <xsl:par am name="P aramCargo" /> | 1883 | <xsl:par am name="P aramCargo" /> | |||
1884 | <xsl:par am name="P aramLinks" /> | 1884 | <xsl:par am name="P aramLinks" /> | |||
1885 | <xsl:par am name="P aramSplit" /> | 1885 | <xsl:par am name="P aramSplit" /> | |||
1886 | 1886 | |||||
1887 | <xsl:var iable name ="VarConte xt" select ="." /> | 1887 | <xsl:var iable name ="VarConte xt" select ="." /> | |||
1888 | 1888 | |||||
1889 | <!-- Imp lement not es --> | 1889 | <!-- Imp lement not es --> | |||
1890 | <!-- --> | 1890 | <!-- --> | |||
1891 | <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> | 1891 | <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> | |||
1892 | <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > | 1892 | <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > | |||
1893 | 1893 | |||||
1894 | <!-- Fo rce sup on same line as contai ning span --> | 1894 | <!-- Fo rce sup on same line as contai ning span --> | |||
1895 | <!-- --> | 1895 | <!-- --> | |||
1896 | <wwexsl doc:NoBrea k /> | 1896 | <wwexsl doc:NoBrea k /> | |||
1897 | 1897 | |||||
1898 | <html:s up> | 1898 | <html:s up> | |||
1899 | <!-- F orce ancho r on same line as co ntaining s up --> | 1899 | <!-- F orce ancho r on same line as co ntaining s up --> | |||
1900 | <!-- --> | 1900 | <!-- --> | |||
1901 | <wwexs ldoc:NoBre ak /> | 1901 | <wwexs ldoc:NoBre ak /> | |||
1902 | 1902 | |||||
1903 | <html: a> | 1903 | <html: a> | |||
1904 | <xsl: attribute name="name "> | 1904 | <xsl: attribute name="name "> | |||
1905 | <xsl :text>wwfo otnote_inl ine_</xsl: text> | 1905 | <xsl :text>wwfo otnote_inl ine_</xsl: text> | |||
1906 | <xsl :value-of select="$V arContext/ @id" /> | 1906 | <xsl :value-of select="$V arContext/ @id" /> | |||
1907 | </xsl :attribute > | 1907 | </xsl :attribute > | |||
1908 | <xsl: attribute name="href "> | 1908 | <xsl: attribute name="href "> | |||
1909 | <xsl :text>#</x sl:text> | 1909 | <xsl :text>#</x sl:text> | |||
1910 | <xsl :value-of select="$V arContext/ @id" /> | 1910 | <xsl :value-of select="$V arContext/ @id" /> | |||
1911 | </xsl :attribute > | 1911 | </xsl :attribute > | |||
1912 | 1912 | |||||
1913 | <xsl: value-of s elect="$Va rNoteNumbe r" /> | 1913 | <xsl: value-of s elect="$Va rNoteNumbe r" /> | |||
1914 | </html :a> | 1914 | </html :a> | |||
1915 | </html: sup> | 1915 | </html: sup> | |||
1916 | </xsl:fo r-each> | 1916 | </xsl:fo r-each> | |||
1917 | </xsl:tem plate> | 1917 | </xsl:tem plate> | |||
1918 | 1918 | |||||
1919 | 1919 | |||||
1920 | <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > | 1920 | <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > | |||
1921 | <xsl:par am name="P aramSplits " /> | 1921 | <xsl:par am name="P aramSplits " /> | |||
1922 | <xsl:par am name="P aramCargo" /> | 1922 | <xsl:par am name="P aramCargo" /> | |||
1923 | <xsl:par am name="P aramLinks" /> | 1923 | <xsl:par am name="P aramLinks" /> | |||
1924 | <xsl:par am name="P aramSplit" /> | 1924 | <xsl:par am name="P aramSplit" /> | |||
1925 | 1925 | |||||
1926 | <html:br /> | 1926 | <html:br /> | |||
1927 | </xsl:tem plate> | 1927 | </xsl:tem plate> | |||
1928 | 1928 | |||||
1929 | 1929 | |||||
1930 | <xsl:temp late match ="wwdoc:In dexMarker" mode="wwm ode:textru n"> | 1930 | <xsl:temp late match ="wwdoc:In dexMarker" mode="wwm ode:textru n"> | |||
1931 | <xsl:par am name="P aramSplits " /> | 1931 | <xsl:par am name="P aramSplits " /> | |||
1932 | <xsl:par am name="P aramCargo" /> | 1932 | <xsl:par am name="P aramCargo" /> | |||
1933 | <xsl:par am name="P aramLinks" /> | 1933 | <xsl:par am name="P aramLinks" /> | |||
1934 | <xsl:par am name="P aramSplit" /> | 1934 | <xsl:par am name="P aramSplit" /> | |||
1935 | 1935 | |||||
1936 | <!-- Ign ore index markers -- > | 1936 | <!-- Ign ore index markers -- > | |||
1937 | <!-- -- > | 1937 | <!-- -- > | |||
1938 | </xsl:tem plate> | 1938 | </xsl:tem plate> | |||
1939 | 1939 | |||||
1940 | 1940 | |||||
1941 | <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> | 1941 | <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> | |||
1942 | <xsl:par am name="P aramSplits " /> | 1942 | <xsl:par am name="P aramSplits " /> | |||
1943 | <xsl:par am name="P aramCargo" /> | 1943 | <xsl:par am name="P aramCargo" /> | |||
1944 | <xsl:par am name="P aramLinks" /> | 1944 | <xsl:par am name="P aramLinks" /> | |||
1945 | <xsl:par am name="P aramSplit" /> | 1945 | <xsl:par am name="P aramSplit" /> | |||
1946 | 1946 | |||||
1947 | <!-- Ign ore marker s --> | 1947 | <!-- Ign ore marker s --> | |||
1948 | <!-- --> | 1948 | <!-- --> | |||
1949 | </xsl:tem plate> | 1949 | </xsl:tem plate> | |||
1950 | 1950 | |||||
1951 | 1951 | |||||
1952 | <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> | 1952 | <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> | |||
1953 | <xsl:par am name="P aramSplits " /> | 1953 | <xsl:par am name="P aramSplits " /> | |||
1954 | <xsl:par am name="P aramCargo" /> | 1954 | <xsl:par am name="P aramCargo" /> | |||
1955 | <xsl:par am name="P aramLinks" /> | 1955 | <xsl:par am name="P aramLinks" /> | |||
1956 | <xsl:par am name="P aramSplit" /> | 1956 | <xsl:par am name="P aramSplit" /> | |||
1957 | 1957 | |||||
1958 | <xsl:val ue-of sele ct="@value " /> | 1958 | <xsl:val ue-of sele ct="@value " /> | |||
1959 | </xsl:tem plate> | 1959 | </xsl:tem plate> | |||
1960 | 1960 | |||||
1961 | 1961 | |||||
1962 | <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> | 1962 | <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> | |||
1963 | <xsl:par am name="P aramSplits " /> | 1963 | <xsl:par am name="P aramSplits " /> | |||
1964 | <xsl:par am name="P aramCargo" /> | 1964 | <xsl:par am name="P aramCargo" /> | |||
1965 | <xsl:par am name="P aramLinks" /> | 1965 | <xsl:par am name="P aramLinks" /> | |||
1966 | <xsl:par am name="P aramTOCDat a" /> | 1966 | <xsl:par am name="P aramTOCDat a" /> | |||
1967 | <xsl:par am name="P aramSplit" /> | 1967 | <xsl:par am name="P aramSplit" /> | |||
1968 | 1968 | |||||
1969 | <xsl:var iable name ="VarTable " select=" ." /> | 1969 | <xsl:var iable name ="VarTable " select=" ." /> | |||
1970 | 1970 | |||||
1971 | <!-- Abo rted? --> | 1971 | <!-- Abo rted? --> | |||
1972 | <!-- --> | 1972 | <!-- --> | |||
1973 | <xsl:if test="not( wwprogress :Abort())" > | 1973 | <xsl:if test="not( wwprogress :Abort())" > | |||
1974 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID, $VarTable/ @id)" /> | 1974 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID, $VarTable/ @id)" /> | |||
1975 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" /> | 1975 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" /> | |||
1976 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | 1976 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | |||
1977 | <xsl:if test="$Va rGenerateO utput"> | 1977 | <xsl:if test="$Va rGenerateO utput"> | |||
1978 | 1978 | |||||
1979 | <!-- G et behavio r --> | 1979 | <!-- G et behavio r --> | |||
1980 | <!-- --> | 1980 | <!-- --> | |||
1981 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | 1981 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | |||
1982 | <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> | 1982 | <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> | |||
1983 | 1983 | |||||
1984 | <!-- Table --> | 1984 | <!-- Table --> | |||
1985 | <!-- --> | 1985 | <!-- --> | |||
1986 | <xsl: call-templ ate name=" Table"> | 1986 | <xsl: call-templ ate name=" Table"> | |||
1987 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1987 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1988 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1988 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1989 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1989 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1990 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | 1990 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | |||
1991 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1991 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1992 | <xsl :with-para m name="Pa ramTable" select="$V arTable" / > | 1992 | <xsl :with-para m name="Pa ramTable" select="$V arTable" / > | |||
1993 | <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> | 1993 | <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> | |||
1994 | <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> | 1994 | <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> | |||
1995 | <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> | 1995 | <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> | |||
1996 | </xsl :call-temp late> | 1996 | </xsl :call-temp late> | |||
1997 | </xsl: for-each> | 1997 | </xsl: for-each> | |||
1998 | </xsl:i f> | 1998 | </xsl:i f> | |||
1999 | </xsl:if > | 1999 | </xsl:if > | |||
2000 | </xsl:tem plate> | 2000 | </xsl:tem plate> | |||
2001 | 2001 | |||||
2002 | 2002 | |||||
2003 | <xsl:temp late name= "Table-Att ribute-In- Pixels"> | 2003 | <xsl:temp late name= "Table-Att ribute-In- Pixels"> | |||
2004 | <xsl:par am name="P aramValue" /> | 2004 | <xsl:par am name="P aramValue" /> | |||
2005 | 2005 | |||||
2006 | <xsl:cho ose> | 2006 | <xsl:cho ose> | |||
2007 | <xsl:wh en test="s tring-leng th($ParamV alue) > 0"> | 2007 | <xsl:wh en test="s tring-leng th($ParamV alue) > 0"> | |||
2008 | <!-- N ormalize v alue for H TML attrib ute--> | 2008 | <!-- N ormalize v alue for H TML attrib ute--> | |||
2009 | <!-- --> | 2009 | <!-- --> | |||
2010 | <xsl:v ariable na me="VarVal ueToEmit"> | 2010 | <xsl:v ariable na me="VarVal ueToEmit"> | |||
2011 | <xsl: variable n ame="VarUn itsSuffix" select="w wunits:Uni tsSuffix($ ParamValue )" /> | 2011 | <xsl: variable n ame="VarUn itsSuffix" select="w wunits:Uni tsSuffix($ ParamValue )" /> | |||
2012 | 2012 | |||||
2013 | <xsl: choose> | 2013 | <xsl: choose> | |||
2014 | <xsl :when test ="string-l ength($Var UnitsSuffi x) > 0" > | 2014 | <xsl :when test ="string-l ength($Var UnitsSuffi x) > 0" > | |||
2015 | <xs l:variable name="Var NumPrefix" select="w wunits:Num ericPrefix ($ParamVal ue)" /> | 2015 | <xs l:variable name="Var NumPrefix" select="w wunits:Num ericPrefix ($ParamVal ue)" /> | |||
2016 | 2016 | |||||
2017 | <xs l:value-of select="w wunits:Con vert($VarN umPrefix, $VarUnitsS uffix, 'px ')" /> | 2017 | <xs l:value-of select="w wunits:Con vert($VarN umPrefix, $VarUnitsS uffix, 'px ')" /> | |||
2018 | </xs l:when> | 2018 | </xs l:when> | |||
2019 | 2019 | |||||
2020 | <xsl :otherwise > | 2020 | <xsl :otherwise > | |||
2021 | <xs l:value-of select="$ ParamValue " /> | 2021 | <xs l:value-of select="$ ParamValue " /> | |||
2022 | </xs l:otherwis e> | 2022 | </xs l:otherwis e> | |||
2023 | </xsl :choose> | 2023 | </xsl :choose> | |||
2024 | </xsl: variable> | 2024 | </xsl: variable> | |||
2025 | 2025 | |||||
2026 | <xsl:v alue-of se lect="$Var ValueToEmi t" /> | 2026 | <xsl:v alue-of se lect="$Var ValueToEmi t" /> | |||
2027 | </xsl:w hen> | 2027 | </xsl:w hen> | |||
2028 | 2028 | |||||
2029 | <xsl:ot herwise> | 2029 | <xsl:ot herwise> | |||
2030 | <xsl:v alue-of se lect="''" /> | 2030 | <xsl:v alue-of se lect="''" /> | |||
2031 | </xsl:o therwise> | 2031 | </xsl:o therwise> | |||
2032 | </xsl:ch oose> | 2032 | </xsl:ch oose> | |||
2033 | </xsl:tem plate> | 2033 | </xsl:tem plate> | |||
2034 | 2034 | |||||
2035 | 2035 | |||||
2036 | <xsl:temp late name= "Table"> | 2036 | <xsl:temp late name= "Table"> | |||
2037 | <xsl:par am name="P aramSplits " /> | 2037 | <xsl:par am name="P aramSplits " /> | |||
2038 | <xsl:par am name="P aramCargo" /> | 2038 | <xsl:par am name="P aramCargo" /> | |||
2039 | <xsl:par am name="P aramLinks" /> | 2039 | <xsl:par am name="P aramLinks" /> | |||
2040 | <xsl:par am name="P aramTOCDat a" /> | 2040 | <xsl:par am name="P aramTOCDat a" /> | |||
2041 | <xsl:par am name="P aramSplit" /> | 2041 | <xsl:par am name="P aramSplit" /> | |||
2042 | <xsl:par am name="P aramTable" /> | 2042 | <xsl:par am name="P aramTable" /> | |||
2043 | <xsl:par am name="P aramStyleN ame" /> | 2043 | <xsl:par am name="P aramStyleN ame" /> | |||
2044 | <xsl:par am name="P aramOverri deRule" /> | 2044 | <xsl:par am name="P aramOverri deRule" /> | |||
2045 | <xsl:par am name="P aramTableB ehavior" / > | 2045 | <xsl:par am name="P aramTableB ehavior" / > | |||
2046 | 2046 | |||||
2047 | <!-- Not es --> | 2047 | <!-- Not es --> | |||
2048 | <!-- --> | 2048 | <!-- --> | |||
2049 | <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> | 2049 | <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> | |||
2050 | 2050 | |||||
2051 | <!-- Not e numberin g --> | 2051 | <!-- Not e numberin g --> | |||
2052 | <!-- --> | 2052 | <!-- --> | |||
2053 | <xsl:var iable name ="VarNoteN umberingAs XML"> | 2053 | <xsl:var iable name ="VarNoteN umberingAs XML"> | |||
2054 | <xsl:ca ll-templat e name="No tes-Number "> | 2054 | <xsl:ca ll-templat e name="No tes-Number "> | |||
2055 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | 2055 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | |||
2056 | </xsl:c all-templa te> | 2056 | </xsl:c all-templa te> | |||
2057 | </xsl:va riable> | 2057 | </xsl:va riable> | |||
2058 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | 2058 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | |||
2059 | 2059 | |||||
2060 | <!-- Car go for rec ursion --> | 2060 | <!-- Car go for rec ursion --> | |||
2061 | <!-- --> | 2061 | <!-- --> | |||
2062 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | 2062 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | |||
2063 | 2063 | |||||
2064 | <!-- Res olve proje ct propert ies --> | 2064 | <!-- Res olve proje ct propert ies --> | |||
2065 | <!-- --> | 2065 | <!-- --> | |||
2066 | <xsl:var iable name ="VarResol vedPropert iesAsXML"> | 2066 | <xsl:var iable name ="VarResol vedPropert iesAsXML"> | |||
2067 | <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> | 2067 | <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> | |||
2068 | <xsl:w ith-param name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property" /> | 2068 | <xsl:w ith-param name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property" /> | |||
2069 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> | 2069 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> | |||
2070 | </xsl:c all-templa te> | 2070 | </xsl:c all-templa te> | |||
2071 | </xsl:va riable> | 2071 | </xsl:va riable> | |||
2072 | <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> | 2072 | <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> | |||
2073 | 2073 | |||||
2074 | <!-- CSS propertie s --> | 2074 | <!-- CSS propertie s --> | |||
2075 | <!-- --> | 2075 | <!-- --> | |||
2076 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | 2076 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | |||
2077 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | 2077 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | |||
2078 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedPropert ies" /> | 2078 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedPropert ies" /> | |||
2079 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | 2079 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | |||
2080 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 2080 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
2081 | </xsl:c all-templa te> | 2081 | </xsl:c all-templa te> | |||
2082 | </xsl:va riable> | 2082 | </xsl:va riable> | |||
2083 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | 2083 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | |||
2084 | 2084 | |||||
2085 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table', $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" /> | 2085 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table', $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" /> | |||
2086 | 2086 | |||||
2087 | <!-- Res olve proje ct propert ies --> | 2087 | <!-- Res olve proje ct propert ies --> | |||
2088 | <!-- --> | 2088 | <!-- --> | |||
2089 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | 2089 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | |||
2090 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | 2090 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | |||
2091 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amTable" / > | 2091 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amTable" / > | |||
2092 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | 2092 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | |||
2093 | <xsl:w ith-param name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> | 2093 | <xsl:w ith-param name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> | |||
2094 | <xsl:w ith-param name="Para mStyleType " select=" 'Table'" / > | 2094 | <xsl:w ith-param name="Para mStyleType " select=" 'Table'" / > | |||
2095 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> | 2095 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> | |||
2096 | </xsl:c all-templa te> | 2096 | </xsl:c all-templa te> | |||
2097 | </xsl:va riable> | 2097 | </xsl:va riable> | |||
2098 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | 2098 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | |||
2099 | 2099 | |||||
2100 | <!-- Tab le class - -> | 2100 | <!-- Tab le class - -> | |||
2101 | <!-- - -> | 2101 | <!-- - -> | |||
2102 | <xsl:var iable name ="VarClass Attribute" > | 2102 | <xsl:var iable name ="VarClass Attribute" > | |||
2103 | <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" /> | 2103 | <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" /> | |||
2104 | 2104 | |||||
2105 | <!-- Ad ditional C SS classes --> | 2105 | <!-- Ad ditional C SS classes --> | |||
2106 | <!-- --> | 2106 | <!-- --> | |||
2107 | <xsl:va riable nam e="VarAddi tionalCSSC lassesOpti on" select ="normaliz e-space($V arContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ad ditional-c ss-classes ']/@Value) " /> | 2107 | <xsl:va riable nam e="VarAddi tionalCSSC lassesOpti on" select ="normaliz e-space($V arContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ad ditional-c ss-classes ']/@Value) " /> | |||
2108 | <xsl:if test="str ing-length ($VarAddit ionalCSSCl assesOptio n) > 0" > | 2108 | <xsl:if test="str ing-length ($VarAddit ionalCSSCl assesOptio n) > 0" > | |||
2109 | <xsl:t ext> </xsl :text> | 2109 | <xsl:t ext> </xsl :text> | |||
2110 | <xsl:v alue-of se lect="$Var Additional CSSClasses Option" /> | 2110 | <xsl:v alue-of se lect="$Var Additional CSSClasses Option" /> | |||
2111 | </xsl:i f> | 2111 | </xsl:i f> | |||
2112 | </xsl:va riable> | 2112 | </xsl:va riable> | |||
2113 | 2113 | |||||
2114 | <!-- Sty le attribu te --> | 2114 | <!-- Sty le attribu te --> | |||
2115 | <!-- --> | 2115 | <!-- --> | |||
2116 | <xsl:var iable name ="VarStyle Attribute" > | 2116 | <xsl:var iable name ="VarStyle Attribute" > | |||
2117 | <xsl:ca ll-templat e name="CS S-InlinePr operties"> | 2117 | <xsl:ca ll-templat e name="CS S-InlinePr operties"> | |||
2118 | <xsl:w ith-param name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > | 2118 | <xsl:w ith-param name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > | |||
2119 | </xsl:c all-templa te> | 2119 | </xsl:c all-templa te> | |||
2120 | </xsl:va riable> | 2120 | </xsl:va riable> | |||
2121 | 2121 | |||||
2122 | <!-- Bor der --> | 2122 | <!-- Bor der --> | |||
2123 | <!-- --> | 2123 | <!-- --> | |||
2124 | <xsl:var iable name ="VarTable Border"> | 2124 | <xsl:var iable name ="VarTable Border"> | |||
2125 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | 2125 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | |||
2126 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> | 2126 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> | |||
2127 | </xsl:c all-templa te> | 2127 | </xsl:c all-templa te> | |||
2128 | </xsl:va riable> | 2128 | </xsl:va riable> | |||
2129 | 2129 | |||||
2130 | <!-- Cel l padding --> | 2130 | <!-- Cel l padding --> | |||
2131 | <!-- --> | 2131 | <!-- --> | |||
2132 | <xsl:var iable name ="VarTable CellPaddin g"> | 2132 | <xsl:var iable name ="VarTable CellPaddin g"> | |||
2133 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | 2133 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | |||
2134 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> | 2134 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> | |||
2135 | </xsl:c all-templa te> | 2135 | </xsl:c all-templa te> | |||
2136 | </xsl:va riable> | 2136 | </xsl:va riable> | |||
2137 | 2137 | |||||
2138 | <!-- Cel l spacing --> | 2138 | <!-- Cel l spacing --> | |||
2139 | <!-- --> | 2139 | <!-- --> | |||
2140 | <xsl:var iable name ="VarTable CellSpacin g"> | 2140 | <xsl:var iable name ="VarTable CellSpacin g"> | |||
2141 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | 2141 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | |||
2142 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> | 2142 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> | |||
2143 | </xsl:c all-templa te> | 2143 | </xsl:c all-templa te> | |||
2144 | </xsl:va riable> | 2144 | </xsl:va riable> | |||
2145 | 2145 | |||||
2146 | <!-- Tab le vertica l alignmen t --> | 2146 | <!-- Tab le vertica l alignmen t --> | |||
2147 | <!-- --> | 2147 | <!-- --> | |||
2148 | <xsl:var iable name ="VarTable VerticalAl ignment"> | 2148 | <xsl:var iable name ="VarTable VerticalAl ignment"> | |||
2149 | <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name = 'vertical- align']/@V alue" /> | 2149 | <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name = 'vertical- align']/@V alue" /> | |||
2150 | <xsl:ch oose> | 2150 | <xsl:ch oose> | |||
2151 | <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) > 0"> | 2151 | <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) > 0"> | |||
2152 | <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > | 2152 | <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > | |||
2153 | </xsl: when> | 2153 | </xsl: when> | |||
2154 | <xsl:o therwise> | 2154 | <xsl:o therwise> | |||
2155 | <xsl: value-of s elect="''" /> | 2155 | <xsl: value-of s elect="''" /> | |||
2156 | </xsl: otherwise> | 2156 | </xsl: otherwise> | |||
2157 | </xsl:c hoose> | 2157 | </xsl:c hoose> | |||
2158 | </xsl:va riable> | 2158 | </xsl:va riable> | |||
2159 | 2159 | |||||
2160 | <!-- Tab le summary --> | 2160 | <!-- Tab le summary --> | |||
2161 | <!-- --> | 2161 | <!-- --> | |||
2162 | <xsl:var iable name ="VarTable Summary"> | 2162 | <xsl:var iable name ="VarTable Summary"> | |||
2163 | <xsl:ca ll-templat e name="Ta bles-Summa ry"> | 2163 | <xsl:ca ll-templat e name="Ta bles-Summa ry"> | |||
2164 | <xsl:w ith-param name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> | 2164 | <xsl:w ith-param name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> | |||
2165 | </xsl:c all-templa te> | 2165 | </xsl:c all-templa te> | |||
2166 | </xsl:va riable> | 2166 | </xsl:va riable> | |||
2167 | 2167 | |||||
2168 | <!-- Cap tion Side --> | 2168 | <!-- Cap tion Side --> | |||
2169 | <!-- --> | 2169 | <!-- --> | |||
2170 | <xsl:var iable name ="VarCapti onSide"> | 2170 | <xsl:var iable name ="VarCapti onSide"> | |||
2171 | <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name = 'captio n-side']/@ Value" /> | 2171 | <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name = 'captio n-side']/@ Value" /> | |||
2172 | </xsl:va riable> | 2172 | </xsl:va riable> | |||
2173 | 2173 | |||||
2174 | <!-- Det ermine tab le cell wi dths --> | 2174 | <!-- Det ermine tab le cell wi dths --> | |||
2175 | <!-- --> | 2175 | <!-- --> | |||
2176 | <xsl:var iable name ="VarTable CellWidths AsXML"> | 2176 | <xsl:var iable name ="VarTable CellWidths AsXML"> | |||
2177 | <xsl:va riable nam e="VarEmit TableWidth sOption" s elect="$Va rContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'tab le-use-doc ument-cell -widths']/ @Value" /> | 2177 | <xsl:va riable nam e="VarEmit TableWidth sOption" s elect="$Va rContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'tab le-use-doc ument-cell -widths']/ @Value" /> | |||
2178 | <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> | 2178 | <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> | |||
2179 | 2179 | |||||
2180 | <xsl:if test="$Va rEmitTable Widths"> | 2180 | <xsl:if test="$Va rEmitTable Widths"> | |||
2181 | <xsl:c all-templa te name="T able-CellW idths"> | 2181 | <xsl:c all-templa te name="T able-CellW idths"> | |||
2182 | <xsl: with-param name="Par amTable" s elect="$Pa ramTable" /> | 2182 | <xsl: with-param name="Par amTable" s elect="$Pa ramTable" /> | |||
2183 | </xsl: call-templ ate> | 2183 | </xsl: call-templ ate> | |||
2184 | </xsl:i f> | 2184 | </xsl:i f> | |||
2185 | </xsl:va riable> | 2185 | </xsl:va riable> | |||
2186 | <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> | 2186 | <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> | |||
2187 | 2187 | |||||
2188 | <!-- Emi t <table> element wi th class, style, and summary a ttrs. --> | 2188 | <!-- Emi t <table> element wi th class, style, and summary a ttrs. --> | |||
2189 | <!-- --> | 2189 | <!-- --> | |||
2190 | <html:ta ble class= "{$VarClas sAttribute }"> | 2190 | <html:ta ble class= "{$VarClas sAttribute }"> | |||
2191 | 2191 | |||||
2192 | <!-- st yle attrib ute --> | 2192 | <!-- st yle attrib ute --> | |||
2193 | <!-- --> | 2193 | <!-- --> | |||
2194 | <xsl:if test="str ing-length ($VarStyle Attribute) > 0"> | 2194 | <xsl:if test="str ing-length ($VarStyle Attribute) > 0"> | |||
2195 | <xsl:a ttribute n ame="style "> | 2195 | <xsl:a ttribute n ame="style "> | |||
2196 | <xsl: value-of s elect="$Va rStyleAttr ibute" /> | 2196 | <xsl: value-of s elect="$Va rStyleAttr ibute" /> | |||
2197 | </xsl: attribute> | 2197 | </xsl: attribute> | |||
2198 | </xsl:i f> | 2198 | </xsl:i f> | |||
2199 | 2199 | |||||
2200 | <!-- bo rder attri bute --> | 2200 | <!-- bo rder attri bute --> | |||
2201 | <!-- --> | 2201 | <!-- --> | |||
2202 | <xsl:if test="str ing-length ($VarTable Border) &g t; 0"> | 2202 | <xsl:if test="str ing-length ($VarTable Border) &g t; 0"> | |||
2203 | <xsl:a ttribute n ame="borde r"> | 2203 | <xsl:a ttribute n ame="borde r"> | |||
2204 | <xsl: value-of s elect="$Va rTableBord er" /> | 2204 | <xsl: value-of s elect="$Va rTableBord er" /> | |||
2205 | </xsl: attribute> | 2205 | </xsl: attribute> | |||
2206 | </xsl:i f> | 2206 | </xsl:i f> | |||
2207 | 2207 | |||||
2208 | <!-- ce llpadding attribute --> | 2208 | <!-- ce llpadding attribute --> | |||
2209 | <!-- --> | 2209 | <!-- --> | |||
2210 | <xsl:if test="str ing-length ($VarTable CellPaddin g) > 0" > | 2210 | <xsl:if test="str ing-length ($VarTable CellPaddin g) > 0" > | |||
2211 | <xsl:a ttribute n ame="cellp adding"> | 2211 | <xsl:a ttribute n ame="cellp adding"> | |||
2212 | <xsl: value-of s elect="$Va rTableCell Padding" / > | 2212 | <xsl: value-of s elect="$Va rTableCell Padding" / > | |||
2213 | </xsl: attribute> | 2213 | </xsl: attribute> | |||
2214 | </xsl:i f> | 2214 | </xsl:i f> | |||
2215 | 2215 | |||||
2216 | <!-- ce llspacing attribute --> | 2216 | <!-- ce llspacing attribute --> | |||
2217 | <!-- --> | 2217 | <!-- --> | |||
2218 | <xsl:if test="str ing-length ($VarTable CellSpacin g) > 0" > | 2218 | <xsl:if test="str ing-length ($VarTable CellSpacin g) > 0" > | |||
2219 | <xsl:a ttribute n ame="cells pacing"> | 2219 | <xsl:a ttribute n ame="cells pacing"> | |||
2220 | <xsl: value-of s elect="$Va rTableCell Spacing" / > | 2220 | <xsl: value-of s elect="$Va rTableCell Spacing" / > | |||
2221 | </xsl: attribute> | 2221 | </xsl: attribute> | |||
2222 | </xsl:i f> | 2222 | </xsl:i f> | |||
2223 | 2223 | |||||
2224 | <!-- su mmary attr ibute --> | 2224 | <!-- su mmary attr ibute --> | |||
2225 | <!-- --> | 2225 | <!-- --> | |||
2226 | <xsl:at tribute na me="summar y"> | 2226 | <xsl:at tribute na me="summar y"> | |||
2227 | <xsl:v alue-of se lect="$Var TableSumma ry" /> | 2227 | <xsl:v alue-of se lect="$Var TableSumma ry" /> | |||
2228 | </xsl:a ttribute> | 2228 | </xsl:a ttribute> | |||
2229 | 2229 | |||||
2230 | <!-- Ap ply captio n template s --> | 2230 | <!-- Ap ply captio n template s --> | |||
2231 | <!-- --> | 2231 | <!-- --> | |||
2232 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> | 2232 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> | |||
2233 | <html: caption> | 2233 | <html: caption> | |||
2234 | 2234 | |||||
2235 | <xsl: if test="s tring-leng th($VarCap tionSide) > 0"> | 2235 | <xsl: if test="s tring-leng th($VarCap tionSide) > 0"> | |||
2236 | <xsl :attribute name="sty le"> | 2236 | <xsl :attribute name="sty le"> | |||
2237 | <xs l:value-of select="c oncat('cap tion-side: ', $VarCa ptionSide) " /> | 2237 | <xs l:value-of select="c oncat('cap tion-side: ', $VarCa ptionSide) " /> | |||
2238 | </xs l:attribut e> | 2238 | </xs l:attribut e> | |||
2239 | </xsl :if> | 2239 | </xsl :if> | |||
2240 | 2240 | |||||
2241 | <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > | 2241 | <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > | |||
2242 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2242 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2243 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 2243 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
2244 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 2244 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
2245 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | 2245 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | |||
2246 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 2246 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
2247 | </xsl :apply-tem plates> | 2247 | </xsl :apply-tem plates> | |||
2248 | 2248 | |||||
2249 | </html :caption> | 2249 | </html :caption> | |||
2250 | </xsl:f or-each> | 2250 | </xsl:f or-each> | |||
2251 | 2251 | |||||
2252 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> | 2252 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> | |||
2253 | <xsl:v ariable na me="VarSec tion" sele ct="." /> | 2253 | <xsl:v ariable na me="VarSec tion" sele ct="." /> | |||
2254 | 2254 | |||||
2255 | <!-- R esolve sec tion prope rties --> | 2255 | <!-- R esolve sec tion prope rties --> | |||
2256 | <!-- --> | 2256 | <!-- --> | |||
2257 | <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> | 2257 | <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> | |||
2258 | <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> | 2258 | <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> | |||
2259 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | 2259 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | |||
2260 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramTable" /> | 2260 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramTable" /> | |||
2261 | <xsl :with-para m name="Pa ramTable" select="$P aramTable" /> | 2261 | <xsl :with-para m name="Pa ramTable" select="$P aramTable" /> | |||
2262 | <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> | 2262 | <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> | |||
2263 | </xsl :call-temp late> | 2263 | </xsl :call-temp late> | |||
2264 | </xsl: variable> | 2264 | </xsl: variable> | |||
2265 | <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" /> | 2265 | <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" /> | |||
2266 | 2266 | |||||
2267 | <!-- P rocess sec tion rows --> | 2267 | <!-- P rocess sec tion rows --> | |||
2268 | <!-- --> | 2268 | <!-- --> | |||
2269 | <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> | 2269 | <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> | |||
2270 | <xsl: variable n ame="VarTa bleRow" se lect="." / > | 2270 | <xsl: variable n ame="VarTa bleRow" se lect="." / > | |||
2271 | <xsl: variable n ame="VarRo wPosition" select="p osition()" /> | 2271 | <xsl: variable n ame="VarRo wPosition" select="p osition()" /> | |||
2272 | 2272 | |||||
2273 | <html :tr> | 2273 | <html :tr> | |||
2274 | 2274 | |||||
2275 | <!-- Handle ta ble level vertical a lign at ro w level -- > | 2275 | <!-- Handle ta ble level vertical a lign at ro w level -- > | |||
2276 | <!-- -- > | 2276 | <!-- -- > | |||
2277 | <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) > 0"> | 2277 | <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) > 0"> | |||
2278 | <xs l:attribut e name="st yle"> | 2278 | <xs l:attribut e name="st yle"> | |||
2279 | <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')" /> | 2279 | <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')" /> | |||
2280 | </x sl:attribu te> | 2280 | </x sl:attribu te> | |||
2281 | </xs l:if> | 2281 | </xs l:if> | |||
2282 | 2282 | |||||
2283 | <xsl :for-each select="$V arTableRow /wwdoc:Tab leCell"> | 2283 | <xsl :for-each select="$V arTableRow /wwdoc:Tab leCell"> | |||
2284 | <xs l:variable name="Var TableCell" select=". " /> | 2284 | <xs l:variable name="Var TableCell" select=". " /> | |||
2285 | <xs l:variable name="Var CellPositi on" select ="position ()" /> | 2285 | <xs l:variable name="Var CellPositi on" select ="position ()" /> | |||
2286 | 2286 | |||||
2287 | <!- - Resolve cell prope rties --> | 2287 | <!- - Resolve cell prope rties --> | |||
2288 | <!- - --> | 2288 | <!- - --> | |||
2289 | <xs l:variable name="Var ResolvedCe llProperti esAsXML"> | 2289 | <xs l:variable name="Var ResolvedCe llProperti esAsXML"> | |||
2290 | <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> | 2290 | <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> | |||
2291 | < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> | 2291 | < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> | |||
2292 | < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> | 2292 | < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> | |||
2293 | < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition" /> | 2293 | < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition" /> | |||
2294 | < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> | 2294 | < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> | |||
2295 | </ xsl:call-t emplate> | 2295 | </ xsl:call-t emplate> | |||
2296 | 2296 | |||||
2297 | <! -- Width a ttribute - -> | 2297 | <! -- Width a ttribute - -> | |||
2298 | <! -- - -> | 2298 | <! -- - -> | |||
2299 | <x sl:if test ="$VarRowP osition = 1"> | |||||
2300 | < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]"> | 2299 | <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> | |||
2301 | <xsl:varia ble name=" VarTableCe llWidth" s elect="." /> | 2300 | < xsl:variab le name="V arTableCel lWidth" se lect="." / > | |||
2302 | 2301 | |||||
2303 | <wwproject :Property Name="widt h" Value=" {$VarTable CellWidth/ @width}" / > | 2302 | < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> | |||
2304 | < /xsl:for-e ach> | 2303 | </ xsl:for-ea ch> | |||
2305 | </ xsl:if> | |||||
2306 | </x sl:variabl e> | 2304 | </x sl:variabl e> | |||
2307 | <xs l:variable name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property" /> | 2305 | <xs l:variable name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property" /> | |||
2308 | 2306 | |||||
2309 | <!- - Valid CS S properti es --> | 2307 | <!- - Valid CS S properti es --> | |||
2310 | <!- - --> | 2308 | <!- - --> | |||
2311 | <xs l:variable name="Var TableCellC SSProperti esAsXML"> | 2309 | <xs l:variable name="Var TableCellC SSProperti esAsXML"> | |||
2312 | <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> | 2310 | <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> | |||
2313 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> | 2311 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> | |||
2314 | < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path" /> | 2312 | < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path" /> | |||
2315 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | 2313 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | |||
2316 | </ xsl:call-t emplate> | 2314 | </ xsl:call-t emplate> | |||
2317 | </x sl:variabl e> | 2315 | </x sl:variabl e> | |||
2318 | <xs l:variable name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property" /> | 2316 | <xs l:variable name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property" /> | |||
2319 | 2317 | |||||
2320 | <!- - Inline C SS propert ies --> | 2318 | <!- - Inline C SS propert ies --> | |||
2321 | <!- - --> | 2319 | <!- - --> | |||
2322 | <xs l:variable name="Var InlineCSSP roperties" > | 2320 | <xs l:variable name="Var InlineCSSP roperties" > | |||
2323 | <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> | 2321 | <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> | |||
2324 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> | 2322 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> | |||
2325 | </ xsl:call-t emplate> | 2323 | </ xsl:call-t emplate> | |||
2326 | </x sl:variabl e> | 2324 | </x sl:variabl e> | |||
2327 | 2325 | |||||
2328 | <!- - Calculat e row span --> | 2326 | <!- - Calculat e row span --> | |||
2329 | <!- - --> | 2327 | <!- - --> | |||
2330 | <xs l:variable name="Var RowSpan"> | 2328 | <xs l:variable name="Var RowSpan"> | |||
2331 | <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name = 'row-spa n']/@value " /> | 2329 | <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name = 'row-spa n']/@value " /> | |||
2332 | <x sl:choose> | 2330 | <x sl:choose> | |||
2333 | < xsl:when t est="strin g-length($ VarRowSpan Hint) > 0"> | 2331 | < xsl:when t est="strin g-length($ VarRowSpan Hint) > 0"> | |||
2334 | <xsl:value -of select ="$VarRowS panHint" / > | 2332 | <xsl:value -of select ="$VarRowS panHint" / > | |||
2335 | < /xsl:when> | 2333 | < /xsl:when> | |||
2336 | < xsl:otherw ise> | 2334 | < xsl:otherw ise> | |||
2337 | <xsl:value -of select ="'0'" /> | 2335 | <xsl:value -of select ="'0'" /> | |||
2338 | < /xsl:other wise> | 2336 | < /xsl:other wise> | |||
2339 | </ xsl:choose > | 2337 | </ xsl:choose > | |||
2340 | </x sl:variabl e> | 2338 | </x sl:variabl e> | |||
2341 | 2339 | |||||
2342 | <!- - Calculat e column s pan --> | 2340 | <!- - Calculat e column s pan --> | |||
2343 | <!- - --> | 2341 | <!- - --> | |||
2344 | <xs l:variable name="Var ColumnSpan "> | 2342 | <xs l:variable name="Var ColumnSpan "> | |||
2345 | <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" /> | 2343 | <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" /> | |||
2346 | <x sl:choose> | 2344 | <x sl:choose> | |||
2347 | < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> | 2345 | < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> | |||
2348 | <xsl:value -of select ="$VarColu mnSpanHint " /> | 2346 | <xsl:value -of select ="$VarColu mnSpanHint " /> | |||
2349 | < /xsl:when> | 2347 | < /xsl:when> | |||
2350 | < xsl:otherw ise> | 2348 | < xsl:otherw ise> | |||
2351 | <xsl:value -of select ="'0'" /> | 2349 | <xsl:value -of select ="'0'" /> | |||
2352 | < /xsl:other wise> | 2350 | < /xsl:other wise> | |||
2353 | </ xsl:choose > | 2351 | </ xsl:choose > | |||
2354 | </x sl:variabl e> | 2352 | </x sl:variabl e> | |||
2355 | 2353 | |||||
2356 | <!- - Emit cel l --> | 2354 | <!- - Emit cel l --> | |||
2357 | <!- - --> | 2355 | <!- - --> | |||
2358 | <ht ml:td> | 2356 | <ht ml:td> | |||
2359 | <! -- Style a ttribute - -> | 2357 | <! -- Style a ttribute - -> | |||
2360 | <! -- - -> | 2358 | <! -- - -> | |||
2361 | <x sl:if test ="string-l ength($Var InlineCSSP roperties) > 0"> | 2359 | <x sl:if test ="string-l ength($Var InlineCSSP roperties) > 0"> | |||
2362 | < xsl:attrib ute name=" style"> | 2360 | < xsl:attrib ute name=" style"> | |||
2363 | <xsl:value -of select ="$VarInli neCSSPrope rties" /> | 2361 | <xsl:value -of select ="$VarInli neCSSPrope rties" /> | |||
2364 | < /xsl:attri bute> | 2362 | < /xsl:attri bute> | |||
2365 | </ xsl:if> | 2363 | </ xsl:if> | |||
2366 | 2364 | |||||
2367 | <! -- Row spa n attribut e --> | 2365 | <! -- Row spa n attribut e --> | |||
2368 | <! -- --> | 2366 | <! -- --> | |||
2369 | <x sl:if test ="number($ VarRowSpan ) > 0"> | 2367 | <x sl:if test ="number($ VarRowSpan ) > 0"> | |||
2370 | < xsl:attrib ute name=" rowspan"> | 2368 | < xsl:attrib ute name=" rowspan"> | |||
2371 | <xsl:value -of select ="$VarRowS pan" /> | 2369 | <xsl:value -of select ="$VarRowS pan" /> | |||
2372 | < /xsl:attri bute> | 2370 | < /xsl:attri bute> | |||
2373 | </ xsl:if> | 2371 | </ xsl:if> | |||
2374 | 2372 | |||||
2375 | <! -- Column span attri bute --> | 2373 | <! -- Column span attri bute --> | |||
2376 | <! -- --> | 2374 | <! -- --> | |||
2377 | <x sl:if test ="number($ VarColumnS pan) > 0"> | 2375 | <x sl:if test ="number($ VarColumnS pan) > 0"> | |||
2378 | < xsl:attrib ute name=" colspan"> | 2376 | < xsl:attrib ute name=" colspan"> | |||
2379 | <xsl:value -of select ="$VarColu mnSpan" /> | 2377 | <xsl:value -of select ="$VarColu mnSpan" /> | |||
2380 | < /xsl:attri bute> | 2378 | < /xsl:attri bute> | |||
2381 | </ xsl:if> | 2379 | </ xsl:if> | |||
2382 | 2380 | |||||
2383 | <! -- Recurse --> | 2381 | <! -- Recurse --> | |||
2384 | <! -- --> | 2382 | <! -- --> | |||
2385 | <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> | 2383 | <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> | |||
2386 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | 2384 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | |||
2387 | < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> | 2385 | < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> | |||
2388 | < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> | 2386 | < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> | |||
2389 | < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> | 2387 | < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> | |||
2390 | < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> | 2388 | < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> | |||
2391 | </ xsl:apply- templates> | 2389 | </ xsl:apply- templates> | |||
2392 | </h tml:td> | 2390 | </h tml:td> | |||
2393 | </xs l:for-each > | 2391 | </xs l:for-each > | |||
2394 | 2392 | |||||
2395 | </htm l:tr> | 2393 | </htm l:tr> | |||
2396 | </xsl: for-each> | 2394 | </xsl: for-each> | |||
2397 | </xsl:f or-each> | 2395 | </xsl:f or-each> | |||
2398 | 2396 | |||||
2399 | </html:t able> | 2397 | </html:t able> | |||
2400 | 2398 | |||||
2401 | <!-- Tab le Footnot es --> | 2399 | <!-- Tab le Footnot es --> | |||
2402 | <!-- --> | 2400 | <!-- --> | |||
2403 | <xsl:cal l-template name="Con tent-Notes "> | 2401 | <xsl:cal l-template name="Con tent-Notes "> | |||
2404 | <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> | 2402 | <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> | |||
2405 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 2403 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
2406 | <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> | 2404 | <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> | |||
2407 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 2405 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
2408 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | 2406 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | |||
2409 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 2407 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
2410 | </xsl:ca ll-templat e> | 2408 | </xsl:ca ll-templat e> | |||
2411 | 2409 | |||||
2412 | <!-- Dro pdown End --> | 2410 | <!-- Dro pdown End --> | |||
2413 | <!-- --> | 2411 | <!-- --> | |||
2414 | <xsl:if test="$Par amTableBeh avior/@dro pdown = 'e nd'"> | 2412 | <xsl:if test="$Par amTableBeh avior/@dro pdown = 'e nd'"> | |||
2415 | <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t> | 2413 | <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t> | |||
2416 | </xsl:if > | 2414 | </xsl:if > | |||
2417 | </xsl:tem plate> | 2415 | </xsl:tem plate> | |||
2418 | 2416 | |||||
2419 | 2417 | |||||
2420 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> | 2418 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> | |||
2421 | <xsl:par am name="P aramSplits " /> | 2419 | <xsl:par am name="P aramSplits " /> | |||
2422 | <xsl:par am name="P aramCargo" /> | 2420 | <xsl:par am name="P aramCargo" /> | |||
2423 | <xsl:par am name="P aramLinks" /> | 2421 | <xsl:par am name="P aramLinks" /> | |||
2424 | <xsl:par am name="P aramTOCDat a" /> | 2422 | <xsl:par am name="P aramTOCDat a" /> | |||
2425 | <xsl:par am name="P aramSplit" /> | 2423 | <xsl:par am name="P aramSplit" /> | |||
2426 | 2424 | |||||
2427 | <!-- Abo rted? --> | 2425 | <!-- Abo rted? --> | |||
2428 | <!-- --> | 2426 | <!-- --> | |||
2429 | <xsl:if test="not( wwprogress :Abort())" > | 2427 | <xsl:if test="not( wwprogress :Abort())" > | |||
2430 | <xsl:ca ll-templat e name="Fr ame"> | 2428 | <xsl:ca ll-templat e name="Fr ame"> | |||
2431 | <xsl:w ith-param name="Para mFrame" se lect="." / > | 2429 | <xsl:w ith-param name="Para mFrame" se lect="." / > | |||
2432 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 2430 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
2433 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 2431 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
2434 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 2432 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
2435 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 2433 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
2436 | </xsl:c all-templa te> | 2434 | </xsl:c all-templa te> | |||
2437 | </xsl:if > | 2435 | </xsl:if > | |||
2438 | </xsl:tem plate> | 2436 | </xsl:tem plate> | |||
2439 | 2437 | |||||
2440 | 2438 | |||||
2441 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> | 2439 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> | |||
2442 | <xsl:par am name="P aramSplits " /> | 2440 | <xsl:par am name="P aramSplits " /> | |||
2443 | <xsl:par am name="P aramCargo" /> | 2441 | <xsl:par am name="P aramCargo" /> | |||
2444 | <xsl:par am name="P aramLinks" /> | 2442 | <xsl:par am name="P aramLinks" /> | |||
2445 | <xsl:par am name="P aramSplit" /> | 2443 | <xsl:par am name="P aramSplit" /> | |||
2446 | 2444 | |||||
2447 | <xsl:cal l-template name="Fra me"> | 2445 | <xsl:cal l-template name="Fra me"> | |||
2448 | <xsl:wi th-param n ame="Param Frame" sel ect="." /> | 2446 | <xsl:wi th-param n ame="Param Frame" sel ect="." /> | |||
2449 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 2447 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
2450 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | 2448 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | |||
2451 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 2449 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
2452 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 2450 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
2453 | </xsl:ca ll-templat e> | 2451 | </xsl:ca ll-templat e> | |||
2454 | </xsl:tem plate> | 2452 | </xsl:tem plate> | |||
2455 | 2453 | |||||
2456 | 2454 | |||||
2457 | <xsl:temp late name= "Frame"> | 2455 | <xsl:temp late name= "Frame"> | |||
2458 | <xsl:par am name="P aramFrame" /> | 2456 | <xsl:par am name="P aramFrame" /> | |||
2459 | <xsl:par am name="P aramSplits " /> | 2457 | <xsl:par am name="P aramSplits " /> | |||
2460 | <xsl:par am name="P aramCargo" /> | 2458 | <xsl:par am name="P aramCargo" /> | |||
2461 | <xsl:par am name="P aramLinks" /> | 2459 | <xsl:par am name="P aramLinks" /> | |||
2462 | <xsl:par am name="P aramSplit" /> | 2460 | <xsl:par am name="P aramSplit" /> | |||
2463 | 2461 | |||||
2464 | <!-- Get splits fr ame --> | 2462 | <!-- Get splits fr ame --> | |||
2465 | <!-- --> | 2463 | <!-- --> | |||
2466 | <xsl:for -each sele ct="$Param Splits[1]" > | 2464 | <xsl:for -each sele ct="$Param Splits[1]" > | |||
2467 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | 2465 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | |||
2468 | 2466 | |||||
2469 | <!-- Fr ame known? --> | 2467 | <!-- Fr ame known? --> | |||
2470 | <!-- --> | 2468 | <!-- --> | |||
2471 | <xsl:if test="cou nt($VarSpl itsFrame) = 1"> | 2469 | <xsl:if test="cou nt($VarSpl itsFrame) = 1"> | |||
2472 | <!-- T humbnail? --> | 2470 | <!-- T humbnail? --> | |||
2473 | <!-- --> | 2471 | <!-- --> | |||
2474 | <xsl:f or-each se lect="$Glo balFiles[1 ]"> | 2472 | <xsl:f or-each se lect="$Glo balFiles[1 ]"> | |||
2475 | <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > | 2473 | <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > | |||
2476 | <xsl: variable n ame="VarTh umbnailDef ined" sele ct="count( key('wwfil es-files-b y-path', $ VarSplitsT humbnail/@ path)[1]) > 0" /> | 2474 | <xsl: variable n ame="VarTh umbnailDef ined" sele ct="count( key('wwfil es-files-b y-path', $ VarSplitsT humbnail/@ path)[1]) > 0" /> | |||
2477 | 2475 | |||||
2478 | <!-- Emit image --> | 2476 | <!-- Emit image --> | |||
2479 | <!-- --> | 2477 | <!-- --> | |||
2480 | <xsl: choose> | 2478 | <xsl: choose> | |||
2481 | <!-- Thumbnail --> | 2479 | <!-- Thumbnail --> | |||
2482 | <!-- --> | 2480 | <!-- --> | |||
2483 | <xsl :when test ="$VarThum bnailDefin ed"> | 2481 | <xsl :when test ="$VarThum bnailDefin ed"> | |||
2484 | <!- - Emit mar kup --> | 2482 | <!- - Emit mar kup --> | |||
2485 | <!- - --> | 2483 | <!- - --> | |||
2486 | <xs l:call-tem plate name ="Frame-Ma rkup"> | 2484 | <xs l:call-tem plate name ="Frame-Ma rkup"> | |||
2487 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | 2485 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | |||
2488 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 2486 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
2489 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 2487 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
2490 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 2488 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
2491 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 2489 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
2492 | <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> | 2490 | <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> | |||
2493 | <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> | 2491 | <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> | |||
2494 | </x sl:call-te mplate> | 2492 | </x sl:call-te mplate> | |||
2495 | </xs l:when> | 2493 | </xs l:when> | |||
2496 | 2494 | |||||
2497 | <!-- Fullsize --> | 2495 | <!-- Fullsize --> | |||
2498 | <!-- --> | 2496 | <!-- --> | |||
2499 | <xsl :otherwise > | 2497 | <xsl :otherwise > | |||
2500 | <!- - Note num bering --> | 2498 | <!- - Note num bering --> | |||
2501 | <!- - --> | 2499 | <!- - --> | |||
2502 | <xs l:variable name="Var Notes" sel ect="$Para mFrame//ww doc:Note" /> | 2500 | <xs l:variable name="Var Notes" sel ect="$Para mFrame//ww doc:Note" /> | |||
2503 | <xs l:variable name="Var NoteNumber ingAsXML"> | 2501 | <xs l:variable name="Var NoteNumber ingAsXML"> | |||
2504 | <x sl:call-te mplate nam e="Notes-N umber"> | 2502 | <x sl:call-te mplate nam e="Notes-N umber"> | |||
2505 | < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> | 2503 | < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> | |||
2506 | </ xsl:call-t emplate> | 2504 | </ xsl:call-t emplate> | |||
2507 | </x sl:variabl e> | 2505 | </x sl:variabl e> | |||
2508 | <xs l:variable name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> | 2506 | <xs l:variable name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> | |||
2509 | 2507 | |||||
2510 | <!- - Frame ca rgo --> | 2508 | <!- - Frame ca rgo --> | |||
2511 | <!- - --> | 2509 | <!- - --> | |||
2512 | <xs l:variable name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> | 2510 | <xs l:variable name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> | |||
2513 | 2511 | |||||
2514 | <!- - Emit mar kup --> | 2512 | <!- - Emit mar kup --> | |||
2515 | <!- - --> | 2513 | <!- - --> | |||
2516 | <xs l:call-tem plate name ="Frame-Ma rkup"> | 2514 | <xs l:call-tem plate name ="Frame-Ma rkup"> | |||
2517 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | 2515 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | |||
2518 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 2516 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
2519 | <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo" /> | 2517 | <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo" /> | |||
2520 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 2518 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
2521 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 2519 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
2522 | <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> | 2520 | <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> | |||
2523 | <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> | 2521 | <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> | |||
2524 | </x sl:call-te mplate> | 2522 | </x sl:call-te mplate> | |||
2525 | </xs l:otherwis e> | 2523 | </xs l:otherwis e> | |||
2526 | </xsl :choose> | 2524 | </xsl :choose> | |||
2527 | </xsl: for-each> | 2525 | </xsl: for-each> | |||
2528 | </xsl:i f> | 2526 | </xsl:i f> | |||
2529 | </xsl:fo r-each> | 2527 | </xsl:fo r-each> | |||
2530 | </xsl:tem plate> | 2528 | </xsl:tem plate> | |||
2531 | 2529 | |||||
2532 | 2530 | |||||
2533 | <xsl:temp late name= "Frame-Mar kup"> | 2531 | <xsl:temp late name= "Frame-Mar kup"> | |||
2534 | <xsl:par am name="P aramFrame" /> | 2532 | <xsl:par am name="P aramFrame" /> | |||
2535 | <xsl:par am name="P aramSplits " /> | 2533 | <xsl:par am name="P aramSplits " /> | |||
2536 | <xsl:par am name="P aramCargo" /> | 2534 | <xsl:par am name="P aramCargo" /> | |||
2537 | <xsl:par am name="P aramLinks" /> | 2535 | <xsl:par am name="P aramLinks" /> | |||
2538 | <xsl:par am name="P aramSplit" /> | 2536 | <xsl:par am name="P aramSplit" /> | |||
2539 | <xsl:par am name="P aramSplits Frame" /> | 2537 | <xsl:par am name="P aramSplits Frame" /> | |||
2540 | <xsl:par am name="P aramThumbn ail" /> | 2538 | <xsl:par am name="P aramThumbn ail" /> | |||
2541 | 2539 | |||||
2542 | <!-- Con text Rule --> | 2540 | <!-- Con text Rule --> | |||
2543 | <!-- --> | 2541 | <!-- --> | |||
2544 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Graphic' , $ParamSp litsFrame/ @stylename , $ParamSp litsFrame/ @documentI D, $ParamS plitsFrame /@id)" /> | 2542 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Graphic' , $ParamSp litsFrame/ @stylename , $ParamSp litsFrame/ @documentI D, $ParamS plitsFrame /@id)" /> | |||
2545 | 2543 | |||||
2546 | <!-- Gen erate? --> | 2544 | <!-- Gen erate? --> | |||
2547 | <!-- --> | 2545 | <!-- --> | |||
2548 | <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'gener ate-output ']/@Value" /> | 2546 | <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'gener ate-output ']/@Value" /> | |||
2549 | <xsl:var iable name ="VarGener ateOutput" select="( string-len gth($VarGe nerateOutp utOption) = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> | 2547 | <xsl:var iable name ="VarGener ateOutput" select="( string-len gth($VarGe nerateOutp utOption) = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> | |||
2550 | <xsl:if test="$Var GenerateOu tput"> | 2548 | <xsl:if test="$Var GenerateOu tput"> | |||
2551 | <!-- De termine im age path - -> | 2549 | <!-- De termine im age path - -> | |||
2552 | <!-- - -> | 2550 | <!-- - -> | |||
2553 | <xsl:va riable nam e="VarImag ePath"> | 2551 | <xsl:va riable nam e="VarImag ePath"> | |||
2554 | <xsl:c hoose> | 2552 | <xsl:c hoose> | |||
2555 | <xsl: when test= "$ParamThu mbnail"> | 2553 | <xsl: when test= "$ParamThu mbnail"> | |||
2556 | <xsl :value-of select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> | 2554 | <xsl :value-of select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> | |||
2557 | </xsl :when> | 2555 | </xsl :when> | |||
2558 | 2556 | |||||
2559 | <xsl: otherwise> | 2557 | <xsl: otherwise> | |||
2560 | <xsl :value-of select="$P aramSplits Frame/@pat h" /> | 2558 | <xsl :value-of select="$P aramSplits Frame/@pat h" /> | |||
2561 | </xsl :otherwise > | 2559 | </xsl :otherwise > | |||
2562 | </xsl: choose> | 2560 | </xsl: choose> | |||
2563 | </xsl:v ariable> | 2561 | </xsl:v ariable> | |||
2564 | 2562 | |||||
2565 | <!-- Ac cess image info --> | 2563 | <!-- Ac cess image info --> | |||
2566 | <!-- --> | 2564 | <!-- --> | |||
2567 | <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > | 2565 | <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > | |||
2568 | 2566 | |||||
2569 | <!-- De termine ty pe --> | 2567 | <!-- De termine ty pe --> | |||
2570 | <!-- --> | 2568 | <!-- --> | |||
2571 | <xsl:va riable nam e="VarVect orImageAsT ext"> | 2569 | <xsl:va riable nam e="VarVect orImageAsT ext"> | |||
2572 | <xsl:c all-templa te name="I mages-Vect orImageFor mat"> | 2570 | <xsl:c all-templa te name="I mages-Vect orImageFor mat"> | |||
2573 | <xsl: with-param name="Par amImageInf o" select= "$VarImage Info" /> | 2571 | <xsl: with-param name="Par amImageInf o" select= "$VarImage Info" /> | |||
2574 | </xsl: call-templ ate> | 2572 | </xsl: call-templ ate> | |||
2575 | </xsl:v ariable> | 2573 | </xsl:v ariable> | |||
2576 | <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText = string(tr ue())" /> | 2574 | <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText = string(tr ue())" /> | |||
2577 | <xsl:va riable nam e="VarRast erImageAsT ext"> | 2575 | <xsl:va riable nam e="VarRast erImageAsT ext"> | |||
2578 | <xsl:c all-templa te name="I mages-Rast erImageFor mat"> | 2576 | <xsl:c all-templa te name="I mages-Rast erImageFor mat"> | |||
2579 | <xsl: with-param name="Par amImageInf o" select= "$VarImage Info" /> | 2577 | <xsl: with-param name="Par amImageInf o" select= "$VarImage Info" /> | |||
2580 | </xsl: call-templ ate> | 2578 | </xsl: call-templ ate> | |||
2581 | </xsl:v ariable> | 2579 | </xsl:v ariable> | |||
2582 | <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText = string(tr ue())" /> | 2580 | <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText = string(tr ue())" /> | |||
2583 | 2581 | |||||
2584 | <!-- Em it image - -> | 2582 | <!-- Em it image - -> | |||
2585 | <!-- - -> | 2583 | <!-- - -> | |||
2586 | <xsl:ch oose> | 2584 | <xsl:ch oose> | |||
2587 | <!-- V ector Imag e --> | 2585 | <!-- V ector Imag e --> | |||
2588 | <!-- --> | 2586 | <!-- --> | |||
2589 | <xsl:w hen test=" $VarVector Image"> | 2587 | <xsl:w hen test=" $VarVector Image"> | |||
2590 | <xsl: call-templ ate name=" Frame-Mark up-Vector" > | 2588 | <xsl: call-templ ate name=" Frame-Mark up-Vector" > | |||
2591 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | 2589 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | |||
2592 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2590 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2593 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 2591 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
2594 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 2592 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
2595 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 2593 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
2596 | <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> | 2594 | <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> | |||
2597 | <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule" /> | 2595 | <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule" /> | |||
2598 | <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> | 2596 | <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> | |||
2599 | <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > | 2597 | <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > | |||
2600 | </xsl :call-temp late> | 2598 | </xsl :call-temp late> | |||
2601 | </xsl: when> | 2599 | </xsl: when> | |||
2602 | 2600 | |||||
2603 | <!-- R aster Imag e --> | 2601 | <!-- R aster Imag e --> | |||
2604 | <!-- --> | 2602 | <!-- --> | |||
2605 | <xsl:w hen test=" $VarRaster Image"> | 2603 | <xsl:w hen test=" $VarRaster Image"> | |||
2606 | <xsl: call-templ ate name=" Frame-Mark up-Raster" > | 2604 | <xsl: call-templ ate name=" Frame-Mark up-Raster" > | |||
2607 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | 2605 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | |||
2608 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2606 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2609 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 2607 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
2610 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 2608 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
2611 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 2609 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
2612 | <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> | 2610 | <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> | |||
2613 | <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule" /> | 2611 | <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule" /> | |||
2614 | <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> | 2612 | <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> | |||
2615 | <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > | 2613 | <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > | |||
2616 | </xsl :call-temp late> | 2614 | </xsl :call-temp late> | |||
2617 | </xsl: when> | 2615 | </xsl: when> | |||
2618 | </xsl:c hoose> | 2616 | </xsl:c hoose> | |||
2619 | </xsl:if > | 2617 | </xsl:if > | |||
2620 | </xsl:tem plate> | 2618 | </xsl:tem plate> | |||
2621 | 2619 | |||||
2622 | 2620 | |||||
2623 | <xsl:temp late name= "Frame-Mar kup-Vector "> | 2621 | <xsl:temp late name= "Frame-Mar kup-Vector "> | |||
2624 | <xsl:par am name="P aramFrame" /> | 2622 | <xsl:par am name="P aramFrame" /> | |||
2625 | <xsl:par am name="P aramSplits " /> | 2623 | <xsl:par am name="P aramSplits " /> | |||
2626 | <xsl:par am name="P aramCargo" /> | 2624 | <xsl:par am name="P aramCargo" /> | |||
2627 | <xsl:par am name="P aramLinks" /> | 2625 | <xsl:par am name="P aramLinks" /> | |||
2628 | <xsl:par am name="P aramSplit" /> | 2626 | <xsl:par am name="P aramSplit" /> | |||
2629 | <xsl:par am name="P aramSplits Frame" /> | 2627 | <xsl:par am name="P aramSplits Frame" /> | |||
2630 | <xsl:par am name="P aramContex tRule" /> | 2628 | <xsl:par am name="P aramContex tRule" /> | |||
2631 | <xsl:par am name="P aramImageI nfo" /> | 2629 | <xsl:par am name="P aramImageI nfo" /> | |||
2632 | <xsl:par am name="P aramThumbn ail" /> | 2630 | <xsl:par am name="P aramThumbn ail" /> | |||
2633 | 2631 | |||||
2634 | <xsl:cho ose> | 2632 | <xsl:cho ose> | |||
2635 | <!-- SV G --> | 2633 | <!-- SV G --> | |||
2636 | <!-- --> | 2634 | <!-- --> | |||
2637 | <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> | 2635 | <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> | |||
2638 | <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> | 2636 | <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> | |||
2639 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | 2637 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | |||
2640 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 2638 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
2641 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 2639 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
2642 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 2640 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
2643 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 2641 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
2644 | <xsl: with-param name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> | 2642 | <xsl: with-param name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> | |||
2645 | <xsl: with-param name="Par amContextR ule" selec t="$ParamC ontextRule " /> | 2643 | <xsl: with-param name="Par amContextR ule" selec t="$ParamC ontextRule " /> | |||
2646 | <xsl: with-param name="Par amImageInf o" select= "$ParamIma geInfo" /> | 2644 | <xsl: with-param name="Par amImageInf o" select= "$ParamIma geInfo" /> | |||
2647 | <xsl: with-param name="Par amThumbnai l" select= "$ParamThu mbnail" /> | 2645 | <xsl: with-param name="Par amThumbnai l" select= "$ParamThu mbnail" /> | |||
2648 | </xsl: call-templ ate> | 2646 | </xsl: call-templ ate> | |||
2649 | </xsl:w hen> | 2647 | </xsl:w hen> | |||
2650 | </xsl:ch oose> | 2648 | </xsl:ch oose> | |||
2651 | </xsl:tem plate> | 2649 | </xsl:tem plate> | |||
2652 | 2650 | |||||
2653 | 2651 | |||||
2654 | <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> | 2652 | <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> | |||
2655 | <xsl:par am name="P aramFrame" /> | 2653 | <xsl:par am name="P aramFrame" /> | |||
2656 | <xsl:par am name="P aramSplits " /> | 2654 | <xsl:par am name="P aramSplits " /> | |||
2657 | <xsl:par am name="P aramCargo" /> | 2655 | <xsl:par am name="P aramCargo" /> | |||
2658 | <xsl:par am name="P aramLinks" /> | 2656 | <xsl:par am name="P aramLinks" /> | |||
2659 | <xsl:par am name="P aramSplit" /> | 2657 | <xsl:par am name="P aramSplit" /> | |||
2660 | <xsl:par am name="P aramSplits Frame" /> | 2658 | <xsl:par am name="P aramSplits Frame" /> | |||
2661 | <xsl:par am name="P aramContex tRule" /> | 2659 | <xsl:par am name="P aramContex tRule" /> | |||
2662 | <xsl:par am name="P aramImageI nfo" /> | 2660 | <xsl:par am name="P aramImageI nfo" /> | |||
2663 | <xsl:par am name="P aramThumbn ail" /> | 2661 | <xsl:par am name="P aramThumbn ail" /> | |||
2664 | 2662 | |||||
2665 | <!-- Acc ess frame behavior - -> | 2663 | <!-- Acc ess frame behavior - -> | |||
2666 | <!-- - -> | 2664 | <!-- - -> | |||
2667 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | 2665 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | |||
2668 | <xsl:va riable nam e="VarBeha viorFrame" select="k ey('wwbeha viors-fram es-by-id', $ParamFra me/@id)[1] " /> | 2666 | <xsl:va riable nam e="VarBeha viorFrame" select="k ey('wwbeha viors-fram es-by-id', $ParamFra me/@id)[1] " /> | |||
2669 | 2667 | |||||
2670 | <!-- Re solve proj ect proper ties --> | 2668 | <!-- Re solve proj ect proper ties --> | |||
2671 | <!-- --> | 2669 | <!-- --> | |||
2672 | <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > | 2670 | <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > | |||
2673 | <xsl:c all-templa te name="P roperties- ResolveCon textRule"> | 2671 | <xsl:c all-templa te name="P roperties- ResolveCon textRule"> | |||
2674 | <xsl: with-param name="Par amDocument Context" s elect="$Pa ramFrame" /> | 2672 | <xsl: with-param name="Par amDocument Context" s elect="$Pa ramFrame" /> | |||
2675 | <xsl: with-param name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property" /> | 2673 | <xsl: with-param name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property" /> | |||
2676 | <xsl: with-param name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> | 2674 | <xsl: with-param name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> | |||
2677 | <xsl: with-param name="Par amStyleTyp e" select= "'Graphic' " /> | 2675 | <xsl: with-param name="Par amStyleTyp e" select= "'Graphic' " /> | |||
2678 | <xsl: with-param name="Par amContextS tyle" sele ct="$Param Frame" /> | 2676 | <xsl: with-param name="Par amContextS tyle" sele ct="$Param Frame" /> | |||
2679 | </xsl: call-templ ate> | 2677 | </xsl: call-templ ate> | |||
2680 | </xsl:v ariable> | 2678 | </xsl:v ariable> | |||
2681 | <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> | 2679 | <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> | |||
2682 | 2680 | |||||
2683 | <!-- CS S properti es --> | 2681 | <!-- CS S properti es --> | |||
2684 | <!-- --> | 2682 | <!-- --> | |||
2685 | <xsl:va riable nam e="VarCSSP ropertiesA sXML"> | 2683 | <xsl:va riable nam e="VarCSSP ropertiesA sXML"> | |||
2686 | <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > | 2684 | <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > | |||
2687 | <xsl: with-param name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]" /> | 2685 | <xsl: with-param name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]" /> | |||
2688 | <xsl: with-param name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> | 2686 | <xsl: with-param name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> | |||
2689 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 2687 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
2690 | </xsl: call-templ ate> | 2688 | </xsl: call-templ ate> | |||
2691 | </xsl:v ariable> | 2689 | </xsl:v ariable> | |||
2692 | <xsl:va riable nam e="VarCSSP roperties" select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> | 2690 | <xsl:va riable nam e="VarCSSP roperties" select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> | |||
2693 | <xsl:va riable nam e="VarInli neCSSPrope rties"> | 2691 | <xsl:va riable nam e="VarInli neCSSPrope rties"> | |||
2694 | <xsl:c all-templa te name="C SS-InlineP roperties" > | 2692 | <xsl:c all-templa te name="C SS-InlineP roperties" > | |||
2695 | <xsl: with-param name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) > 0]" /> | 2693 | <xsl: with-param name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) > 0]" /> | |||
2696 | </xsl: call-templ ate> | 2694 | </xsl: call-templ ate> | |||
2697 | </xsl:v ariable> | 2695 | </xsl:v ariable> | |||
2698 | 2696 | |||||
2699 | <!-- Wi dth/Height --> | 2697 | <!-- Wi dth/Height --> | |||
2700 | <!-- --> | 2698 | <!-- --> | |||
2701 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name = 'by-ref erence-use -document- dimensions ']/@Value" /> | 2699 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name = 'by-ref erence-use -document- dimensions ']/@Value" /> | |||
2702 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" /> | 2700 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" /> | |||
2703 | <xsl:va riable nam e="VarWidt h"> | 2701 | <xsl:va riable nam e="VarWidt h"> | |||
2704 | <xsl:c hoose> | 2702 | <xsl:c hoose> | |||
2705 | <xsl: when test= "$ParamThu mbnail"> | 2703 | <xsl: when test= "$ParamThu mbnail"> | |||
2706 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | 2704 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | |||
2707 | </xsl :when> | 2705 | </xsl :when> | |||
2708 | 2706 | |||||
2709 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | 2707 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | |||
2710 | <xsl :choose> | 2708 | <xsl :choose> | |||
2711 | <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions) or (number ($ParamIma geInfo/@wi dth) = 0)" > | 2709 | <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions) or (number ($ParamIma geInfo/@wi dth) = 0)" > | |||
2712 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | 2710 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | |||
2713 | 2711 | |||||
2714 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))" /> | 2712 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))" /> | |||
2715 | </x sl:when> | 2713 | </x sl:when> | |||
2716 | 2714 | |||||
2717 | <xs l:otherwis e> | 2715 | <xs l:otherwis e> | |||
2718 | <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> | 2716 | <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> | |||
2719 | </x sl:otherwi se> | 2717 | </x sl:otherwi se> | |||
2720 | </xs l:choose> | 2718 | </xs l:choose> | |||
2721 | </xsl :when> | 2719 | </xsl :when> | |||
2722 | 2720 | |||||
2723 | <xsl: otherwise> | 2721 | <xsl: otherwise> | |||
2724 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | 2722 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | |||
2725 | </xsl :otherwise > | 2723 | </xsl :otherwise > | |||
2726 | </xsl: choose> | 2724 | </xsl: choose> | |||
2727 | </xsl:v ariable> | 2725 | </xsl:v ariable> | |||
2728 | <xsl:va riable nam e="VarHeig ht"> | 2726 | <xsl:va riable nam e="VarHeig ht"> | |||
2729 | <xsl:c hoose> | 2727 | <xsl:c hoose> | |||
2730 | <xsl: when test= "$ParamThu mbnail"> | 2728 | <xsl: when test= "$ParamThu mbnail"> | |||
2731 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | 2729 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | |||
2732 | </xsl :when> | 2730 | </xsl :when> | |||
2733 | 2731 | |||||
2734 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | 2732 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | |||
2735 | <xsl :choose> | 2733 | <xsl :choose> | |||
2736 | <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions) or (number ($ParamIma geInfo/@he ight) = 0) "> | 2734 | <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions) or (number ($ParamIma geInfo/@he ight) = 0) "> | |||
2737 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | 2735 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | |||
2738 | 2736 | |||||
2739 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> | 2737 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> | |||
2740 | </x sl:when> | 2738 | </x sl:when> | |||
2741 | 2739 | |||||
2742 | <xs l:otherwis e> | 2740 | <xs l:otherwis e> | |||
2743 | <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> | 2741 | <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> | |||
2744 | </x sl:otherwi se> | 2742 | </x sl:otherwi se> | |||
2745 | </xs l:choose> | 2743 | </xs l:choose> | |||
2746 | </xsl :when> | 2744 | </xsl :when> | |||
2747 | 2745 | |||||
2748 | <xsl: otherwise> | 2746 | <xsl: otherwise> | |||
2749 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | 2747 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | |||
2750 | </xsl :otherwise > | 2748 | </xsl :otherwise > | |||
2751 | </xsl: choose> | 2749 | </xsl: choose> | |||
2752 | </xsl:v ariable> | 2750 | </xsl:v ariable> | |||
2753 | 2751 | |||||
2754 | <!-- Sr c --> | 2752 | <!-- Sr c --> | |||
2755 | <!-- --> | 2753 | <!-- --> | |||
2756 | <xsl:va riable nam e="VarSrc" select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> | 2754 | <xsl:va riable nam e="VarSrc" select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> | |||
2757 | 2755 | |||||
2758 | <!-- Al t Text --> | 2756 | <!-- Al t Text --> | |||
2759 | <!-- --> | 2757 | <!-- --> | |||
2760 | <xsl:va riable nam e="VarAltT ext"> | 2758 | <xsl:va riable nam e="VarAltT ext"> | |||
2761 | <xsl:c all-templa te name="I mages-AltT ext"> | 2759 | <xsl:c all-templa te name="I mages-AltT ext"> | |||
2762 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | 2760 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | |||
2763 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | 2761 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | |||
2764 | </xsl: call-templ ate> | 2762 | </xsl: call-templ ate> | |||
2765 | </xsl:v ariable> | 2763 | </xsl:v ariable> | |||
2766 | 2764 | |||||
2767 | <!-- Lo ng Descrip tion --> | 2765 | <!-- Lo ng Descrip tion --> | |||
2768 | <!-- --> | 2766 | <!-- --> | |||
2769 | <xsl:va riable nam e="VarLong Descriptio n"> | 2767 | <xsl:va riable nam e="VarLong Descriptio n"> | |||
2770 | <xsl:c all-templa te name="I mages-Long Descriptio n"> | 2768 | <xsl:c all-templa te name="I mages-Long Descriptio n"> | |||
2771 | <xsl: with-param name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> | 2769 | <xsl: with-param name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> | |||
2772 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | 2770 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | |||
2773 | </xsl: call-templ ate> | 2771 | </xsl: call-templ ate> | |||
2774 | </xsl:v ariable> | 2772 | </xsl:v ariable> | |||
2775 | 2773 | |||||
2776 | <!-- SV G object t ag info: --> | 2774 | <!-- SV G object t ag info: --> | |||
2777 | <!-- http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html --> | 2775 | <!-- http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html --> | |||
2778 | <!-- http://vol ity.org/wi ki/index.c gi?SVG_Sca ling --> | 2776 | <!-- http://vol ity.org/wi ki/index.c gi?SVG_Sca ling --> | |||
2779 | <!-- --> | 2777 | <!-- --> | |||
2780 | 2778 | |||||
2781 | <!-- Gr aphic elem ent --> | 2779 | <!-- Gr aphic elem ent --> | |||
2782 | <!-- --> | 2780 | <!-- --> | |||
2783 | <html:o bject> | 2781 | <html:o bject> | |||
2784 | <!-- T ype attrib ute --> | 2782 | <!-- T ype attrib ute --> | |||
2785 | <!-- --> | 2783 | <!-- --> | |||
2786 | <xsl:a ttribute n ame="type" > | 2784 | <xsl:a ttribute n ame="type" > | |||
2787 | <xsl: text>image /svg+xml</ xsl:text> | 2785 | <xsl: text>image /svg+xml</ xsl:text> | |||
2788 | </xsl: attribute> | 2786 | </xsl: attribute> | |||
2789 | 2787 | |||||
2790 | <!-- D ata attrib ute --> | 2788 | <!-- D ata attrib ute --> | |||
2791 | <!-- --> | 2789 | <!-- --> | |||
2792 | <xsl:a ttribute n ame="data" > | 2790 | <xsl:a ttribute n ame="data" > | |||
2793 | <xsl: value-of s elect="$Va rSrc" /> | 2791 | <xsl: value-of s elect="$Va rSrc" /> | |||
2794 | </xsl: attribute> | 2792 | </xsl: attribute> | |||
2795 | 2793 | |||||
2796 | <!-- W idth attri bute --> | 2794 | <!-- W idth attri bute --> | |||
2797 | <!-- --> | 2795 | <!-- --> | |||
2798 | <xsl:i f test="$V arWidth &g t; 0"> | 2796 | <xsl:i f test="$V arWidth &g t; 0"> | |||
2799 | <xsl: attribute name="widt h"> | 2797 | <xsl: attribute name="widt h"> | |||
2800 | <xsl :value-of select="$V arWidth"/> | 2798 | <xsl :value-of select="$V arWidth"/> | |||
2801 | </xsl :attribute > | 2799 | </xsl :attribute > | |||
2802 | </xsl: if> | 2800 | </xsl: if> | |||
2803 | 2801 | |||||
2804 | <!-- H eight attr ibute --> | 2802 | <!-- H eight attr ibute --> | |||
2805 | <!-- --> | 2803 | <!-- --> | |||
2806 | <xsl:i f test="$V arHeight & gt; 0"> | 2804 | <xsl:i f test="$V arHeight & gt; 0"> | |||
2807 | <xsl: attribute name="heig ht"> | 2805 | <xsl: attribute name="heig ht"> | |||
2808 | <xsl :value-of select="$V arHeight"/ > | 2806 | <xsl :value-of select="$V arHeight"/ > | |||
2809 | </xsl :attribute > | 2807 | </xsl :attribute > | |||
2810 | </xsl: if> | 2808 | </xsl: if> | |||
2811 | 2809 | |||||
2812 | <!-- S tyle attri bute --> | 2810 | <!-- S tyle attri bute --> | |||
2813 | <!-- --> | 2811 | <!-- --> | |||
2814 | <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) > ; 0"> | 2812 | <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) > ; 0"> | |||
2815 | <xsl: attribute name="styl e"> | 2813 | <xsl: attribute name="styl e"> | |||
2816 | <xsl :value-of select="$V arInlineCS SPropertie s" /> | 2814 | <xsl :value-of select="$V arInlineCS SPropertie s" /> | |||
2817 | </xsl :attribute > | 2815 | </xsl :attribute > | |||
2818 | </xsl: if> | 2816 | </xsl: if> | |||
2819 | 2817 | |||||
2820 | <!-- T itle attri bute --> | 2818 | <!-- T itle attri bute --> | |||
2821 | <!-- --> | 2819 | <!-- --> | |||
2822 | <xsl:c hoose> | 2820 | <xsl:c hoose> | |||
2823 | <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> | 2821 | <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> | |||
2824 | <xsl :attribute name="tit le"> | 2822 | <xsl :attribute name="tit le"> | |||
2825 | <xs l:value-of select="$ VarAltText " /> | 2823 | <xs l:value-of select="$ VarAltText " /> | |||
2826 | </xs l:attribut e> | 2824 | </xs l:attribut e> | |||
2827 | </xsl :when> | 2825 | </xsl :when> | |||
2828 | 2826 | |||||
2829 | <xsl: when test= "string-le ngth($Para mSplitsFra me/@title) > 0"> | 2827 | <xsl: when test= "string-le ngth($Para mSplitsFra me/@title) > 0"> | |||
2830 | <xsl :attribute name="tit le"> | 2828 | <xsl :attribute name="tit le"> | |||
2831 | <xs l:value-of select="$ ParamSplit sFrame/@ti tle" /> | 2829 | <xs l:value-of select="$ ParamSplit sFrame/@ti tle" /> | |||
2832 | </xs l:attribut e> | 2830 | </xs l:attribut e> | |||
2833 | </xsl :when> | 2831 | </xsl :when> | |||
2834 | </xsl: choose> | 2832 | </xsl: choose> | |||
2835 | 2833 | |||||
2836 | <!-- S rc paramet er --> | 2834 | <!-- S rc paramet er --> | |||
2837 | <!-- --> | 2835 | <!-- --> | |||
2838 | <html: param name ="src" val ue="{$VarS rc}" value type="data " /> | 2836 | <html: param name ="src" val ue="{$VarS rc}" value type="data " /> | |||
2839 | </html: object> | 2837 | </html: object> | |||
2840 | 2838 | |||||
2841 | <!-- Ge nerate D L inks --> | 2839 | <!-- Ge nerate D L inks --> | |||
2842 | <!-- --> | 2840 | <!-- --> | |||
2843 | <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> | 2841 | <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> | |||
2844 | <xsl:if test="$Va rGenerateD Links = 't rue'"> | 2842 | <xsl:if test="$Va rGenerateD Links = 't rue'"> | |||
2845 | <xsl:i f test="st ring-lengt h($VarLong Descriptio n) > 0" > | 2843 | <xsl:i f test="st ring-lengt h($VarLong Descriptio n) > 0" > | |||
2846 | <xsl: text> </xs l:text> | 2844 | <xsl: text> </xs l:text> | |||
2847 | <html :a href="{ $VarLongDe scription} " title="{ concat('De scription link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br /> | 2845 | <html :a href="{ $VarLongDe scription} " title="{ concat('De scription link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br /> | |||
2848 | </xsl: if> | 2846 | </xsl: if> | |||
2849 | </xsl:i f> | 2847 | </xsl:i f> | |||
2850 | 2848 | |||||
2851 | <!-- No tes --> | 2849 | <!-- No tes --> | |||
2852 | <!-- --> | 2850 | <!-- --> | |||
2853 | <xsl:ch oose> | 2851 | <xsl:ch oose> | |||
2854 | <!-- T humbnail - -> | 2852 | <!-- T humbnail - -> | |||
2855 | <!-- - -> | 2853 | <!-- - -> | |||
2856 | <xsl:w hen test=" $ParamThum bnail"> | 2854 | <xsl:w hen test=" $ParamThum bnail"> | |||
2857 | <!-- Nothing to do --> | 2855 | <!-- Nothing to do --> | |||
2858 | <!-- --> | 2856 | <!-- --> | |||
2859 | </xsl: when> | 2857 | </xsl: when> | |||
2860 | 2858 | |||||
2861 | <!-- F ullsize -- > | 2859 | <!-- F ullsize -- > | |||
2862 | <!-- -- > | 2860 | <!-- -- > | |||
2863 | <xsl:o therwise> | 2861 | <xsl:o therwise> | |||
2864 | <!-- Frame Foot notes --> | 2862 | <!-- Frame Foot notes --> | |||
2865 | <!-- --> | 2863 | <!-- --> | |||
2866 | <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> | 2864 | <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> | |||
2867 | <xsl: call-templ ate name=" Content-No tes"> | 2865 | <xsl: call-templ ate name=" Content-No tes"> | |||
2868 | <xsl :with-para m name="Pa ramNotes" select="$V arNotes" / > | 2866 | <xsl :with-para m name="Pa ramNotes" select="$V arNotes" / > | |||
2869 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2867 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2870 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 2868 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
2871 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 2869 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
2872 | <xsl :with-para m name="Pa ramTOCData " select=" ''" /> | 2870 | <xsl :with-para m name="Pa ramTOCData " select=" ''" /> | |||
2873 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 2871 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
2874 | </xsl :call-temp late> | 2872 | </xsl :call-temp late> | |||
2875 | </xsl: otherwise> | 2873 | </xsl: otherwise> | |||
2876 | </xsl:c hoose> | 2874 | </xsl:c hoose> | |||
2877 | </xsl:fo r-each> | 2875 | </xsl:fo r-each> | |||
2878 | </xsl:tem plate> | 2876 | </xsl:tem plate> | |||
2879 | 2877 | |||||
2880 | 2878 | |||||
2881 | <xsl:temp late name= "Frame-Mar kup-Raster "> | 2879 | <xsl:temp late name= "Frame-Mar kup-Raster "> | |||
2882 | <xsl:par am name="P aramFrame" /> | 2880 | <xsl:par am name="P aramFrame" /> | |||
2883 | <xsl:par am name="P aramSplits " /> | 2881 | <xsl:par am name="P aramSplits " /> | |||
2884 | <xsl:par am name="P aramCargo" /> | 2882 | <xsl:par am name="P aramCargo" /> | |||
2885 | <xsl:par am name="P aramLinks" /> | 2883 | <xsl:par am name="P aramLinks" /> | |||
2886 | <xsl:par am name="P aramSplit" /> | 2884 | <xsl:par am name="P aramSplit" /> | |||
2887 | <xsl:par am name="P aramSplits Frame" /> | 2885 | <xsl:par am name="P aramSplits Frame" /> | |||
2888 | <xsl:par am name="P aramContex tRule" /> | 2886 | <xsl:par am name="P aramContex tRule" /> | |||
2889 | <xsl:par am name="P aramImageI nfo" /> | 2887 | <xsl:par am name="P aramImageI nfo" /> | |||
2890 | <xsl:par am name="P aramThumbn ail" /> | 2888 | <xsl:par am name="P aramThumbn ail" /> | |||
2891 | 2889 | |||||
2892 | <!-- Acc ess frame behavior - -> | 2890 | <!-- Acc ess frame behavior - -> | |||
2893 | <!-- - -> | 2891 | <!-- - -> | |||
2894 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | 2892 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | |||
2895 | <xsl:va riable nam e="VarBeha viorFrame" select="k ey('wwbeha viors-fram es-by-id', $ParamFra me/@id)[1] " /> | 2893 | <xsl:va riable nam e="VarBeha viorFrame" select="k ey('wwbeha viors-fram es-by-id', $ParamFra me/@id)[1] " /> | |||
2896 | 2894 | |||||
2897 | <!-- Ov erride Rul e --> | 2895 | <!-- Ov erride Rul e --> | |||
2898 | <!-- --> | 2896 | <!-- --> | |||
2899 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Graph ic', $Para mSplitsFra me/@stylen ame, $Para mSplitsFra me/@docume ntID, $Par amSplitsFr ame/@id)" /> | 2897 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Graph ic', $Para mSplitsFra me/@stylen ame, $Para mSplitsFra me/@docume ntID, $Par amSplitsFr ame/@id)" /> | |||
2900 | 2898 | |||||
2901 | <!-- Re solve proj ect proper ties --> | 2899 | <!-- Re solve proj ect proper ties --> | |||
2902 | <!-- --> | 2900 | <!-- --> | |||
2903 | <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > | 2901 | <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > | |||
2904 | <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > | 2902 | <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > | |||
2905 | <xsl: with-param name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property" /> | 2903 | <xsl: with-param name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property" /> | |||
2906 | <xsl: with-param name="Par amContextS tyle" sele ct="$Param Frame" /> | 2904 | <xsl: with-param name="Par amContextS tyle" sele ct="$Param Frame" /> | |||
2907 | </xsl: call-templ ate> | 2905 | </xsl: call-templ ate> | |||
2908 | </xsl:v ariable> | 2906 | </xsl:v ariable> | |||
2909 | <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> | 2907 | <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> | |||
2910 | 2908 | |||||
2911 | <!-- CS S properti es --> | 2909 | <!-- CS S properti es --> | |||
2912 | <!-- --> | 2910 | <!-- --> | |||
2913 | <xsl:va riable nam e="VarCSSP ropertiesA sXML"> | 2911 | <xsl:va riable nam e="VarCSSP ropertiesA sXML"> | |||
2914 | <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > | 2912 | <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > | |||
2915 | <xsl: with-param name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]" /> | 2913 | <xsl: with-param name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]" /> | |||
2916 | <xsl: with-param name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> | 2914 | <xsl: with-param name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> | |||
2917 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 2915 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
2918 | </xsl: call-templ ate> | 2916 | </xsl: call-templ ate> | |||
2919 | </xsl:v ariable> | 2917 | </xsl:v ariable> | |||
2920 | <xsl:va riable nam e="VarCSSP roperties" select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> | 2918 | <xsl:va riable nam e="VarCSSP roperties" select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> | |||
2921 | <xsl:va riable nam e="VarInli neCSSPrope rties"> | 2919 | <xsl:va riable nam e="VarInli neCSSPrope rties"> | |||
2922 | <xsl:c all-templa te name="C SS-InlineP roperties" > | 2920 | <xsl:c all-templa te name="C SS-InlineP roperties" > | |||
2923 | <xsl: with-param name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) > 0]" /> | 2921 | <xsl: with-param name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) > 0]" /> | |||
2924 | </xsl: call-templ ate> | 2922 | </xsl: call-templ ate> | |||
2925 | </xsl:v ariable> | 2923 | </xsl:v ariable> | |||
2926 | 2924 | |||||
2927 | <!-- Wi dth/Height --> | 2925 | <!-- Wi dth/Height --> | |||
2928 | <!-- --> | 2926 | <!-- --> | |||
2929 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name = 'by-ref erence-use -document- dimensions ']/@Value" /> | 2927 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name = 'by-ref erence-use -document- dimensions ']/@Value" /> | |||
2930 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" /> | 2928 | <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" /> | |||
2931 | <xsl:va riable nam e="VarWidt h"> | 2929 | <xsl:va riable nam e="VarWidt h"> | |||
2932 | <xsl:c hoose> | 2930 | <xsl:c hoose> | |||
2933 | <xsl: when test= "$ParamThu mbnail"> | 2931 | <xsl: when test= "$ParamThu mbnail"> | |||
2934 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | 2932 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | |||
2935 | </xsl :when> | 2933 | </xsl :when> | |||
2936 | 2934 | |||||
2937 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | 2935 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | |||
2938 | <xsl :choose> | 2936 | <xsl :choose> | |||
2939 | <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> | 2937 | <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> | |||
2940 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | 2938 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | |||
2941 | 2939 | |||||
2942 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))" /> | 2940 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))" /> | |||
2943 | </x sl:when> | 2941 | </x sl:when> | |||
2944 | 2942 | |||||
2945 | <xs l:otherwis e> | 2943 | <xs l:otherwis e> | |||
2946 | <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> | 2944 | <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> | |||
2947 | </x sl:otherwi se> | 2945 | </x sl:otherwi se> | |||
2948 | </xs l:choose> | 2946 | </xs l:choose> | |||
2949 | </xsl :when> | 2947 | </xsl :when> | |||
2950 | 2948 | |||||
2951 | <xsl: otherwise> | 2949 | <xsl: otherwise> | |||
2952 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | 2950 | <xsl :value-of select="nu mber($Para mImageInfo /@width)" /> | |||
2953 | </xsl :otherwise > | 2951 | </xsl :otherwise > | |||
2954 | </xsl: choose> | 2952 | </xsl: choose> | |||
2955 | </xsl:v ariable> | 2953 | </xsl:v ariable> | |||
2956 | <xsl:va riable nam e="VarHeig ht"> | 2954 | <xsl:va riable nam e="VarHeig ht"> | |||
2957 | <xsl:c hoose> | 2955 | <xsl:c hoose> | |||
2958 | <xsl: when test= "$ParamThu mbnail"> | 2956 | <xsl: when test= "$ParamThu mbnail"> | |||
2959 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | 2957 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | |||
2960 | </xsl :when> | 2958 | </xsl :when> | |||
2961 | 2959 | |||||
2962 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | 2960 | <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> | |||
2963 | <xsl :choose> | 2961 | <xsl :choose> | |||
2964 | <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> | 2962 | <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> | |||
2965 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | 2963 | <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type = 'by-refere nce'][1]/. ./.." /> | |||
2966 | 2964 | |||||
2967 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> | 2965 | <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> | |||
2968 | </x sl:when> | 2966 | </x sl:when> | |||
2969 | 2967 | |||||
2970 | <xs l:otherwis e> | 2968 | <xs l:otherwis e> | |||
2971 | <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> | 2969 | <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> | |||
2972 | </x sl:otherwi se> | 2970 | </x sl:otherwi se> | |||
2973 | </xs l:choose> | 2971 | </xs l:choose> | |||
2974 | </xsl :when> | 2972 | </xsl :when> | |||
2975 | 2973 | |||||
2976 | <xsl: otherwise> | 2974 | <xsl: otherwise> | |||
2977 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | 2975 | <xsl :value-of select="nu mber($Para mImageInfo /@height)" /> | |||
2978 | </xsl :otherwise > | 2976 | </xsl :otherwise > | |||
2979 | </xsl: choose> | 2977 | </xsl: choose> | |||
2980 | </xsl:v ariable> | 2978 | </xsl:v ariable> | |||
2981 | 2979 | |||||
2982 | <!-- Sr c --> | 2980 | <!-- Sr c --> | |||
2983 | <!-- --> | 2981 | <!-- --> | |||
2984 | <xsl:va riable nam e="VarSrc" select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> | 2982 | <xsl:va riable nam e="VarSrc" select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> | |||
2985 | 2983 | |||||
2986 | <!-- De fine Use M ap --> | 2984 | <!-- De fine Use M ap --> | |||
2987 | <!-- --> | 2985 | <!-- --> | |||
2988 | <xsl:va riable nam e="VarUseM ap"> | 2986 | <xsl:va riable nam e="VarUseM ap"> | |||
2989 | <xsl:c hoose> | 2987 | <xsl:c hoose> | |||
2990 | <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) > 0 )"> | 2988 | <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) > 0 )"> | |||
2991 | <xsl :text>#</x sl:text> | 2989 | <xsl :text>#</x sl:text> | |||
2992 | <xsl :value-of select="$P aramSplits Frame/@doc umentID" / > | 2990 | <xsl :value-of select="$P aramSplits Frame/@doc umentID" / > | |||
2993 | <xsl :text>_</x sl:text> | 2991 | <xsl :text>_</x sl:text> | |||
2994 | <xsl :value-of select="$P aramSplits Frame/@id" /> | 2992 | <xsl :value-of select="$P aramSplits Frame/@id" /> | |||
2995 | </xsl :when> | 2993 | </xsl :when> | |||
2996 | 2994 | |||||
2997 | <xsl: otherwise> | 2995 | <xsl: otherwise> | |||
2998 | <xsl :value-of select="'' " /> | 2996 | <xsl :value-of select="'' " /> | |||
2999 | </xsl :otherwise > | 2997 | </xsl :otherwise > | |||
3000 | </xsl: choose> | 2998 | </xsl: choose> | |||
3001 | </xsl:v ariable> | 2999 | </xsl:v ariable> | |||
3002 | 3000 | |||||
3003 | <!-- Al t Text --> | 3001 | <!-- Al t Text --> | |||
3004 | <!-- --> | 3002 | <!-- --> | |||
3005 | <xsl:va riable nam e="VarAltT ext"> | 3003 | <xsl:va riable nam e="VarAltT ext"> | |||
3006 | <xsl:c all-templa te name="I mages-AltT ext"> | 3004 | <xsl:c all-templa te name="I mages-AltT ext"> | |||
3007 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | 3005 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | |||
3008 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | 3006 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | |||
3009 | </xsl: call-templ ate> | 3007 | </xsl: call-templ ate> | |||
3010 | </xsl:v ariable> | 3008 | </xsl:v ariable> | |||
3011 | 3009 | |||||
3012 | <!-- Lo ng Descrip tion --> | 3010 | <!-- Lo ng Descrip tion --> | |||
3013 | <!-- --> | 3011 | <!-- --> | |||
3014 | <xsl:va riable nam e="VarLong Descriptio n"> | 3012 | <xsl:va riable nam e="VarLong Descriptio n"> | |||
3015 | <xsl:c all-templa te name="I mages-Long Descriptio n"> | 3013 | <xsl:c all-templa te name="I mages-Long Descriptio n"> | |||
3016 | <xsl: with-param name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> | 3014 | <xsl: with-param name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> | |||
3017 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | 3015 | <xsl: with-param name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> | |||
3018 | </xsl: call-templ ate> | 3016 | </xsl: call-templ ate> | |||
3019 | </xsl:v ariable> | 3017 | </xsl:v ariable> | |||
3020 | 3018 | |||||
3021 | <!-- Ta g --> | 3019 | <!-- Ta g --> | |||
3022 | <!-- --> | 3020 | <!-- --> | |||
3023 | <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Prope rties/wwpr oject:Prop erty[@Name = 'tag']/ @Value" /> | 3021 | <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Prope rties/wwpr oject:Prop erty[@Name = 'tag']/ @Value" /> | |||
3024 | <xsl:va riable nam e="VarTag" > | 3022 | <xsl:va riable nam e="VarTag" > | |||
3025 | <xsl:c hoose> | 3023 | <xsl:c hoose> | |||
3026 | <xsl: when test= "string-le ngth($VarT agProperty ) > 0"> | 3024 | <xsl: when test= "string-le ngth($VarT agProperty ) > 0"> | |||
3027 | <xsl :value-of select="$V arTagPrope rty" /> | 3025 | <xsl :value-of select="$V arTagPrope rty" /> | |||
3028 | </xsl :when> | 3026 | </xsl :when> | |||
3029 | 3027 | |||||
3030 | <xsl: otherwise> | 3028 | <xsl: otherwise> | |||
3031 | <xsl :value-of select="'i mg'" /> | 3029 | <xsl :value-of select="'i mg'" /> | |||
3032 | </xsl :otherwise > | 3030 | </xsl :otherwise > | |||
3033 | </xsl: choose> | 3031 | </xsl: choose> | |||
3034 | </xsl:v ariable> | 3032 | </xsl:v ariable> | |||
3035 | 3033 | |||||
3036 | <!-- Gr aphic elem ent --> | 3034 | <!-- Gr aphic elem ent --> | |||
3037 | <!-- --> | 3035 | <!-- --> | |||
3038 | <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > | 3036 | <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > | |||
3039 | <!-- C lass attri bute --> | 3037 | <!-- C lass attri bute --> | |||
3040 | <!-- --> | 3038 | <!-- --> | |||
3041 | <xsl:a ttribute n ame="class "> | 3039 | <xsl:a ttribute n ame="class "> | |||
3042 | <xsl: value-of s elect="wws tring:CSSC lassName($ ParamFrame /@stylenam e)" /> | 3040 | <xsl: value-of s elect="wws tring:CSSC lassName($ ParamFrame /@stylenam e)" /> | |||
3043 | 3041 | |||||
3044 | <!-- Additional CSS class es --> | 3042 | <!-- Additional CSS class es --> | |||
3045 | <!-- --> | 3043 | <!-- --> | |||
3046 | <xsl: variable n ame="VarAd ditionalCS SClassesOp tion" sele ct="normal ize-space( $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | 3044 | <xsl: variable n ame="VarAd ditionalCS SClassesOp tion" sele ct="normal ize-space( $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name = 'addition al-css-cla sses']/@Va lue)" /> | |||
3047 | <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) > 0"> | 3045 | <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) > 0"> | |||
3048 | <xsl :text> </x sl:text> | 3046 | <xsl :text> </x sl:text> | |||
3049 | <xsl :value-of select="$V arAddition alCSSClass esOption" /> | 3047 | <xsl :value-of select="$V arAddition alCSSClass esOption" /> | |||
3050 | </xsl :if> | 3048 | </xsl :if> | |||
3051 | </xsl: attribute> | 3049 | </xsl: attribute> | |||
3052 | 3050 | |||||
3053 | <!-- S rc attribu te --> | 3051 | <!-- S rc attribu te --> | |||
3054 | <!-- --> | 3052 | <!-- --> | |||
3055 | <xsl:a ttribute n ame="src"> | 3053 | <xsl:a ttribute n ame="src"> | |||
3056 | <xsl: value-of s elect="$Va rSrc" /> | 3054 | <xsl: value-of s elect="$Va rSrc" /> | |||
3057 | </xsl: attribute> | 3055 | </xsl: attribute> | |||
3058 | 3056 | |||||
3059 | <!-- W idth attri bute --> | 3057 | <!-- W idth attri bute --> | |||
3060 | <!-- --> | 3058 | <!-- --> | |||
3061 | <xsl:i f test="$V arWidth &g t; 0"> | 3059 | <xsl:i f test="$V arWidth &g t; 0"> | |||
3062 | <xsl: attribute name="widt h"> | 3060 | <xsl: attribute name="widt h"> | |||
3063 | <xsl :value-of select="$V arWidth"/> | 3061 | <xsl :value-of select="$V arWidth"/> | |||
3064 | </xsl :attribute > | 3062 | </xsl :attribute > | |||
3065 | </xsl: if> | 3063 | </xsl: if> | |||
3066 | 3064 | |||||
3067 | <!-- H eight attr ibute --> | 3065 | <!-- H eight attr ibute --> | |||
3068 | <!-- --> | 3066 | <!-- --> | |||
3069 | <xsl:i f test="$V arHeight & gt; 0"> | 3067 | <xsl:i f test="$V arHeight & gt; 0"> | |||
3070 | <xsl: attribute name="heig ht"> | 3068 | <xsl: attribute name="heig ht"> | |||
3071 | <xsl :value-of select="$V arHeight"/ > | 3069 | <xsl :value-of select="$V arHeight"/ > | |||
3072 | </xsl :attribute > | 3070 | </xsl :attribute > | |||
3073 | </xsl: if> | 3071 | </xsl: if> | |||
3074 | 3072 | |||||
3075 | <!-- S tyle attri bute --> | 3073 | <!-- S tyle attri bute --> | |||
3076 | <!-- --> | 3074 | <!-- --> | |||
3077 | <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) > ; 0"> | 3075 | <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) > ; 0"> | |||
3078 | <xsl: attribute name="styl e"> | 3076 | <xsl: attribute name="styl e"> | |||
3079 | <xsl :value-of select="$V arInlineCS SPropertie s" /> | 3077 | <xsl :value-of select="$V arInlineCS SPropertie s" /> | |||
3080 | </xsl :attribute > | 3078 | </xsl :attribute > | |||
3081 | </xsl: if> | 3079 | </xsl: if> | |||
3082 | 3080 | |||||
3083 | <!-- A lt attribu te --> | 3081 | <!-- A lt attribu te --> | |||
3084 | <!-- --> | 3082 | <!-- --> | |||
3085 | <xsl:a ttribute n ame="alt"> | 3083 | <xsl:a ttribute n ame="alt"> | |||
3086 | <xsl: value-of s elect="$Va rAltText" /> | 3084 | <xsl: value-of s elect="$Va rAltText" /> | |||
3087 | </xsl: attribute> | 3085 | </xsl: attribute> | |||
3088 | 3086 | |||||
3089 | <!-- L ongdesc at tribute -- > | 3087 | <!-- L ongdesc at tribute -- > | |||
3090 | <!-- -- > | 3088 | <!-- -- > | |||
3091 | <xsl:i f test="st ring-lengt h($VarLong Descriptio n) > 0" > | 3089 | <xsl:i f test="st ring-lengt h($VarLong Descriptio n) > 0" > | |||
3092 | <xsl: attribute name="long desc"> | 3090 | <xsl: attribute name="long desc"> | |||
3093 | <xsl :value-of select="$V arLongDesc ription" / > | 3091 | <xsl :value-of select="$V arLongDesc ription" / > | |||
3094 | </xsl :attribute > | 3092 | </xsl :attribute > | |||
3095 | </xsl: if> | 3093 | </xsl: if> | |||
3096 | 3094 | |||||
3097 | <!-- U semap attr ibute --> | 3095 | <!-- U semap attr ibute --> | |||
3098 | <!-- --> | 3096 | <!-- --> | |||
3099 | <xsl:i f test="st ring-lengt h($VarUseM ap) > 0 "> | 3097 | <xsl:i f test="st ring-lengt h($VarUseM ap) > 0 "> | |||
3100 | <xsl: attribute name="usem ap"> | 3098 | <xsl: attribute name="usem ap"> | |||
3101 | <xsl :value-of select="$V arUseMap" /> | 3099 | <xsl :value-of select="$V arUseMap" /> | |||
3102 | </xsl :attribute > | 3100 | </xsl :attribute > | |||
3103 | <xsl: attribute name="bord er"> | 3101 | <xsl: attribute name="bord er"> | |||
3104 | <xsl :value-of select="'0 '" /> | 3102 | <xsl :value-of select="'0 '" /> | |||
3105 | </xsl :attribute > | 3103 | </xsl :attribute > | |||
3106 | </xsl: if> | 3104 | </xsl: if> | |||
3107 | </xsl:e lement> | 3105 | </xsl:e lement> | |||
3108 | 3106 | |||||
3109 | <!-- Ge nerate D L inks --> | 3107 | <!-- Ge nerate D L inks --> | |||
3110 | <!-- --> | 3108 | <!-- --> | |||
3111 | <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> | 3109 | <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> | |||
3112 | <xsl:if test="$Va rGenerateD Links = 't rue'"> | 3110 | <xsl:if test="$Va rGenerateD Links = 't rue'"> | |||
3113 | <xsl:i f test="st ring-lengt h($VarLong Descriptio n) > 0" > | 3111 | <xsl:i f test="st ring-lengt h($VarLong Descriptio n) > 0" > | |||
3114 | <xsl: text> </xs l:text> | 3112 | <xsl: text> </xs l:text> | |||
3115 | <html :a href="{ $VarLongDe scription} " title="{ concat('De scription link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br /> | 3113 | <html :a href="{ $VarLongDe scription} " title="{ concat('De scription link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br /> | |||
3116 | </xsl: if> | 3114 | </xsl: if> | |||
3117 | </xsl:i f> | 3115 | </xsl:i f> | |||
3118 | 3116 | |||||
3119 | <!-- Im age map -- > | 3117 | <!-- Im age map -- > | |||
3120 | <!-- -- > | 3118 | <!-- -- > | |||
3121 | <xsl:if test="str ing-length ($VarUseMa p) > 0" > | 3119 | <xsl:if test="str ing-length ($VarUseMa p) > 0" > | |||
3122 | <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}"> | 3120 | <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}"> | |||
3123 | <xsl: choose> | 3121 | <xsl: choose> | |||
3124 | <!-- Thumbnail --> | 3122 | <!-- Thumbnail --> | |||
3125 | <!-- --> | 3123 | <!-- --> | |||
3126 | <xsl :when test ="$ParamTh umbnail"> | 3124 | <xsl :when test ="$ParamTh umbnail"> | |||
3127 | <ht ml:area co ords="{con cat('0,0,' , $VarWidt h, ',', $V arHeight)} " shape="r ect" href= "{wwuri:Ge tRelativeT o($ParamSp litsFrame/ wwsplits:W rapper/@pa th, $Param Split/@pat h)}"> | 3125 | <ht ml:area co ords="{con cat('0,0,' , $VarWidt h, ',', $V arHeight)} " shape="r ect" href= "{wwuri:Ge tRelativeT o($ParamSp litsFrame/ wwsplits:W rapper/@pa th, $Param Split/@pat h)}"> | |||
3128 | <x sl:attribu te name="a lt"> | 3126 | <x sl:attribu te name="a lt"> | |||
3129 | < xsl:value- of select= "$VarAltTe xt" /> | 3127 | < xsl:value- of select= "$VarAltTe xt" /> | |||
3130 | </ xsl:attrib ute> | 3128 | </ xsl:attrib ute> | |||
3131 | </h tml:area> | 3129 | </h tml:area> | |||
3132 | </xs l:when> | 3130 | </xs l:when> | |||
3133 | 3131 | |||||
3134 | <!-- Fullsize --> | 3132 | <!-- Fullsize --> | |||
3135 | <!-- --> | 3133 | <!-- --> | |||
3136 | <xsl :otherwise > | 3134 | <xsl :otherwise > | |||
3137 | <xs l:variable name="Var Horizontal ScalingAsT ext"> | 3135 | <xs l:variable name="Var Horizontal ScalingAsT ext"> | |||
3138 | <x sl:choose> | 3136 | <x sl:choose> | |||
3139 | < xsl:when t est="$VarW idth > 0"> | 3137 | < xsl:when t est="$VarW idth > 0"> | |||
3140 | <xsl:varia ble name=" VarWidthAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name = 'width' ]/@value), 'pt', 'px ')))" /> | 3138 | <xsl:varia ble name=" VarWidthAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name = 'width' ]/@value), 'pt', 'px ')))" /> | |||
3141 | <xsl:value -of select ="number($ VarWidth) div number ($VarWidth AsPixels)" /> | 3139 | <xsl:value -of select ="number($ VarWidth) div number ($VarWidth AsPixels)" /> | |||
3142 | < /xsl:when> | 3140 | < /xsl:when> | |||
3143 | 3141 | |||||
3144 | < xsl:otherw ise> | 3142 | < xsl:otherw ise> | |||
3145 | <xsl:value -of select ="1" /> | 3143 | <xsl:value -of select ="1" /> | |||
3146 | < /xsl:other wise> | 3144 | < /xsl:other wise> | |||
3147 | </ xsl:choose > | 3145 | </ xsl:choose > | |||
3148 | </x sl:variabl e> | 3146 | </x sl:variabl e> | |||
3149 | 3147 | |||||
3150 | <xs l:variable name="Var VerticalSc alingAsTex t"> | 3148 | <xs l:variable name="Var VerticalSc alingAsTex t"> | |||
3151 | <x sl:choose> | 3149 | <x sl:choose> | |||
3152 | < xsl:when t est="$VarH eight > 0"> | 3150 | < xsl:when t est="$VarH eight > 0"> | |||
3153 | <xsl:varia ble name=" VarHeightA sPixels" s elect="str ing(floor( wwunits:Co nvert(wwun its:Numeri cPrefix($P aramFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value ), 'pt', ' px')))" /> | 3151 | <xsl:varia ble name=" VarHeightA sPixels" s elect="str ing(floor( wwunits:Co nvert(wwun its:Numeri cPrefix($P aramFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value ), 'pt', ' px')))" /> | |||
3154 | <xsl:value -of select ="number($ VarHeight) div numbe r($VarHeig htAsPixels )" /> | 3152 | <xsl:value -of select ="number($ VarHeight) div numbe r($VarHeig htAsPixels )" /> | |||
3155 | < /xsl:when> | 3153 | < /xsl:when> | |||
3156 | 3154 | |||||
3157 | < xsl:otherw ise> | 3155 | < xsl:otherw ise> | |||
3158 | <xsl:value -of select ="1" /> | 3156 | <xsl:value -of select ="1" /> | |||
3159 | < /xsl:other wise> | 3157 | < /xsl:other wise> | |||
3160 | </ xsl:choose > | 3158 | </ xsl:choose > | |||
3161 | </x sl:variabl e> | 3159 | </x sl:variabl e> | |||
3162 | 3160 | |||||
3163 | <xs l:call-tem plate name ="ImageMap "> | 3161 | <xs l:call-tem plate name ="ImageMap "> | |||
3164 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | 3162 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | |||
3165 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 3163 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
3166 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 3164 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
3167 | <x sl:with-pa ram name=" ParamParen tBehavior" select="$ VarBehavio rFrame" /> | 3165 | <x sl:with-pa ram name=" ParamParen tBehavior" select="$ VarBehavio rFrame" /> | |||
3168 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 3166 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
3169 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 3167 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
3170 | <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > | 3168 | <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > | |||
3171 | <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> | 3169 | <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> | |||
3172 | </x sl:call-te mplate> | 3170 | </x sl:call-te mplate> | |||
3173 | </xs l:otherwis e> | 3171 | </xs l:otherwis e> | |||
3174 | </xsl :choose> | 3172 | </xsl :choose> | |||
3175 | </html :map> | 3173 | </html :map> | |||
3176 | </xsl:i f> | 3174 | </xsl:i f> | |||
3177 | 3175 | |||||
3178 | <!-- No tes --> | 3176 | <!-- No tes --> | |||
3179 | <!-- --> | 3177 | <!-- --> | |||
3180 | <xsl:ch oose> | 3178 | <xsl:ch oose> | |||
3181 | <!-- T humbnail - -> | 3179 | <!-- T humbnail - -> | |||
3182 | <!-- - -> | 3180 | <!-- - -> | |||
3183 | <xsl:w hen test=" $ParamThum bnail"> | 3181 | <xsl:w hen test=" $ParamThum bnail"> | |||
3184 | <!-- Nothing to do --> | 3182 | <!-- Nothing to do --> | |||
3185 | <!-- --> | 3183 | <!-- --> | |||
3186 | </xsl: when> | 3184 | </xsl: when> | |||
3187 | 3185 | |||||
3188 | <!-- F ullsize -- > | 3186 | <!-- F ullsize -- > | |||
3189 | <!-- -- > | 3187 | <!-- -- > | |||
3190 | <xsl:o therwise> | 3188 | <xsl:o therwise> | |||
3191 | <!-- Frame Foot notes --> | 3189 | <!-- Frame Foot notes --> | |||
3192 | <!-- --> | 3190 | <!-- --> | |||
3193 | <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> | 3191 | <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> | |||
3194 | <xsl: call-templ ate name=" Content-No tes"> | 3192 | <xsl: call-templ ate name=" Content-No tes"> | |||
3195 | <xsl :with-para m name="Pa ramNotes" select="$V arNotes" / > | 3193 | <xsl :with-para m name="Pa ramNotes" select="$V arNotes" / > | |||
3196 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 3194 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
3197 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 3195 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
3198 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 3196 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
3199 | <xsl :with-para m name="Pa ramTOCData " select=" ''" /> | 3197 | <xsl :with-para m name="Pa ramTOCData " select=" ''" /> | |||
3200 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 3198 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
3201 | </xsl :call-temp late> | 3199 | </xsl :call-temp late> | |||
3202 | </xsl: otherwise> | 3200 | </xsl: otherwise> | |||
3203 | </xsl:c hoose> | 3201 | </xsl:c hoose> | |||
3204 | </xsl:fo r-each> | 3202 | </xsl:fo r-each> | |||
3205 | </xsl:tem plate> | 3203 | </xsl:tem plate> | |||
3206 | 3204 | |||||
3207 | 3205 | |||||
3208 | <xsl:temp late name= "ImageMap" > | 3206 | <xsl:temp late name= "ImageMap" > | |||
3209 | <xsl:par am name="P aramFrame" /> | 3207 | <xsl:par am name="P aramFrame" /> | |||
3210 | <xsl:par am name="P aramSplits " /> | 3208 | <xsl:par am name="P aramSplits " /> | |||
3211 | <xsl:par am name="P aramCargo" /> | 3209 | <xsl:par am name="P aramCargo" /> | |||
3212 | <xsl:par am name="P aramParent Behavior" /> | 3210 | <xsl:par am name="P aramParent Behavior" /> | |||
3213 | <xsl:par am name="P aramLinks" /> | 3211 | <xsl:par am name="P aramLinks" /> | |||
3214 | <xsl:par am name="P aramSplit" /> | 3212 | <xsl:par am name="P aramSplit" /> | |||
3215 | <xsl:par am name="P aramHorizo ntalScalin g" /> | 3213 | <xsl:par am name="P aramHorizo ntalScalin g" /> | |||
3216 | <xsl:par am name="P aramVertic alScaling" /> | 3214 | <xsl:par am name="P aramVertic alScaling" /> | |||
3217 | 3215 | |||||
3218 | <!-- Pro cess child frames fi rst --> | 3216 | <!-- Pro cess child frames fi rst --> | |||
3219 | <!-- --> | 3217 | <!-- --> | |||
3220 | <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame | ancesto r::wwdoc:F rame[1]) = 1]"> | 3218 | <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame | ancesto r::wwdoc:F rame[1]) = 1]"> | |||
3221 | <xsl:ca ll-templat e name="Im ageMap"> | 3219 | <xsl:ca ll-templat e name="Im ageMap"> | |||
3222 | <xsl:w ith-param name="Para mFrame" se lect="." / > | 3220 | <xsl:w ith-param name="Para mFrame" se lect="." / > | |||
3223 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 3221 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
3224 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 3222 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
3225 | <xsl:w ith-param name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> | 3223 | <xsl:w ith-param name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> | |||
3226 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 3224 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
3227 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 3225 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
3228 | <xsl:w ith-param name="Para mHorizonta lScaling" select="$P aramHorizo ntalScalin g" /> | 3226 | <xsl:w ith-param name="Para mHorizonta lScaling" select="$P aramHorizo ntalScalin g" /> | |||
3229 | <xsl:w ith-param name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > | 3227 | <xsl:w ith-param name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > | |||
3230 | </xsl:c all-templa te> | 3228 | </xsl:c all-templa te> | |||
3231 | </xsl:fo r-each> | 3229 | </xsl:fo r-each> | |||
3232 | 3230 | |||||
3233 | <!-- Get link --> | 3231 | <!-- Get link --> | |||
3234 | <!-- --> | 3232 | <!-- --> | |||
3235 | <xsl:var iable name ="VarLinkI nfoAsXML"> | 3233 | <xsl:var iable name ="VarLinkI nfoAsXML"> | |||
3236 | <xsl:ch oose> | 3234 | <xsl:ch oose> | |||
3237 | <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> | 3235 | <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> | |||
3238 | <xsl: call-templ ate name=" LinkInfo"> | 3236 | <xsl: call-templ ate name=" LinkInfo"> | |||
3239 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 3237 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
3240 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 3238 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
3241 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 3239 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
3242 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > | 3240 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > | |||
3243 | </xsl :call-temp late> | 3241 | </xsl :call-temp late> | |||
3244 | </xsl: when> | 3242 | </xsl: when> | |||
3245 | 3243 | |||||
3246 | <xsl:o therwise> | 3244 | <xsl:o therwise> | |||
3247 | <xsl: variable n ame="VarCh ildLinks" select="$P aramFrame/ wwdoc:Cont ent//wwdoc :Link[coun t($ParamFr ame | ance stor::wwdo c:Frame[1] ) = 1]" /> | 3245 | <xsl: variable n ame="VarCh ildLinks" select="$P aramFrame/ wwdoc:Cont ent//wwdoc :Link[coun t($ParamFr ame | ance stor::wwdo c:Frame[1] ) = 1]" /> | |||
3248 | <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> | 3246 | <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> | |||
3249 | <xsl: if test="$ VarChildLi nksCount & gt; 0"> | 3247 | <xsl: if test="$ VarChildLi nksCount & gt; 0"> | |||
3250 | <xsl :call-temp late name= "LinkInfo" > | 3248 | <xsl :call-temp late name= "LinkInfo" > | |||
3251 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 3249 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
3252 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 3250 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
3253 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 3251 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
3254 | <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> | 3252 | <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> | |||
3255 | </xs l:call-tem plate> | 3253 | </xs l:call-tem plate> | |||
3256 | </xsl :if> | 3254 | </xsl :if> | |||
3257 | </xsl: otherwise> | 3255 | </xsl: otherwise> | |||
3258 | </xsl:c hoose> | 3256 | </xsl:c hoose> | |||
3259 | </xsl:va riable> | 3257 | </xsl:va riable> | |||
3260 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | 3258 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | |||
3261 | 3259 | |||||
3262 | <xsl:if test="stri ng-length( $VarLinkIn fo/@href) > 0"> | 3260 | <xsl:if test="stri ng-length( $VarLinkIn fo/@href) > 0"> | |||
3263 | <!-- Ge t coords a ttribute - -> | 3261 | <!-- Ge t coords a ttribute - -> | |||
3264 | <!-- - -> | 3262 | <!-- - -> | |||
3265 | <xsl:va riable nam e="VarLeft AsPixels"> | 3263 | <xsl:va riable nam e="VarLeft AsPixels"> | |||
3266 | <xsl:v ariable na me="VarOri gLeftAsPix els" selec t="string( floor(wwun its:Conver t(wwunits: NumericPre fix($Param Frame/wwdo c:Attribut e[@name = 'left']/@v alue), 'pt ', 'px'))) " /> | 3264 | <xsl:v ariable na me="VarOri gLeftAsPix els" selec t="string( floor(wwun its:Conver t(wwunits: NumericPre fix($Param Frame/wwdo c:Attribut e[@name = 'left']/@v alue), 'pt ', 'px'))) " /> | |||
3267 | <xsl:c hoose> | 3265 | <xsl:c hoose> | |||
3268 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | 3266 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | |||
3269 | <xsl :value-of select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> | 3267 | <xsl :value-of select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> | |||
3270 | </xsl :when> | 3268 | </xsl :when> | |||
3271 | <xsl: otherwise> | 3269 | <xsl: otherwise> | |||
3272 | <xsl :value-of select="$V arOrigLeft AsPixels" /> | 3270 | <xsl :value-of select="$V arOrigLeft AsPixels" /> | |||
3273 | </xsl :otherwise > | 3271 | </xsl :otherwise > | |||
3274 | </xsl: choose> | 3272 | </xsl: choose> | |||
3275 | </xsl:v ariable> | 3273 | </xsl:v ariable> | |||
3276 | 3274 | |||||
3277 | <xsl:va riable nam e="VarTopA sPixels"> | 3275 | <xsl:va riable nam e="VarTopA sPixels"> | |||
3278 | <xsl:v ariable na me="VarOri gTopAsPixe ls" select ="string(f loor(wwuni ts:Convert (wwunits:N umericPref ix($ParamF rame/wwdoc :Attribute [@name = ' top']/@val ue), 'pt', 'px')))" /> | 3276 | <xsl:v ariable na me="VarOri gTopAsPixe ls" select ="string(f loor(wwuni ts:Convert (wwunits:N umericPref ix($ParamF rame/wwdoc :Attribute [@name = ' top']/@val ue), 'pt', 'px')))" /> | |||
3279 | <xsl:c hoose> | 3277 | <xsl:c hoose> | |||
3280 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | 3278 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | |||
3281 | <xsl :value-of select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > | 3279 | <xsl :value-of select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > | |||
3282 | </xsl :when> | 3280 | </xsl :when> | |||
3283 | <xsl: otherwise> | 3281 | <xsl: otherwise> | |||
3284 | <xsl :value-of select="$V arOrigTopA sPixels" / > | 3282 | <xsl :value-of select="$V arOrigTopA sPixels" / > | |||
3285 | </xsl :otherwise > | 3283 | </xsl :otherwise > | |||
3286 | </xsl: choose> | 3284 | </xsl: choose> | |||
3287 | </xsl:v ariable> | 3285 | </xsl:v ariable> | |||
3288 | 3286 | |||||
3289 | <xsl:va riable nam e="VarWidt hAsPixels" > | 3287 | <xsl:va riable nam e="VarWidt hAsPixels" > | |||
3290 | <xsl:v ariable na me="VarOri gWidthAsPi xels" sele ct="string (floor(wwu nits:Conve rt(wwunits :NumericPr efix($Para mFrame/wwd oc:Attribu te[@name = 'width']/ @value), ' pt', 'px') ))" /> | 3288 | <xsl:v ariable na me="VarOri gWidthAsPi xels" sele ct="string (floor(wwu nits:Conve rt(wwunits :NumericPr efix($Para mFrame/wwd oc:Attribu te[@name = 'width']/ @value), ' pt', 'px') ))" /> | |||
3291 | <xsl:c hoose> | 3289 | <xsl:c hoose> | |||
3292 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | 3290 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | |||
3293 | <xsl :value-of select="nu mber($VarO rigWidthAs Pixels) * number($Pa ramHorizon talScaling )" /> | 3291 | <xsl :value-of select="nu mber($VarO rigWidthAs Pixels) * number($Pa ramHorizon talScaling )" /> | |||
3294 | </xsl :when> | 3292 | </xsl :when> | |||
3295 | <xsl: otherwise> | 3293 | <xsl: otherwise> | |||
3296 | <xsl :value-of select="$V arOrigWidt hAsPixels" /> | 3294 | <xsl :value-of select="$V arOrigWidt hAsPixels" /> | |||
3297 | </xsl :otherwise > | 3295 | </xsl :otherwise > | |||
3298 | </xsl: choose> | 3296 | </xsl: choose> | |||
3299 | </xsl:v ariable> | 3297 | </xsl:v ariable> | |||
3300 | 3298 | |||||
3301 | <xsl:va riable nam e="VarHeig htAsPixels "> | 3299 | <xsl:va riable nam e="VarHeig htAsPixels "> | |||
3302 | <xsl:v ariable na me="VarOri gHeightAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name = 'height' ]/@value), 'pt', 'px ')))" /> | 3300 | <xsl:v ariable na me="VarOri gHeightAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name = 'height' ]/@value), 'pt', 'px ')))" /> | |||
3303 | <xsl:c hoose> | 3301 | <xsl:c hoose> | |||
3304 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | 3302 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | |||
3305 | <xsl :value-of select="nu mber($VarO rigHeightA sPixels) * number($P aramVertic alScaling) " /> | 3303 | <xsl :value-of select="nu mber($VarO rigHeightA sPixels) * number($P aramVertic alScaling) " /> | |||
3306 | </xsl :when> | 3304 | </xsl :when> | |||
3307 | <xsl: otherwise> | 3305 | <xsl: otherwise> | |||
3308 | <xsl :value-of select="$V arOrigHeig htAsPixels " /> | 3306 | <xsl :value-of select="$V arOrigHeig htAsPixels " /> | |||
3309 | </xsl :otherwise > | 3307 | </xsl :otherwise > | |||
3310 | </xsl: choose> | 3308 | </xsl: choose> | |||
3311 | </xsl:v ariable> | 3309 | </xsl:v ariable> | |||
3312 | 3310 | |||||
3313 | <!-- co ords --> | 3311 | <!-- co ords --> | |||
3314 | <!-- --> | 3312 | <!-- --> | |||
3315 | <xsl:va riable nam e="VarCoor dsString"> | 3313 | <xsl:va riable nam e="VarCoor dsString"> | |||
3316 | <xsl:c hoose> | 3314 | <xsl:c hoose> | |||
3317 | <xsl: when test= "string-le ngth($VarL eftAsPixel s) > 0" > | 3315 | <xsl: when test= "string-le ngth($VarL eftAsPixel s) > 0" > | |||
3318 | <xsl :value-of select="$V arLeftAsPi xels" /> | 3316 | <xsl :value-of select="$V arLeftAsPi xels" /> | |||
3319 | </xsl :when> | 3317 | </xsl :when> | |||
3320 | <xsl: otherwise> | 3318 | <xsl: otherwise> | |||
3321 | <xsl :value-of select="'0 '" /> | 3319 | <xsl :value-of select="'0 '" /> | |||
3322 | </xsl :otherwise > | 3320 | </xsl :otherwise > | |||
3323 | </xsl: choose> | 3321 | </xsl: choose> | |||
3324 | 3322 | |||||
3325 | <xsl:v alue-of se lect="','" /> | 3323 | <xsl:v alue-of se lect="','" /> | |||
3326 | 3324 | |||||
3327 | <xsl:c hoose> | 3325 | <xsl:c hoose> | |||
3328 | <xsl: when test= "string-le ngth($VarT opAsPixels ) > 0"> | 3326 | <xsl: when test= "string-le ngth($VarT opAsPixels ) > 0"> | |||
3329 | <xsl :value-of select="$V arTopAsPix els" /> | 3327 | <xsl :value-of select="$V arTopAsPix els" /> | |||
3330 | </xsl :when> | 3328 | </xsl :when> | |||
3331 | <xsl: otherwise> | 3329 | <xsl: otherwise> | |||
3332 | <xsl :value-of select="'0 '" /> | 3330 | <xsl :value-of select="'0 '" /> | |||
3333 | </xsl :otherwise > | 3331 | </xsl :otherwise > | |||
3334 | </xsl: choose> | 3332 | </xsl: choose> | |||
3335 | 3333 | |||||
3336 | <xsl:v alue-of se lect="','" /> | 3334 | <xsl:v alue-of se lect="','" /> | |||
3337 | 3335 | |||||
3338 | <xsl:c hoose> | 3336 | <xsl:c hoose> | |||
3339 | <xsl: when test= "string-le ngth($VarW idthAsPixe ls) > 0 "> | 3337 | <xsl: when test= "string-le ngth($VarW idthAsPixe ls) > 0 "> | |||
3340 | <xsl :value-of select="st ring(numbe r($VarWidt hAsPixels) + number( $VarLeftAs Pixels))" /> | 3338 | <xsl :value-of select="st ring(numbe r($VarWidt hAsPixels) + number( $VarLeftAs Pixels))" /> | |||
3341 | </xsl :when> | 3339 | </xsl :when> | |||
3342 | <xsl: otherwise> | 3340 | <xsl: otherwise> | |||
3343 | <xsl :value-of select="'0 '" /> | 3341 | <xsl :value-of select="'0 '" /> | |||
3344 | </xsl :otherwise > | 3342 | </xsl :otherwise > | |||
3345 | </xsl: choose> | 3343 | </xsl: choose> | |||
3346 | 3344 | |||||
3347 | <xsl:v alue-of se lect="','" /> | 3345 | <xsl:v alue-of se lect="','" /> | |||
3348 | 3346 | |||||
3349 | <xsl:c hoose> | 3347 | <xsl:c hoose> | |||
3350 | <xsl: when test= "string-le ngth($VarH eightAsPix els) > 0"> | 3348 | <xsl: when test= "string-le ngth($VarH eightAsPix els) > 0"> | |||
3351 | <xsl :value-of select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))" /> | 3349 | <xsl :value-of select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))" /> | |||
3352 | </xsl :when> | 3350 | </xsl :when> | |||
3353 | <xsl: otherwise> | 3351 | <xsl: otherwise> | |||
3354 | <xsl :value-of select="'0 '" /> | 3352 | <xsl :value-of select="'0 '" /> | |||
3355 | </xsl :otherwise > | 3353 | </xsl :otherwise > | |||
3356 | </xsl: choose> | 3354 | </xsl: choose> | |||
3357 | </xsl:v ariable> | 3355 | </xsl:v ariable> | |||
3358 | 3356 | |||||
3359 | <!-- al t --> | 3357 | <!-- al t --> | |||
3360 | <!-- --> | 3358 | <!-- --> | |||
3361 | <xsl:va riable nam e="VarAltT ext"> | 3359 | <xsl:va riable nam e="VarAltT ext"> | |||
3362 | <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> | 3360 | <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> | |||
3363 | <xsl: with-param name="Par amParentBe havior" se lect="$Par amParentBe havior" /> | 3361 | <xsl: with-param name="Par amParentBe havior" se lect="$Par amParentBe havior" /> | |||
3364 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | 3362 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | |||
3365 | </xsl: call-templ ate> | 3363 | </xsl: call-templ ate> | |||
3366 | </xsl:v ariable> | 3364 | </xsl:v ariable> | |||
3367 | 3365 | |||||
3368 | <!-- ar ea --> | 3366 | <!-- ar ea --> | |||
3369 | <!-- --> | 3367 | <!-- --> | |||
3370 | <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}" shape="rec t"> | 3368 | <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}" shape="rec t"> | |||
3371 | <!-- t arget --> | 3369 | <!-- t arget --> | |||
3372 | <!-- --> | 3370 | <!-- --> | |||
3373 | <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) > 0 "> | 3371 | <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) > 0 "> | |||
3374 | <xsl: attribute name="targ et"> | 3372 | <xsl: attribute name="targ et"> | |||
3375 | <xsl :value-of select="$V arLinkInfo /@target" /> | 3373 | <xsl :value-of select="$V arLinkInfo /@target" /> | |||
3376 | </xsl :attribute > | 3374 | </xsl :attribute > | |||
3377 | </xsl: if> | 3375 | </xsl: if> | |||
3378 | 3376 | |||||
3379 | <!-- o nMouseOver --> | 3377 | <!-- o nMouseOver --> | |||
3380 | <!-- --> | 3378 | <!-- --> | |||
3381 | <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0"> | 3379 | <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0"> | |||
3382 | <xsl: attribute name="onMo useOver"> | 3380 | <xsl: attribute name="onMo useOver"> | |||
3383 | <xsl :value-of select="$V arLinkInfo /@onMouseO ver" /> | 3381 | <xsl :value-of select="$V arLinkInfo /@onMouseO ver" /> | |||
3384 | </xsl :attribute > | 3382 | </xsl :attribute > | |||
3385 | </xsl: if> | 3383 | </xsl: if> | |||
3386 | 3384 | |||||
3387 | <!-- o nMouseOut --> | 3385 | <!-- o nMouseOut --> | |||
3388 | <!-- --> | 3386 | <!-- --> | |||
3389 | <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0"> | 3387 | <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0"> | |||
3390 | <xsl: attribute name="onMo useOut"> | 3388 | <xsl: attribute name="onMo useOut"> | |||
3391 | <xsl :value-of select="$V arLinkInfo /@onMouseO ut" /> | 3389 | <xsl :value-of select="$V arLinkInfo /@onMouseO ut" /> | |||
3392 | </xsl :attribute > | 3390 | </xsl :attribute > | |||
3393 | </xsl: if> | 3391 | </xsl: if> | |||
3394 | 3392 | |||||
3395 | <!-- a lt --> | 3393 | <!-- a lt --> | |||
3396 | <!-- --> | 3394 | <!-- --> | |||
3397 | <xsl:a ttribute n ame="alt"> | 3395 | <xsl:a ttribute n ame="alt"> | |||
3398 | <xsl: value-of s elect="$Va rAltText" /> | 3396 | <xsl: value-of s elect="$Va rAltText" /> | |||
3399 | </xsl: attribute> | 3397 | </xsl: attribute> | |||
3400 | </html: area> | 3398 | </html: area> | |||
3401 | </xsl:if > | 3399 | </xsl:if > | |||
3402 | </xsl:tem plate> | 3400 | </xsl:tem plate> | |||
3403 | </xsl:styl esheet> | 3401 | </xsl:styl esheet> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2007 Araxis Ltd (www.araxis.com). All rights reserved.