Produced by Araxis Merge on Wed Nov 28 17:36:31 2007 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\tavilson\Desktop\Formats\Sun JavaHelp 2.0\Transforms | content.xsl | Wed Nov 28 15:57:20 2007 UTC |
2 | C:\Program Files\WebWorks\ePublisher Pro\Formats\Sun JavaHelp 2.0\Transforms | content.xsl | Fri Aug 24 01:16:42 2007 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 26 | 5302 |
Changed | 2 | 2 |
Inserted | 1 | 14 |
Removed | 10 | 20 |
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:wwfi les="urn:W ebWorks-En gine-Files -Schema" | 8 | xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" | |||
9 | xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" | 9 | xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" | |||
10 | xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" | 10 | xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" | |||
11 | xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" | 11 | xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" | |||
12 | xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" | 12 | xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" | |||
13 | xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" | 13 | xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" | |||
14 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | 14 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | |||
15 | xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" | 15 | xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" | |||
16 | xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" | 16 | xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" | |||
17 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | 17 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | |||
18 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | 18 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | |||
19 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | 19 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | |||
20 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | 20 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | |||
21 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | 21 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | |||
22 | xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" | 22 | xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" | |||
23 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | 23 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | |||
24 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | 24 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | |||
25 | xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" | 25 | xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" | |||
26 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | 26 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | |||
27 | exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks wwfiles ww doc wwspli ts wwtoc w wbehaviors wwnotes w wproject w wpage wwlo cale wwpro gress wwlo g wwfilesy stem wwuri wwstring wwunits ww filesext w wprojext w wimaging w wexsldoc" | 27 | exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks wwfiles ww doc wwspli ts wwtoc w wbehaviors wwnotes w wproject w wpage wwlo cale wwpro gress wwlo g wwfilesy stem wwuri wwstring wwunits ww filesext w wprojext w wimaging w wexsldoc" | |||
28 | > | 28 | > | |||
29 | <xsl:key name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File" use="conca t(@groupID , ':', @ty pe)" /> | 29 | <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-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> | 30 | <xsl:key name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> | |||
31 | <xsl:key name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " /> | 31 | <xsl:key name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " /> | |||
32 | <xsl:key name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> | 32 | <xsl:key name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> | |||
33 | <xsl:key name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> | 33 | <xsl:key name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> | |||
34 | <xsl:key name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> | 34 | <xsl:key name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> | |||
35 | <xsl:key name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> | 35 | <xsl:key name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> | |||
36 | <xsl:key name="wwdo c-paragrap hs-by-id" match="wwd oc:Paragra ph" use="@ id" /> | 36 | <xsl:key name="wwdo c-paragrap hs-by-id" match="wwd oc:Paragra ph" use="@ id" /> | |||
37 | <xsl:key name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> | 37 | <xsl:key name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> | |||
38 | <xsl:key name="wwfi les-files- by-path" m atch="wwfi les:File" use="@path " /> | 38 | <xsl:key name="wwfi les-files- by-path" m atch="wwfi les:File" use="@path " /> | |||
39 | <xsl:key name="wwpr oject-prop erty-by-na me" match= "wwproject :Property" use="@Nam e"/> | 39 | <xsl:key name="wwpr oject-prop erty-by-na me" match= "wwproject :Property" use="@Nam e"/> | |||
40 | 40 | |||||
41 | 41 | |||||
42 | <xsl:temp late name= "Breadcrum bs"> | 42 | <xsl:temp late name= "Breadcrum bs"> | |||
43 | <xsl:par am name="P aramPageRu le" /> | 43 | <xsl:par am name="P aramPageRu le" /> | |||
44 | <xsl:par am name="P aramSplit" /> | 44 | <xsl:par am name="P aramSplit" /> | |||
45 | <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> | 45 | <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> | |||
46 | 46 | |||||
47 | <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> | 47 | <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> | |||
48 | <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> | 48 | <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> | |||
49 | 49 | |||||
50 | <!-- Em it entry - -> | 50 | <!-- Em it entry - -> | |||
51 | <!-- - -> | 51 | <!-- - -> | |||
52 | <xsl:ch oose> | 52 | <xsl:ch oose> | |||
53 | <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) > 0 "> | 53 | <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) > 0 "> | |||
54 | <!-- Entry with link --> | 54 | <!-- Entry with link --> | |||
55 | <!-- --> | 55 | <!-- --> | |||
56 | <xsl: variable n ame="VarRe lativePath " select=" wwuri:Unes cape(wwuri :GetRelati veTo($VarT OCEntry/@p ath, $Para mSplit/@pa th))" /> | 56 | <xsl: variable n ame="VarRe lativePath " select=" wwuri:Unes cape(wwuri :GetRelati veTo($VarT OCEntry/@p ath, $Para mSplit/@pa th))" /> | |||
57 | 57 | |||||
58 | <html :a href="{ $VarRelati vePath}#{$ ParamBread crumbTOCEn try/@linki d}"> | 58 | <html :a href="{ $VarRelati vePath}#{$ ParamBread crumbTOCEn try/@linki d}"> | |||
59 | <xsl :call-temp late name= "Breadcrum bEntry"> | 59 | <xsl :call-temp late name= "Breadcrum bEntry"> | |||
60 | <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> | 60 | <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> | |||
61 | </xs l:call-tem plate> | 61 | </xs l:call-tem plate> | |||
62 | </htm l:a> | 62 | </htm l:a> | |||
63 | </xsl: when> | 63 | </xsl: when> | |||
64 | 64 | |||||
65 | <xsl:o therwise> | 65 | <xsl:o therwise> | |||
66 | <!-- Entry with out link - -> | 66 | <!-- Entry with out link - -> | |||
67 | <!-- - -> | 67 | <!-- - -> | |||
68 | <xsl: call-templ ate name=" Breadcrumb Entry"> | 68 | <xsl: call-templ ate name=" Breadcrumb Entry"> | |||
69 | <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> | 69 | <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> | |||
70 | </xsl :call-temp late> | 70 | </xsl :call-temp late> | |||
71 | </xsl: otherwise> | 71 | </xsl: otherwise> | |||
72 | </xsl:c hoose> | 72 | </xsl:c hoose> | |||
73 | 73 | |||||
74 | <!-- Em it separat or --> | 74 | <!-- Em it separat or --> | |||
75 | <!-- --> | 75 | <!-- --> | |||
76 | <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " /> | 76 | <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " /> | |||
77 | <xsl:ch oose> | 77 | <xsl:ch oose> | |||
78 | <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator) > 0"> | 78 | <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator) > 0"> | |||
79 | <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> | 79 | <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> | |||
80 | </xsl: when> | 80 | </xsl: when> | |||
81 | 81 | |||||
82 | <xsl:o therwise> | 82 | <xsl:o therwise> | |||
83 | <xsl: text> : </ xsl:text> | 83 | <xsl: text> : </ xsl:text> | |||
84 | </xsl: otherwise> | 84 | </xsl: otherwise> | |||
85 | </xsl:c hoose> | 85 | </xsl:c hoose> | |||
86 | </xsl:fo r-each> | 86 | </xsl:fo r-each> | |||
87 | 87 | |||||
88 | <!-- Emi t entry -- > | 88 | <!-- Emi t entry -- > | |||
89 | <!-- -- > | 89 | <!-- -- > | |||
90 | <xsl:cal l-template name="Bre adcrumbEnt ry"> | 90 | <xsl:cal l-template name="Bre adcrumbEnt ry"> | |||
91 | <xsl:wi th-param n ame="Param TOCEntry" select="$P aramBreadc rumbTOCEnt ry" /> | 91 | <xsl:wi th-param n ame="Param TOCEntry" select="$P aramBreadc rumbTOCEnt ry" /> | |||
92 | </xsl:ca ll-templat e> | 92 | </xsl:ca ll-templat e> | |||
93 | </xsl:tem plate> | 93 | </xsl:tem plate> | |||
94 | 94 | |||||
95 | 95 | |||||
96 | <xsl:temp late name= "Breadcrum bEntry"> | 96 | <xsl:temp late name= "Breadcrum bEntry"> | |||
97 | <xsl:par am name="P aramTOCEnt ry" /> | 97 | <xsl:par am name="P aramTOCEnt ry" /> | |||
98 | 98 | |||||
99 | <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"> | 99 | <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"> | |||
100 | <xsl:va riable nam e="VarText " select=" ." /> | 100 | <xsl:va riable nam e="VarText " select=" ." /> | |||
101 | 101 | |||||
102 | <xsl:va lue-of sel ect="$VarT ext/@value " /> | 102 | <xsl:va lue-of sel ect="$VarT ext/@value " /> | |||
103 | </xsl:fo r-each> | 103 | </xsl:fo r-each> | |||
104 | </xsl:tem plate> | 104 | </xsl:tem plate> | |||
105 | 105 | |||||
106 | 106 | |||||
107 | <xsl:temp late name= "Content-C ontent"> | 107 | <xsl:temp late name= "Content-C ontent"> | |||
108 | <xsl:par am name="P aramConten t" /> | 108 | <xsl:par am name="P aramConten t" /> | |||
109 | <xsl:par am name="P aramSplits " /> | 109 | <xsl:par am name="P aramSplits " /> | |||
110 | <xsl:par am name="P aramCargo" /> | 110 | <xsl:par am name="P aramCargo" /> | |||
111 | <xsl:par am name="P aramLinks" /> | 111 | <xsl:par am name="P aramLinks" /> | |||
112 | <xsl:par am name="P aramTOCDat a" /> | 112 | <xsl:par am name="P aramTOCDat a" /> | |||
113 | <xsl:par am name="P aramSplit" /> | 113 | <xsl:par am name="P aramSplit" /> | |||
114 | 114 | |||||
115 | <!-- Con tent --> | 115 | <!-- Con tent --> | |||
116 | <!-- --> | 116 | <!-- --> | |||
117 | <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> | 117 | <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> | |||
118 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 118 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
119 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | 119 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | |||
120 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 120 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
121 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | 121 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | |||
122 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 122 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
123 | </xsl:ap ply-templa tes> | 123 | </xsl:ap ply-templa tes> | |||
124 | 124 | |||||
125 | <!-- Rel ated Topic s --> | 125 | <!-- Rel ated Topic s --> | |||
126 | <!-- --> | 126 | <!-- --> | |||
127 | <xsl:cal l-template name="Rel atedTopics "> | 127 | <xsl:cal l-template name="Rel atedTopics "> | |||
128 | <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> | 128 | <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> | |||
129 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 129 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
130 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | 130 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | |||
131 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 131 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
132 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 132 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
133 | </xsl:ca ll-templat e> | 133 | </xsl:ca ll-templat e> | |||
134 | </xsl:tem plate> | 134 | </xsl:tem plate> | |||
135 | 135 | |||||
136 | 136 | |||||
137 | <xsl:temp late name= "RelatedTo pics"> | 137 | <xsl:temp late name= "RelatedTo pics"> | |||
138 | <xsl:par am name="P aramConten t" /> | 138 | <xsl:par am name="P aramConten t" /> | |||
139 | <xsl:par am name="P aramSplits " /> | 139 | <xsl:par am name="P aramSplits " /> | |||
140 | <xsl:par am name="P aramCargo" /> | 140 | <xsl:par am name="P aramCargo" /> | |||
141 | <xsl:par am name="P aramLinks" /> | 141 | <xsl:par am name="P aramLinks" /> | |||
142 | <xsl:par am name="P aramSplit" /> | 142 | <xsl:par am name="P aramSplit" /> | |||
143 | 143 | |||||
144 | <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> | 144 | <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> | |||
145 | <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> | 145 | <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> | |||
146 | <xsl:w ith-param name="Para mContent" select="$P aramConten t" /> | 146 | <xsl:w ith-param name="Para mContent" select="$P aramConten t" /> | |||
147 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 147 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
148 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 148 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
149 | </xsl:c all-templa te> | 149 | </xsl:c all-templa te> | |||
150 | </xsl:va riable> | 150 | </xsl:va riable> | |||
151 | <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> | 151 | <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> | |||
152 | 152 | |||||
153 | <xsl:if test="coun t($VarRela tedTopicPa ragraphs) > 0"> | 153 | <xsl:if test="coun t($VarRela tedTopicPa ragraphs) > 0"> | |||
154 | <html:h r /> | 154 | <html:h r /> | |||
155 | <html:d l> | 155 | <html:d l> | |||
156 | <html: dt> | 156 | <html: dt> | |||
157 | <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> | 157 | <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> | |||
158 | </html :dt> | 158 | </html :dt> | |||
159 | 159 | |||||
160 | <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> | 160 | <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> | |||
161 | <xsl: variable n ame="VarRe latedTopic Paragraph" select=". " /> | 161 | <xsl: variable n ame="VarRe latedTopic Paragraph" select=". " /> | |||
162 | 162 | |||||
163 | <xsl: variable n ame="VarOv errideRule " select=" wwprojext: GetOverrid eRule('Par agraph', $ VarRelated TopicParag raph/@styl ename, $Pa ramSplit/@ documentID , $VarRela tedTopicPa ragraph/@i d)" /> | 163 | <xsl: variable n ame="VarOv errideRule " select=" wwprojext: GetOverrid eRule('Par agraph', $ VarRelated TopicParag raph/@styl ename, $Pa ramSplit/@ documentID , $VarRela tedTopicPa ragraph/@i d)" /> | |||
164 | <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> | 164 | <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> | |||
165 | 165 | |||||
166 | <html :dd> | 166 | <html :dd> | |||
167 | <xsl :call-temp late name= "Paragraph -Normal"> | 167 | <xsl :call-temp late name= "Paragraph -Normal"> | |||
168 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 168 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
169 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | 169 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | |||
170 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 170 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
171 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 171 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
172 | <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph" /> | 172 | <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph" /> | |||
173 | <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename" /> | 173 | <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename" /> | |||
174 | <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> | 174 | <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> | |||
175 | <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> | 175 | <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> | |||
176 | </xs l:call-tem plate> | 176 | </xs l:call-tem plate> | |||
177 | </htm l:dd> | 177 | </htm l:dd> | |||
178 | </xsl: for-each> | 178 | </xsl: for-each> | |||
179 | </html: dl> | 179 | </html: dl> | |||
180 | </xsl:if > | 180 | </xsl:if > | |||
181 | </xsl:tem plate> | 181 | </xsl:tem plate> | |||
182 | 182 | |||||
183 | 183 | |||||
184 | <xsl:temp late name= "RelatedTo picParagra phs"> | 184 | <xsl:temp late name= "RelatedTo picParagra phs"> | |||
185 | <xsl:par am name="P aramConten t" /> | 185 | <xsl:par am name="P aramConten t" /> | |||
186 | <xsl:par am name="P aramCargo" /> | 186 | <xsl:par am name="P aramCargo" /> | |||
187 | <xsl:par am name="P aramSplit" /> | 187 | <xsl:par am name="P aramSplit" /> | |||
188 | 188 | |||||
189 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | 189 | <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> | |||
190 | <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')" /> | 190 | <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')" /> | |||
191 | 191 | |||||
192 | <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)]"> | 192 | <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)]"> | |||
193 | <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> | 193 | <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> | |||
194 | 194 | |||||
195 | <xsl:f or-each se lect="$Par amContent[ 1]"> | 195 | <xsl:f or-each se lect="$Par amContent[ 1]"> | |||
196 | <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> | 196 | <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> | |||
197 | <xsl :variable name="VarP aragraph" select="." /> | 197 | <xsl :variable name="VarP aragraph" select="." /> | |||
198 | 198 | |||||
199 | <!-- Paragraph has link? --> | 199 | <!-- Paragraph has link? --> | |||
200 | <!-- --> | 200 | <!-- --> | |||
201 | <xsl :variable name="VarC hildLinks" select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> | 201 | <xsl :variable name="VarC hildLinks" select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> | |||
202 | <xsl :variable name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> | 202 | <xsl :variable name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> | |||
203 | <xsl :if test=" $VarChildL inksCount > 0"> | 203 | <xsl :if test=" $VarChildL inksCount > 0"> | |||
204 | <!- - Emit par agraph --> | 204 | <!- - Emit par agraph --> | |||
205 | <!- - --> | 205 | <!- - --> | |||
206 | <ww doc:Paragr aph> | 206 | <ww doc:Paragr aph> | |||
207 | <x sl:copy-of select="$ VarParagra ph/@*" /> | 207 | <x sl:copy-of select="$ VarParagra ph/@*" /> | |||
208 | 208 | |||||
209 | <! -- Insure link is de fined --> | 209 | <! -- Insure link is de fined --> | |||
210 | <! -- --> | 210 | <! -- --> | |||
211 | <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> | 211 | <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> | |||
212 | < xsl:copy-o f select=" $VarChildL inks[1]" / > | 212 | < xsl:copy-o f select=" $VarChildL inks[1]" / > | |||
213 | </ xsl:if> | 213 | </ xsl:if> | |||
214 | 214 | |||||
215 | <x sl:copy-of select="$ VarParagra ph/*" /> | 215 | <x sl:copy-of select="$ VarParagra ph/*" /> | |||
216 | </w wdoc:Parag raph> | 216 | </w wdoc:Parag raph> | |||
217 | </xs l:if> | 217 | </xs l:if> | |||
218 | </xsl :for-each> | 218 | </xsl :for-each> | |||
219 | </xsl: for-each> | 219 | </xsl: for-each> | |||
220 | </xsl:f or-each> | 220 | </xsl:f or-each> | |||
221 | </xsl:fo r-each> | 221 | </xsl:fo r-each> | |||
222 | </xsl:tem plate> | 222 | </xsl:tem plate> | |||
223 | 223 | |||||
224 | 224 | |||||
225 | <xsl:temp late name= "Content-N otes"> | 225 | <xsl:temp late name= "Content-N otes"> | |||
226 | <xsl:par am name="P aramNotes" /> | 226 | <xsl:par am name="P aramNotes" /> | |||
227 | <xsl:par am name="P aramSplits " /> | 227 | <xsl:par am name="P aramSplits " /> | |||
228 | <xsl:par am name="P aramCargo" /> | 228 | <xsl:par am name="P aramCargo" /> | |||
229 | <xsl:par am name="P aramLinks" /> | 229 | <xsl:par am name="P aramLinks" /> | |||
230 | <xsl:par am name="P aramTOCDat a" /> | 230 | <xsl:par am name="P aramTOCDat a" /> | |||
231 | <xsl:par am name="P aramSplit" /> | 231 | <xsl:par am name="P aramSplit" /> | |||
232 | 232 | |||||
233 | <xsl:if test="coun t($ParamNo tes[1]) = 1"> | 233 | <xsl:if test="coun t($ParamNo tes[1]) = 1"> | |||
234 | <html:h r /> | 234 | <html:h r /> | |||
235 | <xsl:fo r-each sel ect="$Para mNotes"> | 235 | <xsl:fo r-each sel ect="$Para mNotes"> | |||
236 | <xsl:v ariable na me="VarNot e" select= "." /> | 236 | <xsl:v ariable na me="VarNot e" select= "." /> | |||
237 | 237 | |||||
238 | <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id = $VarNote/@ id]/@numbe r" /> | 238 | <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id = $VarNote/@ id]/@numbe r" /> | |||
239 | 239 | |||||
240 | <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> | 240 | <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> | |||
241 | <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right: 10px;"> | 241 | <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right: 10px;"> | |||
242 | <htm l:a name=" {$VarNote/ @id}"> | 242 | <htm l:a name=" {$VarNote/ @id}"> | |||
243 | <xs l:attribut e name="hr ef"> | 243 | <xs l:attribut e name="hr ef"> | |||
244 | <x sl:text>#w wfootnote_ inline_</x sl:text> | 244 | <x sl:text>#w wfootnote_ inline_</x sl:text> | |||
245 | <x sl:value-o f select=" $VarNote/@ id" /> | 245 | <x sl:value-o f select=" $VarNote/@ id" /> | |||
246 | </x sl:attribu te> | 246 | </x sl:attribu te> | |||
247 | 247 | |||||
248 | <xs l:value-of select="$ VarNoteNum ber"/> | 248 | <xs l:value-of select="$ VarNoteNum ber"/> | |||
249 | </ht ml:a> | 249 | </ht ml:a> | |||
250 | </htm l:div> | 250 | </htm l:div> | |||
251 | 251 | |||||
252 | <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> | 252 | <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> | |||
253 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 253 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
254 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 254 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
255 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 255 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
256 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | 256 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | |||
257 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 257 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
258 | </xsl :apply-tem plates> | 258 | </xsl :apply-tem plates> | |||
259 | <html :br style= "clear: al l;" /> | 259 | <html :br style= "clear: al l;" /> | |||
260 | </xsl: if> | 260 | </xsl: if> | |||
261 | </xsl:f or-each> | 261 | </xsl:f or-each> | |||
262 | </xsl:if > | 262 | </xsl:if > | |||
263 | </xsl:tem plate> | 263 | </xsl:tem plate> | |||
264 | 264 | |||||
265 | 265 | |||||
266 | <xsl:temp late name= "Content-B ullet"> | 266 | <xsl:temp late name= "Content-B ullet"> | |||
267 | <xsl:par am name="P aramSplits " /> | 267 | <xsl:par am name="P aramSplits " /> | |||
268 | <xsl:par am name="P aramSplit" /> | 268 | <xsl:par am name="P aramSplit" /> | |||
269 | <xsl:par am name="P aramParagr aph" /> | 269 | <xsl:par am name="P aramParagr aph" /> | |||
270 | <xsl:par am name="P aramCharac ter" /> | 270 | <xsl:par am name="P aramCharac ter" /> | |||
271 | <xsl:par am name="P aramImage" /> | 271 | <xsl:par am name="P aramImage" /> | |||
272 | <xsl:par am name="P aramSepara tor" /> | 272 | <xsl:par am name="P aramSepara tor" /> | |||
273 | <xsl:par am name="P aramStyle" /> | 273 | <xsl:par am name="P aramStyle" /> | |||
274 | 274 | |||||
275 | <xsl:cho ose> | 275 | <xsl:cho ose> | |||
276 | <xsl:wh en test="s tring-leng th($ParamS tyle) > 0"> | 276 | <xsl:wh en test="s tring-leng th($ParamS tyle) > 0"> | |||
277 | 277 | |||||
278 | <!-- G et rule -- > | 278 | <!-- G et rule -- > | |||
279 | <!-- -- > | 279 | <!-- -- > | |||
280 | <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> | 280 | <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> | |||
281 | 281 | |||||
282 | <!-- R esolve pro ject prope rties --> | 282 | <!-- R esolve pro ject prope rties --> | |||
283 | <!-- --> | 283 | <!-- --> | |||
284 | <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> | 284 | <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> | |||
285 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | 285 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | |||
286 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramParagr aph" /> | 286 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramParagr aph" /> | |||
287 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> | 287 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> | |||
288 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> | 288 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> | |||
289 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> | 289 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> | |||
290 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style" /> | 290 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style" /> | |||
291 | </xsl :call-temp late> | 291 | </xsl :call-temp late> | |||
292 | </xsl: variable> | 292 | </xsl: variable> | |||
293 | <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | 293 | <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | |||
294 | 294 | |||||
295 | <!-- C SS propert ies --> | 295 | <!-- C SS propert ies --> | |||
296 | <!-- --> | 296 | <!-- --> | |||
297 | <xsl:v ariable na me="VarCSS Properties AsXML"> | 297 | <xsl:v ariable na me="VarCSS Properties AsXML"> | |||
298 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | 298 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | |||
299 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> | 299 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> | |||
300 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | 300 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | |||
301 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 301 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
302 | </xsl :call-temp late> | 302 | </xsl :call-temp late> | |||
303 | </xsl: variable> | 303 | </xsl: variable> | |||
304 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | 304 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | |||
305 | 305 | |||||
306 | <!-- S tyle attri bute --> | 306 | <!-- S tyle attri bute --> | |||
307 | <!-- --> | 307 | <!-- --> | |||
308 | <xsl:v ariable na me="VarSty leAttribut e"> | 308 | <xsl:v ariable na me="VarSty leAttribut e"> | |||
309 | <xsl: call-templ ate name=" CSS-Inline Properties "> | 309 | <xsl: call-templ ate name=" CSS-Inline Properties "> | |||
310 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> | 310 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> | |||
311 | </xsl :call-temp late> | 311 | </xsl :call-temp late> | |||
312 | </xsl: variable> | 312 | </xsl: variable> | |||
313 | 313 | |||||
314 | <xsl:v ariable na me="VarTag Property" select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value" /> | 314 | <xsl:v ariable na me="VarTag Property" select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value" /> | |||
315 | <xsl:v ariable na me="VarTag "> | 315 | <xsl:v ariable na me="VarTag "> | |||
316 | <xsl: choose> | 316 | <xsl: choose> | |||
317 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | 317 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | |||
318 | <xs l:value-of select="$ VarTagProp erty" /> | 318 | <xs l:value-of select="$ VarTagProp erty" /> | |||
319 | </xs l:when> | 319 | </xs l:when> | |||
320 | 320 | |||||
321 | <xsl :otherwise > | 321 | <xsl :otherwise > | |||
322 | <xs l:value-of select="' dfn'" /> | 322 | <xs l:value-of select="' dfn'" /> | |||
323 | </xs l:otherwis e> | 323 | </xs l:otherwis e> | |||
324 | </xsl :choose> | 324 | </xsl :choose> | |||
325 | </xsl: variable> | 325 | </xsl: variable> | |||
326 | 326 | |||||
327 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | 327 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | |||
328 | <!-- Style attr ibute --> | 328 | <!-- Style attr ibute --> | |||
329 | <!-- --> | 329 | <!-- --> | |||
330 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | 330 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | |||
331 | <xsl :attribute name="sty le"> | 331 | <xsl :attribute name="sty le"> | |||
332 | <xs l:value-of select="$ VarStyleAt tribute" / > | 332 | <xs l:value-of select="$ VarStyleAt tribute" / > | |||
333 | </xs l:attribut e> | 333 | </xs l:attribut e> | |||
334 | </xsl :if> | 334 | </xsl :if> | |||
335 | 335 | |||||
336 | <xsl: if test="s tring-leng th($ParamI mage) > 0"> | 336 | <xsl: if test="s tring-leng th($ParamI mage) > 0"> | |||
337 | <!-- Get absol ute path f or imaging info --> | 337 | <!-- Get absol ute path f or imaging info --> | |||
338 | <!-- --> | 338 | <!-- --> | |||
339 | <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)" /> | 339 | <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)" /> | |||
340 | <xsl :variable name="VarI mageInfo" select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> | 340 | <xsl :variable name="VarI mageInfo" select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> | |||
341 | 341 | |||||
342 | <xsl :variable name="VarI magePath"> | 342 | <xsl :variable name="VarI magePath"> | |||
343 | <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> | 343 | <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> | |||
344 | <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > | 344 | <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > | |||
345 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 345 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
346 | <x sl:with-pa ram name=" ParamURI" select="$P aramImage" /> | 346 | <x sl:with-pa ram name=" ParamURI" select="$P aramImage" /> | |||
347 | </x sl:call-te mplate> | 347 | </x sl:call-te mplate> | |||
348 | </xs l:variable > | 348 | </xs l:variable > | |||
349 | 349 | |||||
350 | <!-- Image --> | 350 | <!-- Image --> | |||
351 | <!-- --> | 351 | <!-- --> | |||
352 | <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}" /> | 352 | <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}" /> | |||
353 | </xsl :if> | 353 | </xsl :if> | |||
354 | 354 | |||||
355 | <!-- Characters --> | 355 | <!-- Characters --> | |||
356 | <!-- --> | 356 | <!-- --> | |||
357 | <xsl: value-of s elect="$Pa ramCharact er" /> | 357 | <xsl: value-of s elect="$Pa ramCharact er" /> | |||
358 | 358 | |||||
359 | <!-- Separator --> | 359 | <!-- Separator --> | |||
360 | <!-- --> | 360 | <!-- --> | |||
361 | <xsl: value-of s elect="$Pa ramSeparat or" /> | 361 | <xsl: value-of s elect="$Pa ramSeparat or" /> | |||
362 | </xsl: element> | 362 | </xsl: element> | |||
363 | </xsl:w hen> | 363 | </xsl:w hen> | |||
364 | 364 | |||||
365 | <xsl:ot herwise> | 365 | <xsl:ot herwise> | |||
366 | <xsl:i f test="st ring-lengt h($ParamIm age) > 0"> | 366 | <xsl:i f test="st ring-lengt h($ParamIm age) > 0"> | |||
367 | <!-- Get absolu te path fo r imaging info --> | 367 | <!-- Get absolu te path fo r imaging info --> | |||
368 | <!-- --> | 368 | <!-- --> | |||
369 | <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)" /> | 369 | <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)" /> | |||
370 | <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)" /> | 370 | <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)" /> | |||
371 | 371 | |||||
372 | <xsl: variable n ame="VarIm agePath"> | 372 | <xsl: variable n ame="VarIm agePath"> | |||
373 | <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> | 373 | <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> | |||
374 | <xs l:with-par am name="P aramFromAb soluteURI" select="$ ParamSplit /@path" /> | 374 | <xs l:with-par am name="P aramFromAb soluteURI" select="$ ParamSplit /@path" /> | |||
375 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 375 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
376 | <xs l:with-par am name="P aramURI" s elect="$Pa ramImage" /> | 376 | <xs l:with-par am name="P aramURI" s elect="$Pa ramImage" /> | |||
377 | </xs l:call-tem plate> | 377 | </xs l:call-tem plate> | |||
378 | </xsl :variable> | 378 | </xsl :variable> | |||
379 | 379 | |||||
380 | <!-- Image --> | 380 | <!-- Image --> | |||
381 | <!-- --> | 381 | <!-- --> | |||
382 | <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}" /> | 382 | <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}" /> | |||
383 | </xsl: if> | 383 | </xsl: if> | |||
384 | 384 | |||||
385 | <!-- C haracters --> | 385 | <!-- C haracters --> | |||
386 | <!-- --> | 386 | <!-- --> | |||
387 | <xsl:v alue-of se lect="$Par amCharacte r" /> | 387 | <xsl:v alue-of se lect="$Par amCharacte r" /> | |||
388 | 388 | |||||
389 | <!-- S eparator - -> | 389 | <!-- S eparator - -> | |||
390 | <!-- - -> | 390 | <!-- - -> | |||
391 | <xsl:v alue-of se lect="$Par amSeparato r" /> | 391 | <xsl:v alue-of se lect="$Par amSeparato r" /> | |||
392 | </xsl:o therwise> | 392 | </xsl:o therwise> | |||
393 | </xsl:ch oose> | 393 | </xsl:ch oose> | |||
394 | </xsl:tem plate> | 394 | </xsl:tem plate> | |||
395 | 395 | |||||
396 | 396 | |||||
397 | <xsl:temp late name= "Notes-Num ber"> | 397 | <xsl:temp late name= "Notes-Num ber"> | |||
398 | <xsl:par am name="P aramNotes" /> | 398 | <xsl:par am name="P aramNotes" /> | |||
399 | 399 | |||||
400 | <wwnotes :NoteNumbe ring versi on="1.0"> | 400 | <wwnotes :NoteNumbe ring versi on="1.0"> | |||
401 | <xsl:fo r-each sel ect="$Para mNotes"> | 401 | <xsl:fo r-each sel ect="$Para mNotes"> | |||
402 | <xsl:v ariable na me="VarNot e" select= "." /> | 402 | <xsl:v ariable na me="VarNot e" select= "." /> | |||
403 | 403 | |||||
404 | <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}" /> | 404 | <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}" /> | |||
405 | </xsl:f or-each> | 405 | </xsl:f or-each> | |||
406 | </wwnote s:NoteNumb ering> | 406 | </wwnote s:NoteNumb ering> | |||
407 | </xsl:tem plate> | 407 | </xsl:tem plate> | |||
408 | 408 | |||||
409 | 409 | |||||
410 | <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > | 410 | <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > | |||
411 | <xsl:par am name="P aramSplits " /> | 411 | <xsl:par am name="P aramSplits " /> | |||
412 | <xsl:par am name="P aramCargo" /> | 412 | <xsl:par am name="P aramCargo" /> | |||
413 | <xsl:par am name="P aramLinks" /> | 413 | <xsl:par am name="P aramLinks" /> | |||
414 | <xsl:par am name="P aramTOCDat a" /> | 414 | <xsl:par am name="P aramTOCDat a" /> | |||
415 | <xsl:par am name="P aramSplit" /> | 415 | <xsl:par am name="P aramSplit" /> | |||
416 | 416 | |||||
417 | <xsl:var iable name ="VarParag raph" sele ct="." /> | 417 | <xsl:var iable name ="VarParag raph" sele ct="." /> | |||
418 | 418 | |||||
419 | <!-- Abo rted? --> | 419 | <!-- Abo rted? --> | |||
420 | <!-- --> | 420 | <!-- --> | |||
421 | <xsl:if test="not( wwprogress :Abort())" > | 421 | <xsl:if test="not( wwprogress :Abort())" > | |||
422 | <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)" /> | 422 | <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)" /> | |||
423 | <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" /> | 423 | <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" /> | |||
424 | <xsl:va riable nam e="VarGlos saryBehavi orOption" select="$V arOverride Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'g lossary-be havior']/@ Value" /> | 424 | <xsl:va riable nam e="VarGlos saryBehavi orOption" select="$V arOverride Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'g lossary-be havior']/@ Value" /> | |||
425 | <xsl:va riable nam e="VarGlos saryGenera teOutput"> | 425 | <xsl:va riable nam e="VarGlos saryGenera teOutput"> | |||
426 | <xsl:c hoose> | 426 | <xsl:c hoose> | |||
427 | <xsl: when test= "contains( $VarGlossa ryBehavior Option, 'g lossary-te rm-no-outp ut')"> | 427 | <xsl: when test= "contains( $VarGlossa ryBehavior Option, 'g lossary-te rm-no-outp ut')"> | |||
428 | <xsl :value-of select="'f alse'" /> | 428 | <xsl :value-of select="'f alse'" /> | |||
429 | </xsl :when> | 429 | </xsl :when> | |||
430 | 430 | |||||
431 | <xsl: when test= "contains( $VarGlossa ryBehavior Option, 'g lossary-de finition-n o-output') "> | 431 | <xsl: when test= "contains( $VarGlossa ryBehavior Option, 'g lossary-de finition-n o-output') "> | |||
432 | <xsl :value-of select="'f alse'" /> | 432 | <xsl :value-of select="'f alse'" /> | |||
433 | </xsl :when> | 433 | </xsl :when> | |||
434 | 434 | |||||
435 | <xsl: otherwise> | 435 | <xsl: otherwise> | |||
436 | <xsl :value-of select="'t rue'" /> | 436 | <xsl :value-of select="'t rue'" /> | |||
437 | </xsl :otherwise > | 437 | </xsl :otherwise > | |||
438 | </xsl: choose> | 438 | </xsl: choose> | |||
439 | </xsl:v ariable> | 439 | </xsl:v ariable> | |||
440 | 440 | |||||
441 | <xsl:va riable nam e="VarGene rateOutput " select=" ((string-l ength($Var GenerateOu tputOption ) = 0) or ($VarGener ateOutputO ption != ' false')) a nd ($VarGl ossaryGene rateOutput != 'false ')" /> | 441 | <xsl:va riable nam e="VarGene rateOutput " select=" ((string-l ength($Var GenerateOu tputOption ) = 0) or ($VarGener ateOutputO ption != ' false')) a nd ($VarGl ossaryGene rateOutput != 'false ')" /> | |||
442 | <xsl:if test="$Va rGenerateO utput"> | 442 | <xsl:if test="$Va rGenerateO utput"> | |||
443 | <!-- R elated Top ic Only or Popup Onl y? --> | 443 | <!-- R elated Top ic Only or Popup Onl y? --> | |||
444 | <!-- --> | 444 | <!-- --> | |||
445 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | 445 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | |||
446 | <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id', $VarParag raph/@id)[ 1]" /> | 446 | <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id', $VarParag raph/@id)[ 1]" /> | |||
447 | <xsl: variable n ame="VarIn PopupPage" select="c ount($Para mCargo/wwb ehaviors:P opupPage) > 0" /> | 447 | <xsl: variable n ame="VarIn PopupPage" select="c ount($Para mCargo/wwb ehaviors:P opupPage) > 0" /> | |||
448 | <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')" /> | 448 | <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')" /> | |||
449 | <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic = 'define- no-output' " /> | 449 | <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic = 'define- no-output' " /> | |||
450 | 450 | |||||
451 | <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> | 451 | <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> | |||
452 | <!-- Paragraph --> | 452 | <!-- Paragraph --> | |||
453 | <!-- --> | 453 | <!-- --> | |||
454 | <xsl :call-temp late name= "Paragraph "> | 454 | <xsl :call-temp late name= "Paragraph "> | |||
455 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 455 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
456 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | 456 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | |||
457 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 457 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
458 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 458 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
459 | <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> | 459 | <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> | |||
460 | <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > | 460 | <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > | |||
461 | <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> | 461 | <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> | |||
462 | <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> | 462 | <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> | |||
463 | </xs l:call-tem plate> | 463 | </xs l:call-tem plate> | |||
464 | 464 | |||||
465 | <!-- MiniTOC - -> | 465 | <!-- MiniTOC - -> | |||
466 | <!-- - -> | 466 | <!-- - -> | |||
467 | <xsl :if test=" not($VarIn PopupPage) "> | 467 | <xsl :if test=" not($VarIn PopupPage) "> | |||
468 | <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" /> | 468 | <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" /> | |||
469 | <xs l:variable name="Var MiniTOCSub LevelsNume ricPrefix" select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> | 469 | <xs l:variable name="Var MiniTOCSub LevelsNume ricPrefix" select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> | |||
470 | <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)" /> | 470 | <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)" /> | |||
471 | <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> | 471 | <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> | |||
472 | <x sl:for-eac h select=" $ParamTOCD ata[1]"> | 472 | <x sl:for-eac h select=" $ParamTOCD ata[1]"> | |||
473 | < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> | 473 | < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> | |||
474 | < xsl:for-ea ch select= "$VarTOCEn try[1]"> | 474 | < xsl:for-ea ch select= "$VarTOCEn try[1]"> | |||
475 | <xsl:call- template n ame="MiniT OC"> | 475 | <xsl:call- template n ame="MiniT OC"> | |||
476 | <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> | 476 | <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> | |||
477 | <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> | 477 | <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> | |||
478 | <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > | 478 | <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > | |||
479 | <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> | 479 | <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> | |||
480 | </xsl:call -template> | 480 | </xsl:call -template> | |||
481 | < /xsl:for-e ach> | 481 | < /xsl:for-e ach> | |||
482 | </ xsl:for-ea ch> | 482 | </ xsl:for-ea ch> | |||
483 | </x sl:if> | 483 | </x sl:if> | |||
484 | </xs l:if> | 484 | </xs l:if> | |||
485 | </xsl :if> | 485 | </xsl :if> | |||
486 | </xsl: for-each> | 486 | </xsl: for-each> | |||
487 | </xsl:i f> | 487 | </xsl:i f> | |||
488 | </xsl:if > | 488 | </xsl:if > | |||
489 | </xsl:tem plate> | 489 | </xsl:tem plate> | |||
490 | 490 | |||||
491 | 491 | |||||
492 | <xsl:temp late name= "MiniTOC"> | 492 | <xsl:temp late name= "MiniTOC"> | |||
493 | <xsl:par am name="P aramSplit" /> | 493 | <xsl:par am name="P aramSplit" /> | |||
494 | <xsl:par am name="P aramTOCEnt ry" /> | 494 | <xsl:par am name="P aramTOCEnt ry" /> | |||
495 | <xsl:par am name="P aramEmitTO CEntry" /> | 495 | <xsl:par am name="P aramEmitTO CEntry" /> | |||
496 | <xsl:par am name="P aramMiniTO CSubLevels " /> | 496 | <xsl:par am name="P aramMiniTO CSubLevels " /> | |||
497 | 497 | |||||
498 | <xsl:if test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> | 498 | <xsl:if test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> | |||
499 | <html:d iv style=" background -color: #D DDDDD; bor der-color: #000000; border-wid th: 1px; b order-styl e: solid; padding: 8 px;"> | 499 | <html:d iv style=" background -color: #D DDDDD; bor der-color: #000000; border-wid th: 1px; b order-styl e: solid; padding: 8 px;"> | |||
500 | <!-- E mit top-le vel entry? --> | 500 | <!-- E mit top-le vel entry? --> | |||
501 | <!-- --> | 501 | <!-- --> | |||
502 | <xsl:c hoose> | 502 | <xsl:c hoose> | |||
503 | <xsl: when test= "$ParamEmi tTOCEntry = true()"> | 503 | <xsl: when test= "$ParamEmi tTOCEntry = true()"> | |||
504 | <htm l:dl> | 504 | <htm l:dl> | |||
505 | <ht ml:dd> | 505 | <ht ml:dd> | |||
506 | <! -- Paragra ph --> | 506 | <! -- Paragra ph --> | |||
507 | <! -- --> | 507 | <! -- --> | |||
508 | <x sl:call-te mplate nam e="MiniTOC Paragraph" > | 508 | <x sl:call-te mplate nam e="MiniTOC Paragraph" > | |||
509 | < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> | 509 | < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> | |||
510 | </ xsl:call-t emplate> | 510 | </ xsl:call-t emplate> | |||
511 | </h tml:dd> | 511 | </h tml:dd> | |||
512 | 512 | |||||
513 | <!- - Children --> | 513 | <!- - Children --> | |||
514 | <!- - --> | 514 | <!- - --> | |||
515 | <xs l:call-tem plate name ="MiniTOCE ntries"> | 515 | <xs l:call-tem plate name ="MiniTOCE ntries"> | |||
516 | <x sl:with-pa ram name=" ParamRefer encePath" select="$P aramSplit/ @path" /> | 516 | <x sl:with-pa ram name=" ParamRefer encePath" select="$P aramSplit/ @path" /> | |||
517 | <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> | 517 | <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> | |||
518 | <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> | 518 | <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> | |||
519 | </x sl:call-te mplate> | 519 | </x sl:call-te mplate> | |||
520 | </ht ml:dl> | 520 | </ht ml:dl> | |||
521 | </xsl :when> | 521 | </xsl :when> | |||
522 | 522 | |||||
523 | <xsl: otherwise> | 523 | <xsl: otherwise> | |||
524 | <!-- Children --> | 524 | <!-- Children --> | |||
525 | <!-- --> | 525 | <!-- --> | |||
526 | <xsl :call-temp late name= "MiniTOCEn tries"> | 526 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
527 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> | 527 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> | |||
528 | <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> | 528 | <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> | |||
529 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | 529 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | |||
530 | </xs l:call-tem plate> | 530 | </xs l:call-tem plate> | |||
531 | </xsl :otherwise > | 531 | </xsl :otherwise > | |||
532 | </xsl: choose> | 532 | </xsl: choose> | |||
533 | </html: div> | 533 | </html: div> | |||
534 | </xsl:if > | 534 | </xsl:if > | |||
535 | </xsl:tem plate> | 535 | </xsl:tem plate> | |||
536 | 536 | |||||
537 | 537 | |||||
538 | <xsl:temp late name= "MiniTOCEn tries"> | 538 | <xsl:temp late name= "MiniTOCEn tries"> | |||
539 | <xsl:par am name="P aramRefere ncePath" / > | 539 | <xsl:par am name="P aramRefere ncePath" / > | |||
540 | <xsl:par am name="P aramParent " /> | 540 | <xsl:par am name="P aramParent " /> | |||
541 | <xsl:par am name="P aramMiniTO CSubLevels " /> | 541 | <xsl:par am name="P aramMiniTO CSubLevels " /> | |||
542 | 542 | |||||
543 | <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry" /> | 543 | <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry" /> | |||
544 | 544 | |||||
545 | <xsl:for -each sele ct="$VarSu bEntries[1 ]"> | 545 | <xsl:for -each sele ct="$VarSu bEntries[1 ]"> | |||
546 | <html:d l> | 546 | <html:d l> | |||
547 | 547 | |||||
548 | <xsl:fo r-each sel ect="$VarS ubEntries" > | 548 | <xsl:fo r-each sel ect="$VarS ubEntries" > | |||
549 | <xsl:v ariable na me="VarEnt ry" select ="." /> | 549 | <xsl:v ariable na me="VarEnt ry" select ="." /> | |||
550 | 550 | |||||
551 | <html: dd> | 551 | <html: dd> | |||
552 | <xsl: choose> | 552 | <xsl: choose> | |||
553 | <xsl :when test ="string-l ength($Var Entry/@pat h) > 0" > | 553 | <xsl :when test ="string-l ength($Var Entry/@pat h) > 0" > | |||
554 | <!- - Get link --> | 554 | <!- - Get link --> | |||
555 | <!- - --> | 555 | <!- - --> | |||
556 | <xs l:variable name="Var RelativeLi nkPath" se lect="wwur i:Unescape (wwuri:Get RelativeTo ($VarEntry /@path, $P aramRefere ncePath))" /> | 556 | <xs l:variable name="Var RelativeLi nkPath" se lect="wwur i:Unescape (wwuri:Get RelativeTo ($VarEntry /@path, $P aramRefere ncePath))" /> | |||
557 | 557 | |||||
558 | <ht ml:a href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> | 558 | <ht ml:a href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> | |||
559 | <x sl:call-te mplate nam e="MiniTOC Paragraph" > | 559 | <x sl:call-te mplate nam e="MiniTOC Paragraph" > | |||
560 | < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> | 560 | < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> | |||
561 | </ xsl:call-t emplate> | 561 | </ xsl:call-t emplate> | |||
562 | </h tml:a> | 562 | </h tml:a> | |||
563 | </xs l:when> | 563 | </xs l:when> | |||
564 | 564 | |||||
565 | <xsl :otherwise > | 565 | <xsl :otherwise > | |||
566 | <xs l:call-tem plate name ="MiniTOCP aragraph"> | 566 | <xs l:call-tem plate name ="MiniTOCP aragraph"> | |||
567 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph" /> | 567 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph" /> | |||
568 | </x sl:call-te mplate> | 568 | </x sl:call-te mplate> | |||
569 | </xs l:otherwis e> | 569 | </xs l:otherwis e> | |||
570 | </xsl :choose> | 570 | </xsl :choose> | |||
571 | </html :dd> | 571 | </html :dd> | |||
572 | 572 | |||||
573 | <!-- R ecurse --> | 573 | <!-- R ecurse --> | |||
574 | <!-- --> | 574 | <!-- --> | |||
575 | <xsl:c hoose> | 575 | <xsl:c hoose> | |||
576 | <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> | 576 | <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> | |||
577 | <xsl :call-temp late name= "MiniTOCEn tries"> | 577 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
578 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | 578 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | |||
579 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | 579 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | |||
580 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | 580 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> | |||
581 | </xs l:call-tem plate> | 581 | </xs l:call-tem plate> | |||
582 | </xsl :when> | 582 | </xsl :when> | |||
583 | 583 | |||||
584 | <xsl: when test= "($ParamMi niTOCSubLe vels - 1) > 0"> | 584 | <xsl: when test= "($ParamMi niTOCSubLe vels - 1) > 0"> | |||
585 | <xsl :call-temp late name= "MiniTOCEn tries"> | 585 | <xsl :call-temp late name= "MiniTOCEn tries"> | |||
586 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | 586 | <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> | |||
587 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | 587 | <xs l:with-par am name="P aramParent " select=" $VarEntry" /> | |||
588 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> | 588 | <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> | |||
589 | </xs l:call-tem plate> | 589 | </xs l:call-tem plate> | |||
590 | </xsl :when> | 590 | </xsl :when> | |||
591 | </xsl: choose> | 591 | </xsl: choose> | |||
592 | </xsl:f or-each> | 592 | </xsl:f or-each> | |||
593 | 593 | |||||
594 | </html: dl> | 594 | </html: dl> | |||
595 | </xsl:fo r-each> | 595 | </xsl:fo r-each> | |||
596 | </xsl:tem plate> | 596 | </xsl:tem plate> | |||
597 | 597 | |||||
598 | 598 | |||||
599 | <xsl:temp late name= "MiniTOCPa ragraph"> | 599 | <xsl:temp late name= "MiniTOCPa ragraph"> | |||
600 | <xsl:par am name="P aramParagr aph" /> | 600 | <xsl:par am name="P aramParagr aph" /> | |||
601 | 601 | |||||
602 | <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> | 602 | <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> | |||
603 | <xsl:va lue-of sel ect="@valu e" /> | 603 | <xsl:va lue-of sel ect="@valu e" /> | |||
604 | </xsl:fo r-each> | 604 | </xsl:fo r-each> | |||
605 | </xsl:tem plate> | 605 | </xsl:tem plate> | |||
606 | 606 | |||||
607 | 607 | |||||
608 | <xsl:temp late name= "Paragraph "> | 608 | <xsl:temp late name= "Paragraph "> | |||
609 | <xsl:par am name="P aramSplits " /> | 609 | <xsl:par am name="P aramSplits " /> | |||
610 | <xsl:par am name="P aramCargo" /> | 610 | <xsl:par am name="P aramCargo" /> | |||
611 | <xsl:par am name="P aramLinks" /> | 611 | <xsl:par am name="P aramLinks" /> | |||
612 | <xsl:par am name="P aramSplit" /> | 612 | <xsl:par am name="P aramSplit" /> | |||
613 | <xsl:par am name="P aramParagr aph" /> | 613 | <xsl:par am name="P aramParagr aph" /> | |||
614 | <xsl:par am name="P aramStyleN ame" /> | 614 | <xsl:par am name="P aramStyleN ame" /> | |||
615 | <xsl:par am name="P aramOverri deRule" /> | 615 | <xsl:par am name="P aramOverri deRule" /> | |||
616 | <xsl:par am name="P aramParagr aphBehavio r" /> | 616 | <xsl:par am name="P aramParagr aphBehavio r" /> | |||
617 | 617 | |||||
618 | <!-- Pre serve empt y? --> | 618 | <!-- Pre serve empt y? --> | |||
619 | <!-- --> | 619 | <!-- --> | |||
620 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | 620 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | |||
621 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | 621 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | |||
622 | 622 | |||||
623 | <!-- Non -empty tex t runs --> | 623 | <!-- Non -empty tex t runs --> | |||
624 | <!-- --> | 624 | <!-- --> | |||
625 | <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]" /> | 625 | <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]" /> | |||
626 | 626 | |||||
627 | <!-- Pro cess this paragraph at all? -- > | 627 | <!-- Pro cess this paragraph at all? -- > | |||
628 | <!-- -- > | 628 | <!-- -- > | |||
629 | <xsl:if test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> | 629 | <xsl:if test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> | |||
630 | <!-- Pa ss-through ? --> | 630 | <!-- Pa ss-through ? --> | |||
631 | <!-- --> | 631 | <!-- --> | |||
632 | <xsl:va riable nam e="VarPass Through"> | 632 | <xsl:va riable nam e="VarPass Through"> | |||
633 | <xsl:c all-templa te name="C onditions- PassThroug h"> | 633 | <xsl:c all-templa te name="C onditions- PassThroug h"> | |||
634 | <xsl: with-param name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> | 634 | <xsl: with-param name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> | |||
635 | </xsl: call-templ ate> | 635 | </xsl: call-templ ate> | |||
636 | </xsl:v ariable> | 636 | </xsl:v ariable> | |||
637 | 637 | |||||
638 | <xsl:ch oose> | 638 | <xsl:ch oose> | |||
639 | <!-- P ass-throug h --> | 639 | <!-- P ass-throug h --> | |||
640 | <!-- --> | 640 | <!-- --> | |||
641 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | 641 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | |||
642 | <xsl: call-templ ate name=" Paragraph- PassThroug h"> | 642 | <xsl: call-templ ate name=" Paragraph- PassThroug h"> | |||
643 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | 643 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | |||
644 | </xsl :call-temp late> | 644 | </xsl :call-temp late> | |||
645 | </xsl: when> | 645 | </xsl: when> | |||
646 | 646 | |||||
647 | <xsl:o therwise> | 647 | <xsl:o therwise> | |||
648 | <xsl: call-templ ate name=" Paragraph- Normal"> | 648 | <xsl: call-templ ate name=" Paragraph- Normal"> | |||
649 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 649 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
650 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 650 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
651 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 651 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
652 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 652 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
653 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | 653 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | |||
654 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > | 654 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > | |||
655 | <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> | 655 | <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> | |||
656 | <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> | 656 | <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> | |||
657 | </xsl :call-temp late> | 657 | </xsl :call-temp late> | |||
658 | </xsl: otherwise> | 658 | </xsl: otherwise> | |||
659 | </xsl:c hoose> | 659 | </xsl:c hoose> | |||
660 | </xsl:if > | 660 | </xsl:if > | |||
661 | </xsl:tem plate> | 661 | </xsl:tem plate> | |||
662 | 662 | |||||
663 | 663 | |||||
664 | <xsl:temp late name= "Paragraph -PassThrou gh"> | 664 | <xsl:temp late name= "Paragraph -PassThrou gh"> | |||
665 | <xsl:par am name="P aramParagr aph" /> | 665 | <xsl:par am name="P aramParagr aph" /> | |||
666 | 666 | |||||
667 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | 667 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | |||
668 | <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> | 668 | <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> | |||
669 | <xsl:v ariable na me="VarTex t" select= "." /> | 669 | <xsl:v ariable na me="VarTex t" select= "." /> | |||
670 | 670 | |||||
671 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | 671 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | |||
672 | </xsl:f or-each> | 672 | </xsl:f or-each> | |||
673 | </wwexsl doc:Text> | 673 | </wwexsl doc:Text> | |||
674 | </xsl:tem plate> | 674 | </xsl:tem plate> | |||
675 | 675 | |||||
676 | 676 | |||||
677 | <xsl:temp late name= "Paragraph -Normal"> | 677 | <xsl:temp late name= "Paragraph -Normal"> | |||
678 | <xsl:par am name="P aramSplits " /> | 678 | <xsl:par am name="P aramSplits " /> | |||
679 | <xsl:par am name="P aramCargo" /> | 679 | <xsl:par am name="P aramCargo" /> | |||
680 | <xsl:par am name="P aramLinks" /> | 680 | <xsl:par am name="P aramLinks" /> | |||
681 | <xsl:par am name="P aramSplit" /> | 681 | <xsl:par am name="P aramSplit" /> | |||
682 | <xsl:par am name="P aramParagr aph" /> | 682 | <xsl:par am name="P aramParagr aph" /> | |||
683 | <xsl:par am name="P aramStyleN ame" /> | 683 | <xsl:par am name="P aramStyleN ame" /> | |||
684 | <xsl:par am name="P aramOverri deRule" /> | 684 | <xsl:par am name="P aramOverri deRule" /> | |||
685 | <xsl:par am name="P aramParagr aphBehavio r" /> | 685 | <xsl:par am name="P aramParagr aphBehavio r" /> | |||
686 | 686 | |||||
687 | <!-- Res olve proje ct propert ies --> | 687 | <!-- Res olve proje ct propert ies --> | |||
688 | <!-- --> | 688 | <!-- --> | |||
689 | <xsl:var iable name ="VarResol vedPropert iesAsXML"> | 689 | <xsl:var iable name ="VarResol vedPropert iesAsXML"> | |||
690 | <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> | 690 | <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> | |||
691 | <xsl:w ith-param name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property" /> | 691 | <xsl:w ith-param name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property" /> | |||
692 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | 692 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | |||
693 | </xsl:c all-templa te> | 693 | </xsl:c all-templa te> | |||
694 | </xsl:va riable> | 694 | </xsl:va riable> | |||
695 | <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> | 695 | <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> | |||
696 | 696 | |||||
697 | <!-- CSS propertie s --> | 697 | <!-- CSS propertie s --> | |||
698 | <!-- --> | 698 | <!-- --> | |||
699 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | 699 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | |||
700 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | 700 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | |||
701 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedPropert ies" /> | 701 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedPropert ies" /> | |||
702 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | 702 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | |||
703 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 703 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
704 | </xsl:c all-templa te> | 704 | </xsl:c all-templa te> | |||
705 | </xsl:va riable> | 705 | </xsl:va riable> | |||
706 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | 706 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | |||
707 | 707 | |||||
708 | <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)" / > | 708 | <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)" / > | |||
709 | 709 | |||||
710 | <!-- Res olve proje ct propert ies --> | 710 | <!-- Res olve proje ct propert ies --> | |||
711 | <!-- --> | 711 | <!-- --> | |||
712 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | 712 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | |||
713 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | 713 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | |||
714 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> | 714 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> | |||
715 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | 715 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | |||
716 | <xsl:w ith-param name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> | 716 | <xsl:w ith-param name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> | |||
717 | <xsl:w ith-param name="Para mStyleType " select=" 'Paragraph '" /> | 717 | <xsl:w ith-param name="Para mStyleType " select=" 'Paragraph '" /> | |||
718 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | 718 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> | |||
719 | </xsl:c all-templa te> | 719 | </xsl:c all-templa te> | |||
720 | </xsl:va riable> | 720 | </xsl:va riable> | |||
721 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | 721 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | |||
722 | 722 | |||||
723 | <!-- CSS propertie s --> | 723 | <!-- CSS propertie s --> | |||
724 | <!-- --> | 724 | <!-- --> | |||
725 | <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> | 725 | <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> | |||
726 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | 726 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | |||
727 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedContext Properties " /> | 727 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedContext Properties " /> | |||
728 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | 728 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | |||
729 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 729 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
730 | </xsl:c all-templa te> | 730 | </xsl:c all-templa te> | |||
731 | </xsl:va riable> | 731 | </xsl:va riable> | |||
732 | <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property" /> | 732 | <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property" /> | |||
733 | 733 | |||||
734 | <!-- Use numbering ? --> | 734 | <!-- Use numbering ? --> | |||
735 | <!-- --> | 735 | <!-- --> | |||
736 | <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name = 'use-num bering']/@ Value" /> | 736 | <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name = 'use-num bering']/@ Value" /> | |||
737 | <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0) or ($VarU seNumberin gOption = 'true')" / > | 737 | <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0) or ($VarU seNumberin gOption = 'true')" / > | |||
738 | 738 | |||||
739 | <!-- Tex t Indent - -> | 739 | <!-- Tex t Indent - -> | |||
740 | <!-- - -> | 740 | <!-- - -> | |||
741 | <xsl:var iable name ="VarTextI ndent"> | 741 | <xsl:var iable name ="VarTextI ndent"> | |||
742 | <xsl:if test="$Va rUseNumber ing"> | 742 | <xsl:if test="$Va rUseNumber ing"> | |||
743 | <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name = 'text-ind ent']/@Val ue" /> | 743 | <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name = 'text-ind ent']/@Val ue" /> | |||
744 | <xsl:c hoose> | 744 | <xsl:c hoose> | |||
745 | <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> | 745 | <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> | |||
746 | <xsl :value-of select="$V arOverride TextIndent " /> | 746 | <xsl :value-of select="$V arOverride TextIndent " /> | |||
747 | </xsl :when> | 747 | </xsl :when> | |||
748 | 748 | |||||
749 | <xsl: otherwise> | 749 | <xsl: otherwise> | |||
750 | <!-- Text inde nt defined ? --> | 750 | <!-- Text inde nt defined ? --> | |||
751 | <!-- --> | 751 | <!-- --> | |||
752 | <xsl :variable name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> | 752 | <xsl :variable name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> | |||
753 | <xsl :if test=" string-len gth($VarCo ntextTextI ndent) > ; 0"> | 753 | <xsl :if test=" string-len gth($VarCo ntextTextI ndent) > ; 0"> | |||
754 | <xs l:value-of select="$ VarContext TextIndent " /> | 754 | <xs l:value-of select="$ VarContext TextIndent " /> | |||
755 | </xs l:if> | 755 | </xs l:if> | |||
756 | </xsl :otherwise > | 756 | </xsl :otherwise > | |||
757 | </xsl: choose> | 757 | </xsl: choose> | |||
758 | </xsl:i f> | 758 | </xsl:i f> | |||
759 | </xsl:va riable> | 759 | </xsl:va riable> | |||
760 | 760 | |||||
761 | <xsl:var iable name ="VarTextI ndentNumer icPrefix" select="ww units:Nume ricPrefix( $VarTextIn dent)" /> | 761 | <xsl:var iable name ="VarTextI ndentNumer icPrefix" select="ww units:Nume ricPrefix( $VarTextIn dent)" /> | |||
762 | <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix) > 0) a nd (number ($VarTextI ndentNumer icPrefix) < 0)" / > | 762 | <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix) > 0) a nd (number ($VarTextI ndentNumer icPrefix) < 0)" / > | |||
763 | 763 | |||||
764 | <!-- Use bullet fr om UI? --> | 764 | <!-- Use bullet fr om UI? --> | |||
765 | <!-- --> | 765 | <!-- --> | |||
766 | <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " /> | 766 | <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " /> | |||
767 | <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" /> | 767 | <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" /> | |||
768 | <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " /> | 768 | <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " /> | |||
769 | <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" /> | 769 | <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" /> | |||
770 | <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)" /> | 770 | <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)" /> | |||
771 | 771 | |||||
772 | <!-- Is numbered p aragraph - -> | 772 | <!-- Is numbered p aragraph - -> | |||
773 | <!-- - -> | 773 | <!-- - -> | |||
774 | <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 ))" /> | 774 | <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 ))" /> | |||
775 | 775 | |||||
776 | <!-- Tag --> | 776 | <!-- Tag --> | |||
777 | <!-- --> | 777 | <!-- --> | |||
778 | <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'tag']/@Va lue" /> | 778 | <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name = 'tag']/@Va lue" /> | |||
779 | <xsl:var iable name ="VarTag"> | 779 | <xsl:var iable name ="VarTag"> | |||
780 | <xsl:ch oose> | 780 | <xsl:ch oose> | |||
781 | <xsl:w hen test=" string-len gth($VarTa gProperty) > 0"> | 781 | <xsl:w hen test=" string-len gth($VarTa gProperty) > 0"> | |||
782 | <xsl: value-of s elect="$Va rTagProper ty" /> | 782 | <xsl: value-of s elect="$Va rTagProper ty" /> | |||
783 | </xsl: when> | 783 | </xsl: when> | |||
784 | 784 | |||||
785 | <xsl:o therwise> | 785 | <xsl:o therwise> | |||
786 | <xsl: value-of s elect="'di v'" /> | 786 | <xsl: value-of s elect="'di v'" /> | |||
787 | </xsl: otherwise> | 787 | </xsl: otherwise> | |||
788 | </xsl:c hoose> | 788 | </xsl:c hoose> | |||
789 | </xsl:va riable> | 789 | </xsl:va riable> | |||
790 | 790 | |||||
791 | <!-- Tag to use fo r outer wr apper --> | |||||
792 | <!-- --> | |||||
793 | <xsl:var iable name ="VarOuter Tag"> | |||||
794 | <xsl:ch oose> | |||||
795 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | |||||
796 | <xsl: value-of s elect="'di v'" /> | |||||
797 | </xsl: when> | |||||
798 | ||||||
799 | <xsl:o therwise> | |||||
800 | <xsl: value-of s elect="$Va rTag" /> | |||||
801 | </xsl: otherwise> | |||||
802 | </xsl:c hoose> | |||||
803 | </xsl:va riable> | |||||
804 | ||||||
791 | <!-- Use character styles? - -> | 805 | <!-- Use character styles? - -> | |||
792 | <!-- - -> | 806 | <!-- - -> | |||
793 | <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" /> | 807 | <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" /> | |||
794 | <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) = 0) or ($Va rUseCharac terStylesO ption = 't rue')" /> | 808 | <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) = 0) or ($Va rUseCharac terStylesO ption = 't rue')" /> | |||
795 | 809 | |||||
796 | <!-- Pre serve empt y? --> | 810 | <!-- Pre serve empt y? --> | |||
797 | <!-- --> | 811 | <!-- --> | |||
798 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | 812 | <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> | |||
799 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | 813 | <xsl:var iable name ="VarPrese rveEmpty" select="(s tring-leng th($VarPre serveEmpty Option) = 0) or ($Va rPreserveE mptyOption = 'true') " /> | |||
800 | 814 | |||||
801 | <!-- Beg in paragra ph emit -- > | 815 | <!-- Beg in paragra ph emit -- > | |||
802 | <!-- -- > | 816 | <!-- -- > | |||
803 |
<xsl:eleme
nt
name="{$Va
r
|
817 | <xsl:eleme nt name="{$Va r Outer Tag}" namespace= "{$GlobalD efaultName space}"> | |||
804 | <!-- St yle attrib ute --> | 818 | <!-- St yle attrib ute --> | |||
805 | <!-- --> | 819 | <!-- --> | |||
806 | <xsl:ch oose> | 820 | <xsl:ch oose> | |||
807 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | 821 | <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> | |||
808 | <xsl: variable n ame="VarSt yleAttribu teOuter"> | 822 | <xsl: variable n ame="VarSt yleAttribu teOuter"> | |||
809 | <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> | 823 | <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> | |||
810 | <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> | 824 | <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> | |||
811 | </xs l:call-tem plate> | 825 | </xs l:call-tem plate> | |||
812 | </xsl :variable> | 826 | </xsl :variable> | |||
813 | 827 | |||||
814 | <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> | 828 | <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> | |||
815 | <xsl :attribute name="sty le"> | 829 | <xsl :attribute name="sty le"> | |||
816 | <xs l:value-of select="$ VarStyleAt tributeOut er" /> | 830 | <xs l:value-of select="$ VarStyleAt tributeOut er" /> | |||
817 | </xs l:attribut e> | 831 | </xs l:attribut e> | |||
818 | </xsl :if> | 832 | </xsl :if> | |||
819 | </xsl: when> | 833 | </xsl: when> | |||
820 | 834 | |||||
821 | <xsl:o therwise> | 835 | <xsl:o therwise> | |||
822 | <xsl: variable n ame="VarSt yleAttribu te"> | 836 | <xsl: variable n ame="VarSt yleAttribu te"> | |||
823 | <xsl :call-temp late name= "CSS-Inlin ePropertie s"> | 837 | <xsl :call-temp late name= "CSS-Inlin ePropertie s"> | |||
824 | <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SContextPr operties" /> | 838 | <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SContextPr operties" /> | |||
825 | </xs l:call-tem plate> | 839 | </xs l:call-tem plate> | |||
826 | </xsl :variable> | 840 | </xsl :variable> | |||
827 | 841 | |||||
828 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | 842 | <xsl: if test="s tring-leng th($VarSty leAttribut e) > 0" > | |||
829 | <xsl :attribute name="sty le"> | 843 | <xsl :attribute name="sty le"> | |||
830 | <xs l:value-of select="$ VarStyleAt tribute" / > | 844 | <xs l:value-of select="$ VarStyleAt tribute" / > | |||
831 | </xs l:attribut e> | 845 | </xs l:attribut e> | |||
832 | </xsl :if> | 846 | </xsl :if> | |||
833 | </xsl: otherwise> | 847 | </xsl: otherwise> | |||
834 | </xsl:c hoose> | 848 | </xsl:c hoose> | |||
835 | 849 | |||||
836 | <!-- Us e numberin g? --> | 850 | <!-- Us e numberin g? --> | |||
837 | <!-- --> | 851 | <!-- --> | |||
838 | <xsl:ch oose> | 852 | <xsl:ch oose> | |||
839 | <!-- U se Number --> | 853 | <!-- U se Number --> | |||
840 | <!-- --> | 854 | <!-- --> | |||
841 | <xsl:w hen test=" $VarUseNum bering"> | 855 | <xsl:w hen test=" $VarUseNum bering"> | |||
842 | <xsl: choose> | 856 | <xsl: choose> | |||
843 | <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)"> | 857 | <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)"> | |||
844 | <xs l:choose> | 858 | <xs l:choose> | |||
845 | <x sl:when te st="$VarTe xtIndentLe ssThanZero "> | 859 | <x sl:when te st="$VarTe xtIndentLe ssThanZero "> | |||
846 | 860 | |||||
847 | < html:table border="0 " cellspac ing="0" ce llpadding= "0" width= "99%" summ ary=""> | 861 | < html:table border="0 " cellspac ing="0" ce llpadding= "0" width= "99%" summ ary=""> | |||
848 | <html:tr v align="bas eline"> | 862 | <html:tr v align="bas eline"> | |||
849 | <xsl:vari able name= "VarTextIn dentNumber AsUnits" s elect="wwu nits:Numer icPrefix($ VarTextInd ent)" /> | 863 | <xsl:vari able name= "VarTextIn dentNumber AsUnits" s elect="wwu nits:Numer icPrefix($ VarTextInd ent)" /> | |||
850 | <xsl:vari able name= "VarTextIn dentUnits" select="w wunits:Uni tsSuffix($ VarTextInd ent)" /> | 864 | <xsl:vari able name= "VarTextIn dentUnits" select="w wunits:Uni tsSuffix($ VarTextInd ent)" /> | |||
851 | 865 | |||||
852 | <html:td style="{co ncat('widt h: ', 0 - $VarTextIn dentNumber AsUnits, $ VarTextInd entUnits)} "> | 866 | <html:td style="{co ncat('widt h: ', 0 - $VarTextIn dentNumber AsUnits, $ VarTextInd entUnits)} "> | |||
853 | <!-- For ce single line --> | 867 | <!-- For ce single line --> | |||
854 | <!-- --> | 868 | <!-- --> | |||
855 | <wwexsld oc:NoBreak /> | 869 | <wwexsld oc:NoBreak /> | |||
856 | 870 | |||||
857 | <html:no br> | 871 | <html:no br> | |||
858 | <!-- Fo rce single line --> | 872 | <!-- Fo rce single line --> | |||
859 | <!-- --> | 873 | <!-- --> | |||
860 | <wwexsl doc:NoBrea k /> | 874 | <wwexsl doc:NoBrea k /> | |||
861 | 875 | |||||
862 | <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > | 876 | <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > | |||
863 | <xsl:v ariable na me="VarSty leAttribut eInnerNumb er"> | 877 | <xsl:v ariable na me="VarSty leAttribut eInnerNumb er"> | |||
864 | <xsl: call-templ ate name=" CSS-Inline Properties InnerNumbe r"> | 878 | <xsl: call-templ ate name=" CSS-Inline Properties InnerNumbe r"> | |||
865 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > | 879 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > | |||
866 | </xsl :call-temp late> | 880 | </xsl :call-temp late> | |||
867 | </xsl: variable> | 881 | </xsl: variable> | |||
868 | <xsl:i f test="st ring-lengt h($VarStyl eAttribute InnerNumbe r) > 0" > | 882 | <xsl:i f test="st ring-lengt h($VarStyl eAttribute InnerNumbe r) > 0" > | |||
869 | <xsl: attribute name="styl e"> | 883 | <xsl: attribute name="styl e"> | |||
870 | <xsl :value-of select="$V arStyleAtt ributeInne rNumber" / > | 884 | <xsl :value-of select="$V arStyleAtt ributeInne rNumber" / > | |||
871 | </xsl :attribute > | 885 | </xsl :attribute > | |||
872 | </xsl: if> | 886 | </xsl: if> | |||
873 | 887 | |||||
874 | <xsl:c all-templa te name="N umber"> | 888 | <xsl:c all-templa te name="N umber"> | |||
875 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 889 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
876 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 890 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
877 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 891 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
878 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 892 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
879 | <xsl: with-param name="Par amParagrap h" select= "$ParamPar agraph" /> | 893 | <xsl: with-param name="Par amParagrap h" select= "$ParamPar agraph" /> | |||
880 | <xsl: with-param name="Par amUseChara cterStyles " select=" $VarUseCha racterStyl es" /> | 894 | <xsl: with-param name="Par amUseChara cterStyles " select=" $VarUseCha racterStyl es" /> | |||
881 | <xsl: with-param name="Par amIgnoreDo cumentNumb er" select ="$VarIgno reDocument Number" /> | 895 | <xsl: with-param name="Par amIgnoreDo cumentNumb er" select ="$VarIgno reDocument Number" /> | |||
882 | <xsl: with-param name="Par amCharacte r" select= "$VarBulle tCharacter " /> | 896 | <xsl: with-param name="Par amCharacte r" select= "$VarBulle tCharacter " /> | |||
883 | <xsl: with-param name="Par amImage" s elect="$Va rBulletIma ge" /> | 897 | <xsl: with-param name="Par amImage" s elect="$Va rBulletIma ge" /> | |||
884 | <xsl: with-param name="Par amSeparato r" select= "$VarBulle tSeparator " /> | 898 | <xsl: with-param name="Par amSeparato r" select= "$VarBulle tSeparator " /> | |||
885 | <xsl: with-param name="Par amStyle" s elect="$Va rBulletSty le" /> | 899 | <xsl: with-param name="Par amStyle" s elect="$Va rBulletSty le" /> | |||
886 | </xsl: call-templ ate> | 900 | </xsl: call-templ ate> | |||
887 | </xsl:e lement> | 901 | </xsl:e lement> | |||
888 | 902 | |||||
889 | <!-- Fo rce single line --> | 903 | <!-- Fo rce single line --> | |||
890 | <!-- --> | 904 | <!-- --> | |||
891 | <wwexsl doc:NoBrea k /> | 905 | <wwexsl doc:NoBrea k /> | |||
892 | </html:n obr> | 906 | </html:n obr> | |||
893 | 907 | |||||
894 | <!-- For ce single line --> | 908 | <!-- For ce single line --> | |||
895 | <!-- --> | 909 | <!-- --> | |||
896 | <wwexsld oc:NoBreak /> | 910 | <wwexsld oc:NoBreak /> | |||
897 | </html:td > | 911 | </html:td > | |||
898 | 912 | |||||
899 | <html:td> | 913 | <html:td> | |||
900 | <!-- For ce single line --> | 914 | <!-- For ce single line --> | |||
901 | <!-- --> | 915 | <!-- --> | |||
902 | <wwexsld oc:NoBreak /> | 916 | <wwexsld oc:NoBreak /> | |||
903 | 917 | |||||
904 | <!-- Emi t content --> | 918 | <!-- Emi t content --> | |||
905 | <!-- --> | 919 | <!-- --> | |||
906 | <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> | 920 | <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> | |||
907 | <xsl:va riable nam e="VarStyl eAttribute InnerConte nt"> | 921 | <xsl:va riable nam e="VarStyl eAttribute InnerConte nt"> | |||
908 | <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerConten t"> | 922 | <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerConten t"> | |||
909 | <xsl: with-param name="Par amProperti es" select ="$VarCSSC ontextProp erties" /> | 923 | <xsl: with-param name="Par amProperti es" select ="$VarCSSC ontextProp erties" /> | |||
910 | </xsl: call-templ ate> | 924 | </xsl: call-templ ate> | |||
911 | </xsl:v ariable> | 925 | </xsl:v ariable> | |||
912 | <xsl:if test="str ing-length ($VarStyle AttributeI nnerConten t) > 0" > | 926 | <xsl:if test="str ing-length ($VarStyle AttributeI nnerConten t) > 0" > | |||
913 | <xsl:a ttribute n ame="style "> | 927 | <xsl:a ttribute n ame="style "> | |||
914 | <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > | 928 | <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > | |||
915 | </xsl: attribute> | 929 | </xsl: attribute> | |||
916 | </xsl:i f> | 930 | </xsl:i f> | |||
917 | 931 | |||||
918 | <!-- Te xt Runs -- > | 932 | <!-- Te xt Runs -- > | |||
919 | <!-- -- > | 933 | <!-- -- > | |||
920 | <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> | 934 | <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> | |||
921 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 935 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
922 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 936 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
923 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 937 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
924 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 938 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
925 | <xsl:w ith-param name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> | 939 | <xsl:w ith-param name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> | |||
926 | <xsl:w ith-param name="Para mUseCharac terStyles" select="$ VarUseChar acterStyle s" /> | 940 | <xsl:w ith-param name="Para mUseCharac terStyles" select="$ VarUseChar acterStyle s" /> | |||
927 | <xsl:w ith-param name="Para mParagraph " select=" $ParamPara graph" /> | 941 | <xsl:w ith-param name="Para mParagraph " select=" $ParamPara graph" /> | |||
928 | </xsl:c all-templa te> | 942 | </xsl:c all-templa te> | |||
929 | </xsl:el ement> | 943 | </xsl:el ement> | |||
930 | 944 | |||||
931 | <!-- For ce single line --> | 945 | <!-- For ce single line --> | |||
932 | <!-- --> | 946 | <!-- --> | |||
933 | <wwexsld oc:NoBreak /> | 947 | <wwexsld oc:NoBreak /> | |||
934 | </html:td > | 948 | </html:td > | |||
935 | </html:tr> | 949 | </html:tr> | |||
936 | < /html:tabl e> | 950 | < /html:tabl e> | |||
937 | </ xsl:when> | 951 | </ xsl:when> | |||
938 | 952 | |||||
939 | <x sl:otherwi se> | 953 | <x sl:otherwi se> | |||
940 | < xsl:call-t emplate na me="Number "> | 954 | < xsl:call-t emplate na me="Number "> | |||
941 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | 955 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | |||
942 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | 956 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | |||
943 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | 957 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | |||
944 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | 958 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | |||
945 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | 959 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | |||
946 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | 960 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | |||
947 | <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> | 961 | <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> | |||
948 | <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> | 962 | <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> | |||
949 | <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > | 963 | <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > | |||
950 | <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> | 964 | <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> | |||
951 | <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > | 965 | <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > | |||
952 | < /xsl:call- template> | 966 | < /xsl:call- template> | |||
953 | 967 | |||||
954 | < !-- Text R uns --> | 968 | < !-- Text R uns --> | |||
955 | < !-- --> | 969 | < !-- --> | |||
956 | < xsl:call-t emplate na me="Paragr aphTextRun s"> | 970 | < xsl:call-t emplate na me="Paragr aphTextRun s"> | |||
957 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | 971 | <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> | |||
958 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | 972 | <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> | |||
959 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | 973 | <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> | |||
960 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | 974 | <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> | |||
961 | <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > | 975 | <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > | |||
962 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | 976 | <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > | |||
963 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | 977 | <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> | |||
964 | < /xsl:call- template> | 978 | < /xsl:call- template> | |||
965 | </ xsl:otherw ise> | 979 | </ xsl:otherw ise> | |||
966 | </x sl:choose> | 980 | </x sl:choose> | |||
967 | </xs l:when> | 981 | </xs l:when> | |||
968 | 982 | |||||
969 | <xsl :otherwise > | 983 | <xsl :otherwise > | |||
970 | <!- - Text Run s --> | 984 | <!- - Text Run s --> | |||
971 | <!- - --> | 985 | <!- - --> | |||
972 | <xs l:call-tem plate name ="Paragrap hTextRuns" > | 986 | <xs l:call-tem plate name ="Paragrap hTextRuns" > | |||
973 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 987 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
974 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 988 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
975 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 989 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
976 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 990 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
977 | <x sl:with-pa ram name=" ParamPrese rveEmpty" select="$V arPreserve Empty" /> | 991 | <x sl:with-pa ram name=" ParamPrese rveEmpty" select="$V arPreserve Empty" /> | |||
978 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> | 992 | <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> | |||
979 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph" /> | 993 | <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph" /> | |||
980 | </x sl:call-te mplate> | 994 | </x sl:call-te mplate> | |||
981 | </xs l:otherwis e> | 995 | </xs l:otherwis e> | |||
982 | </xsl :choose> | 996 | </xsl :choose> | |||
983 | </xsl: when> | 997 | </xsl: when> | |||
984 | 998 | |||||
985 | <!-- S kip Number --> | 999 | <!-- S kip Number --> | |||
986 | <!-- --> | 1000 | <!-- --> | |||
987 | <xsl:o therwise> | 1001 | <xsl:o therwise> | |||
988 | <!-- Text Runs --> | 1002 | <!-- Text Runs --> | |||
989 | <!-- --> | 1003 | <!-- --> | |||
990 | <xsl: call-templ ate name=" ParagraphT extRuns"> | 1004 | <xsl: call-templ ate name=" ParagraphT extRuns"> | |||
991 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1005 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
992 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1006 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
993 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1007 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
994 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1008 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
995 | <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> | 1009 | <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> | |||
996 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> | 1010 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> | |||
997 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | 1011 | <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > | |||
998 | </xsl :call-temp late> | 1012 | </xsl :call-temp late> | |||
999 | </xsl: otherwise> | 1013 | </xsl: otherwise> | |||
1000 | </xsl:c hoose> | 1014 | </xsl:c hoose> | |||
1001 | 1015 | |||||
1002 | <!-- End paragraph emit --> | 1016 | <!-- End paragraph emit --> | |||
1003 | <!-- --> | 1017 | <!-- --> | |||
1004 | </xsl:el ement> | 1018 | </xsl:el ement> | |||
1005 | </xsl:tem plate> | 1019 | </xsl:tem plate> | |||
1006 | 1020 | |||||
1007 | 1021 | |||||
1008 | <xsl:temp late name= "Number"> | 1022 | <xsl:temp late name= "Number"> | |||
1009 | <xsl:par am name="P aramSplits " /> | 1023 | <xsl:par am name="P aramSplits " /> | |||
1010 | <xsl:par am name="P aramCargo" /> | 1024 | <xsl:par am name="P aramCargo" /> | |||
1011 | <xsl:par am name="P aramLinks" /> | 1025 | <xsl:par am name="P aramLinks" /> | |||
1012 | <xsl:par am name="P aramSplit" /> | 1026 | <xsl:par am name="P aramSplit" /> | |||
1013 | <xsl:par am name="P aramParagr aph" /> | 1027 | <xsl:par am name="P aramParagr aph" /> | |||
1014 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1028 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1015 | <xsl:par am name="P aramIgnore DocumentNu mber" /> | 1029 | <xsl:par am name="P aramIgnore DocumentNu mber" /> | |||
1016 | <xsl:par am name="P aramCharac ter" /> | 1030 | <xsl:par am name="P aramCharac ter" /> | |||
1017 | <xsl:par am name="P aramImage" /> | 1031 | <xsl:par am name="P aramImage" /> | |||
1018 | <xsl:par am name="P aramSepara tor" /> | 1032 | <xsl:par am name="P aramSepara tor" /> | |||
1019 | <xsl:par am name="P aramStyle" /> | 1033 | <xsl:par am name="P aramStyle" /> | |||
1020 | 1034 | |||||
1021 | <xsl:cho ose> | 1035 | <xsl:cho ose> | |||
1022 | <xsl:wh en test="$ ParamIgnor eDocumentN umber"> | 1036 | <xsl:wh en test="$ ParamIgnor eDocumentN umber"> | |||
1023 | <xsl:c all-templa te name="C ontent-Bul let"> | 1037 | <xsl:c all-templa te name="C ontent-Bul let"> | |||
1024 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1038 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1025 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1039 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1026 | <xsl: with-param name="Par amParagrap h" select= "$ParamPar agraph" /> | 1040 | <xsl: with-param name="Par amParagrap h" select= "$ParamPar agraph" /> | |||
1027 | <xsl: with-param name="Par amCharacte r" select= "$ParamCha racter" /> | 1041 | <xsl: with-param name="Par amCharacte r" select= "$ParamCha racter" /> | |||
1028 | <xsl: with-param name="Par amImage" s elect="$Pa ramImage" /> | 1042 | <xsl: with-param name="Par amImage" s elect="$Pa ramImage" /> | |||
1029 | <xsl: with-param name="Par amSeparato r" select= "$ParamSep arator" /> | 1043 | <xsl: with-param name="Par amSeparato r" select= "$ParamSep arator" /> | |||
1030 | <xsl: with-param name="Par amStyle" s elect="$Pa ramStyle" /> | 1044 | <xsl: with-param name="Par amStyle" s elect="$Pa ramStyle" /> | |||
1031 | </xsl: call-templ ate> | 1045 | </xsl: call-templ ate> | |||
1032 | </xsl:w hen> | 1046 | </xsl:w hen> | |||
1033 | 1047 | |||||
1034 | <xsl:ot herwise> | 1048 | <xsl:ot herwise> | |||
1035 | <xsl:v ariable na me="VarBul letPropert iesAsXML"> | 1049 | <xsl:v ariable na me="VarBul letPropert iesAsXML"> | |||
1036 | <wwpr oject:Bull etProperti es> | 1050 | <wwpr oject:Bull etProperti es> | |||
1037 | <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> | 1051 | <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> | |||
1038 | </wwp roject:Bul letPropert ies> | 1052 | </wwp roject:Bul letPropert ies> | |||
1039 | </xsl: variable> | 1053 | </xsl: variable> | |||
1040 | <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> | 1054 | <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> | |||
1041 | 1055 | |||||
1042 | <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > | 1056 | <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > | |||
1043 | 1057 | |||||
1044 | <xsl:c all-templa te name="T extRun"> | 1058 | <xsl:c all-templa te name="T extRun"> | |||
1045 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1059 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1046 | <xsl: with-param name="Par amCargo" s elect="$Va rCargo" /> | 1060 | <xsl: with-param name="Par amCargo" s elect="$Va rCargo" /> | |||
1047 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1061 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1048 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1062 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1049 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> | 1063 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> | |||
1050 | <xsl: with-param name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> | 1064 | <xsl: with-param name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> | |||
1051 | <xsl: with-param name="Par amTextRun" select="$ ParamParag raph/wwdoc :Number[1] " /> | 1065 | <xsl: with-param name="Par amTextRun" select="$ ParamParag raph/wwdoc :Number[1] " /> | |||
1052 | <xsl: with-param name="Par amPosition " select=" 0" /> | 1066 | <xsl: with-param name="Par amPosition " select=" 0" /> | |||
1053 | </xsl: call-templ ate> | 1067 | </xsl: call-templ ate> | |||
1054 | </xsl:o therwise> | 1068 | </xsl:o therwise> | |||
1055 | </xsl:ch oose> | 1069 | </xsl:ch oose> | |||
1056 | </xsl:tem plate> | 1070 | </xsl:tem plate> | |||
1057 | 1071 | |||||
1058 | 1072 | |||||
1059 | <xsl:temp late name= "Paragraph TextRuns"> | 1073 | <xsl:temp late name= "Paragraph TextRuns"> | |||
1060 | <xsl:par am name="P aramSplits " /> | 1074 | <xsl:par am name="P aramSplits " /> | |||
1061 | <xsl:par am name="P aramCargo" /> | 1075 | <xsl:par am name="P aramCargo" /> | |||
1062 | <xsl:par am name="P aramLinks" /> | 1076 | <xsl:par am name="P aramLinks" /> | |||
1063 | <xsl:par am name="P aramSplit" /> | 1077 | <xsl:par am name="P aramSplit" /> | |||
1064 | <xsl:par am name="P aramPreser veEmpty" / > | 1078 | <xsl:par am name="P aramPreser veEmpty" / > | |||
1065 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1079 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1066 | <xsl:par am name="P aramParagr aph" /> | 1080 | <xsl:par am name="P aramParagr aph" /> | |||
1067 | 1081 | |||||
1068 | <!-- Pre vent white space issu es with pr eformatted text bloc ks --> | 1082 | <!-- Pre vent white space issu es with pr eformatted text bloc ks --> | |||
1069 | <!-- --> | 1083 | <!-- --> | |||
1070 | <wwexsld oc:NoBreak /> | 1084 | <wwexsld oc:NoBreak /> | |||
1071 | 1085 | |||||
1072 | <!-- Non -empty tex t runs --> | 1086 | <!-- Non -empty tex t runs --> | |||
1073 | <!-- --> | 1087 | <!-- --> | |||
1074 | <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]" /> | 1088 | <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]" /> | |||
1075 | 1089 | |||||
1076 | <!-- Che ck for emp ty paragra phs --> | 1090 | <!-- Che ck for emp ty paragra phs --> | |||
1077 | <!-- --> | 1091 | <!-- --> | |||
1078 | <xsl:cho ose> | 1092 | <xsl:cho ose> | |||
1079 | <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> | 1093 | <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> | |||
1080 | <!-- P aragraph h as content --> | 1094 | <!-- P aragraph h as content --> | |||
1081 | <!-- --> | 1095 | <!-- --> | |||
1082 | <xsl:f or-each se lect="$Var TextRuns"> | 1096 | <xsl:f or-each se lect="$Var TextRuns"> | |||
1083 | <xsl: variable n ame="VarTe xtRun" sel ect="." /> | 1097 | <xsl: variable n ame="VarTe xtRun" sel ect="." /> | |||
1084 | 1098 | |||||
1085 | <xsl: call-templ ate name=" TextRun"> | 1099 | <xsl: call-templ ate name=" TextRun"> | |||
1086 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1100 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1087 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1101 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1088 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1102 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1089 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1103 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1090 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> | 1104 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> | |||
1091 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> | 1105 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> | |||
1092 | <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> | 1106 | <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> | |||
1093 | <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> | 1107 | <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> | |||
1094 | </xsl :call-temp late> | 1108 | </xsl :call-temp late> | |||
1095 | </xsl: for-each> | 1109 | </xsl: for-each> | |||
1096 | </xsl:w hen> | 1110 | </xsl:w hen> | |||
1097 | 1111 | |||||
1098 | <xsl:ot herwise> | 1112 | <xsl:ot herwise> | |||
1099 | <!-- E mpty parag raph! --> | 1113 | <!-- E mpty parag raph! --> | |||
1100 | <!-- --> | 1114 | <!-- --> | |||
1101 | <xsl:i f test="$P aramPreser veEmpty"> | 1115 | <xsl:i f test="$P aramPreser veEmpty"> | |||
1102 | <html :a name="{ $ParamPara graph/@id} "> </ html:a> | 1116 | <html :a name="{ $ParamPara graph/@id} "> </ html:a> | |||
1103 | </xsl: if> | 1117 | </xsl: if> | |||
1104 | </xsl:o therwise> | 1118 | </xsl:o therwise> | |||
1105 | </xsl:ch oose> | 1119 | </xsl:ch oose> | |||
1106 | </xsl:tem plate> | 1120 | </xsl:tem plate> | |||
1107 | 1121 | |||||
1108 | 1122 | |||||
1109 | <xsl:temp late name= "LinkInfo" > | 1123 | <xsl:temp late name= "LinkInfo" > | |||
1110 | <xsl:par am name="P aramSplits " /> | 1124 | <xsl:par am name="P aramSplits " /> | |||
1111 | <xsl:par am name="P aramLinks" /> | 1125 | <xsl:par am name="P aramLinks" /> | |||
1112 | <xsl:par am name="P aramSplit" /> | 1126 | <xsl:par am name="P aramSplit" /> | |||
1113 | <xsl:par am name="P aramDocume ntLink" /> | 1127 | <xsl:par am name="P aramDocume ntLink" /> | |||
1114 | 1128 | |||||
1115 | <xsl:ele ment name= "LinkInfo" namespace ="urn:WebW orks-Engin e-Links-Sc hema"> | 1129 | <xsl:ele ment name= "LinkInfo" namespace ="urn:WebW orks-Engin e-Links-Sc hema"> | |||
1116 | <xsl:if test="cou nt($ParamD ocumentLin k) > 0" > | 1130 | <xsl:if test="cou nt($ParamD ocumentLin k) > 0" > | |||
1117 | <!-- R esolve lin k --> | 1131 | <!-- R esolve lin k --> | |||
1118 | <!-- --> | 1132 | <!-- --> | |||
1119 | <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> | 1133 | <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> | |||
1120 | <xsl: call-templ ate name=" Links-Reso lve"> | 1134 | <xsl: call-templ ate name=" Links-Reso lve"> | |||
1121 | <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > | 1135 | <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > | |||
1122 | <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > | 1136 | <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > | |||
1123 | <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL" /> | 1137 | <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL" /> | |||
1124 | <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> | 1138 | <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> | |||
1125 | <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> | 1139 | <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> | |||
1126 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1140 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1127 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1141 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1128 | <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> | 1142 | <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> | |||
1129 | <xsl :with-para m name="Pa ramSplitDo cumentID" select="$P aramSplit/ @documentI D" /> | 1143 | <xsl :with-para m name="Pa ramSplitDo cumentID" select="$P aramSplit/ @documentI D" /> | |||
1130 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> | 1144 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> | |||
1131 | </xsl :call-temp late> | 1145 | </xsl :call-temp late> | |||
1132 | </xsl: variable> | 1146 | </xsl: variable> | |||
1133 | <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> | 1147 | <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> | |||
1134 | 1148 | |||||
1135 | <xsl:c hoose> | 1149 | <xsl:c hoose> | |||
1136 | <!-- Baggage -- > | 1150 | <!-- Baggage -- > | |||
1137 | <!-- -- > | 1151 | <!-- -- > | |||
1138 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'baggage'" > | 1152 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'baggage'" > | |||
1139 | <xsl :variable name="VarR elativePat h" select= "wwuri:Une scape(wwur i:GetRelat iveTo($Var ResolvedLi nkInfo/@pa th, $Param Split/@pat h))" /> | 1153 | <xsl :variable name="VarR elativePat h" select= "wwuri:Une scape(wwur i:GetRelat iveTo($Var ResolvedLi nkInfo/@pa th, $Param Split/@pat h))" /> | |||
1140 | 1154 | |||||
1141 | <xsl :attribute name="hre f"> | 1155 | <xsl :attribute name="hre f"> | |||
1142 | <xs l:value-of select="$ VarRelativ ePath" /> | 1156 | <xs l:value-of select="$ VarRelativ ePath" /> | |||
1143 | </xs l:attribut e> | 1157 | </xs l:attribut e> | |||
1144 | </xsl :when> | 1158 | </xsl :when> | |||
1145 | 1159 | |||||
1146 | <!-- Document - -> | 1160 | <!-- Document - -> | |||
1147 | <!-- - -> | 1161 | <!-- - -> | |||
1148 | <xsl: when test= "($VarReso lvedLinkIn fo/@type = 'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> | 1162 | <xsl: when test= "($VarReso lvedLinkIn fo/@type = 'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> | |||
1149 | <xsl :choose> | 1163 | <xsl :choose> | |||
1150 | <!- - Popup -- > | 1164 | <!- - Popup -- > | |||
1151 | <!- - -- > | 1165 | <!- - -- > | |||
1152 | <xs l:when tes t="$VarRes olvedLinkI nfo/@popup = 'true'" > | 1166 | <xs l:when tes t="$VarRes olvedLinkI nfo/@popup = 'true'" > | |||
1153 | <x sl:variabl e name="Va rPopupPath "> | 1167 | <x sl:variabl e name="Va rPopupPath "> | |||
1154 | < xsl:for-ea ch select= "$GlobalPr ojectSplit s[1]"> | 1168 | < xsl:for-ea ch select= "$GlobalPr ojectSplit s[1]"> | |||
1155 | <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 ]" /> | 1169 | <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 ]" /> | |||
1156 | <xsl:for-e ach select ="$VarSpli tsPopups[1 ]"> | 1170 | <xsl:for-e ach select ="$VarSpli tsPopups[1 ]"> | |||
1157 | <xsl:vari able name= "VarSplits Popup" sel ect="." /> | 1171 | <xsl:vari able name= "VarSplits Popup" sel ect="." /> | |||
1158 | 1172 | |||||
1159 | <xsl:valu e-of selec t="wwuri:U nescape(ww uri:GetRel ativeTo($V arSplitsPo pup/@path, $ParamSpl it/@path)) " /> | 1173 | <xsl:valu e-of selec t="wwuri:U nescape(ww uri:GetRel ativeTo($V arSplitsPo pup/@path, $ParamSpl it/@path)) " /> | |||
1160 | </xsl:for- each> | 1174 | </xsl:for- each> | |||
1161 | < /xsl:for-e ach> | 1175 | < /xsl:for-e ach> | |||
1162 | </ xsl:variab le> | 1176 | </ xsl:variab le> | |||
1163 | 1177 | |||||
1164 | <! -- href -- > | 1178 | <! -- href -- > | |||
1165 | <! -- -- > | 1179 | <! -- -- > | |||
1166 | <x sl:attribu te name="h ref"> | 1180 | <x sl:attribu te name="h ref"> | |||
1167 | < xsl:value- of select= "$VarPopup Path" /> | 1181 | < xsl:value- of select= "$VarPopup Path" /> | |||
1168 | </ xsl:attrib ute> | 1182 | </ xsl:attrib ute> | |||
1169 | 1183 | |||||
1170 | <! -- popup - -> | 1184 | <! -- popup - -> | |||
1171 | <! -- - -> | 1185 | <! -- - -> | |||
1172 | <x sl:attribu te name="p opup"> | 1186 | <x sl:attribu te name="p opup"> | |||
1173 | < xsl:value- of select= "true()"/> | 1187 | < xsl:value- of select= "true()"/> | |||
1174 | </ xsl:attrib ute> | 1188 | </ xsl:attrib ute> | |||
1175 | </x sl:when> | 1189 | </x sl:when> | |||
1176 | 1190 | |||||
1177 | <!- - Link --> | 1191 | <!- - Link --> | |||
1178 | <!- - --> | 1192 | <!- - --> | |||
1179 | <xs l:otherwis e> | 1193 | <xs l:otherwis e> | |||
1180 | <x sl:variabl e name="Va rLinkPath" select="w wuri:Unesc ape(wwuri: GetRelativ eTo($VarRe solvedLink Info/@path , $ParamSp lit/@path) )" /> | 1194 | <x sl:variabl e name="Va rLinkPath" select="w wuri:Unesc ape(wwuri: GetRelativ eTo($VarRe solvedLink Info/@path , $ParamSp lit/@path) )" /> | |||
1181 | 1195 | |||||
1182 | <! -- href -- > | 1196 | <! -- href -- > | |||
1183 | <! -- -- > | 1197 | <! -- -- > | |||
1184 | <x sl:attribu te name="h ref"> | 1198 | <x sl:attribu te name="h ref"> | |||
1185 | < xsl:value- of select= "$VarLinkP ath" /> | 1199 | < xsl:value- of select= "$VarLinkP ath" /> | |||
1186 | < xsl:if tes t="(string -length($P aramDocume ntLink/@an chor) > 0) and (s tring-leng th($VarRes olvedLinkI nfo/@linki d) > 0) "> | 1200 | < xsl:if tes t="(string -length($P aramDocume ntLink/@an chor) > 0) and (s tring-leng th($VarRes olvedLinkI nfo/@linki d) > 0) "> | |||
1187 | <xsl:text> #</xsl:tex t> | 1201 | <xsl:text> #</xsl:tex t> | |||
1188 | <xsl:value -of select ="$VarReso lvedLinkIn fo/@linkid " /> | 1202 | <xsl:value -of select ="$VarReso lvedLinkIn fo/@linkid " /> | |||
1189 | < /xsl:if> | 1203 | < /xsl:if> | |||
1190 | </ xsl:attrib ute> | 1204 | </ xsl:attrib ute> | |||
1191 | </x sl:otherwi se> | 1205 | </x sl:otherwi se> | |||
1192 | </xs l:choose> | 1206 | </xs l:choose> | |||
1193 | </xsl :when> | 1207 | </xsl :when> | |||
1194 | 1208 | |||||
1195 | <!-- URL --> | 1209 | <!-- URL --> | |||
1196 | <!-- --> | 1210 | <!-- --> | |||
1197 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'url'"> | 1211 | <xsl: when test= "$VarResol vedLinkInf o/@type = 'url'"> | |||
1198 | <xsl :attribute name="hre f"> | 1212 | <xsl :attribute name="hre f"> | |||
1199 | <xs l:value-of select="$ VarResolve dLinkInfo/ @url" /> | 1213 | <xs l:value-of select="$ VarResolve dLinkInfo/ @url" /> | |||
1200 | </xs l:attribut e> | 1214 | </xs l:attribut e> | |||
1201 | </xsl :when> | 1215 | </xsl :when> | |||
1202 | </xsl: choose> | 1216 | </xsl: choose> | |||
1203 | </xsl:i f> | 1217 | </xsl:i f> | |||
1204 | </xsl:el ement> | 1218 | </xsl:el ement> | |||
1205 | </xsl:tem plate> | 1219 | </xsl:tem plate> | |||
1206 | 1220 | |||||
1207 | 1221 | |||||
1208 | <xsl:temp late name= "TextRun"> | 1222 | <xsl:temp late name= "TextRun"> | |||
1209 | <xsl:par am name="P aramSplits " /> | 1223 | <xsl:par am name="P aramSplits " /> | |||
1210 | <xsl:par am name="P aramCargo" /> | 1224 | <xsl:par am name="P aramCargo" /> | |||
1211 | <xsl:par am name="P aramLinks" /> | 1225 | <xsl:par am name="P aramLinks" /> | |||
1212 | <xsl:par am name="P aramSplit" /> | 1226 | <xsl:par am name="P aramSplit" /> | |||
1213 | <xsl:par am name="P aramParagr aphID" /> | 1227 | <xsl:par am name="P aramParagr aphID" /> | |||
1214 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1228 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1215 | <xsl:par am name="P aramTextRu n" /> | 1229 | <xsl:par am name="P aramTextRu n" /> | |||
1216 | <xsl:par am name="P aramPositi on" /> | 1230 | <xsl:par am name="P aramPositi on" /> | |||
1217 | 1231 | |||||
1218 | <!-- Get rule --> | 1232 | <!-- Get rule --> | |||
1219 | <!-- --> | 1233 | <!-- --> | |||
1220 | <xsl:var iable name ="VarRule" select="w wprojext:G etRule('Ch aracter', $ParamText Run/@style name)" /> | 1234 | <xsl:var iable name ="VarRule" select="w wprojext:G etRule('Ch aracter', $ParamText Run/@style name)" /> | |||
1221 | 1235 | |||||
1222 | <!-- Gen erate outp ut? --> | 1236 | <!-- Gen erate outp ut? --> | |||
1223 | <!--- --> | 1237 | <!--- --> | |||
1224 | <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" /> | 1238 | <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" /> | |||
1225 | <xsl:var iable name ="VarGener ateOutput" select="( string-len gth($VarGe nerateOutp utOption) = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> | 1239 | <xsl:var iable name ="VarGener ateOutput" select="( string-len gth($VarGe nerateOutp utOption) = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> | |||
1226 | <xsl:if test="$Var GenerateOu tput"> | 1240 | <xsl:if test="$Var GenerateOu tput"> | |||
1227 | <!-- Pa ss-through ? --> | 1241 | <!-- Pa ss-through ? --> | |||
1228 | <!-- --> | 1242 | <!-- --> | |||
1229 | <xsl:va riable nam e="VarPass Through"> | 1243 | <xsl:va riable nam e="VarPass Through"> | |||
1230 | <xsl:c all-templa te name="C onditions- PassThroug h"> | 1244 | <xsl:c all-templa te name="C onditions- PassThroug h"> | |||
1231 | <xsl: with-param name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> | 1245 | <xsl: with-param name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> | |||
1232 | </xsl: call-templ ate> | 1246 | </xsl: call-templ ate> | |||
1233 | </xsl:v ariable> | 1247 | </xsl:v ariable> | |||
1234 | 1248 | |||||
1235 | <xsl:ch oose> | 1249 | <xsl:ch oose> | |||
1236 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | 1250 | <xsl:w hen test=" $VarPassTh rough = 't rue'"> | |||
1237 | <xsl: call-templ ate name=" TextRun-Pa ssThrough" > | 1251 | <xsl: call-templ ate name=" TextRun-Pa ssThrough" > | |||
1238 | <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> | 1252 | <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> | |||
1239 | </xsl :call-temp late> | 1253 | </xsl :call-temp late> | |||
1240 | </xsl: when> | 1254 | </xsl: when> | |||
1241 | 1255 | |||||
1242 | <xsl:o therwise> | 1256 | <xsl:o therwise> | |||
1243 | <xsl: call-templ ate name=" TextRun-No rmal"> | 1257 | <xsl: call-templ ate name=" TextRun-No rmal"> | |||
1244 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1258 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1245 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1259 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1246 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1260 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1247 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1261 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1248 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | 1262 | <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> | |||
1249 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> | 1263 | <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> | |||
1250 | <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> | 1264 | <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> | |||
1251 | <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> | 1265 | <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> | |||
1252 | <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> | 1266 | <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> | |||
1253 | </xsl :call-temp late> | 1267 | </xsl :call-temp late> | |||
1254 | </xsl: otherwise> | 1268 | </xsl: otherwise> | |||
1255 | </xsl:c hoose> | 1269 | </xsl:c hoose> | |||
1256 | </xsl:if > | 1270 | </xsl:if > | |||
1257 | </xsl:tem plate> | 1271 | </xsl:tem plate> | |||
1258 | 1272 | |||||
1259 | 1273 | |||||
1260 | <xsl:temp late name= "TextRun-P assThrough "> | 1274 | <xsl:temp late name= "TextRun-P assThrough "> | |||
1261 | <xsl:par am name="P aramTextRu n" /> | 1275 | <xsl:par am name="P aramTextRu n" /> | |||
1262 | 1276 | |||||
1263 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | 1277 | <wwexsld oc:Text di sable-outp ut-escapin g="yes"> | |||
1264 | <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > | 1278 | <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > | |||
1265 | <xsl:v ariable na me="VarTex t" select= "." /> | 1279 | <xsl:v ariable na me="VarTex t" select= "." /> | |||
1266 | 1280 | |||||
1267 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | 1281 | <xsl:v alue-of se lect="$Var Text/@valu e" /> | |||
1268 | </xsl:f or-each> | 1282 | </xsl:f or-each> | |||
1269 | </wwexsl doc:Text> | 1283 | </wwexsl doc:Text> | |||
1270 | </xsl:tem plate> | 1284 | </xsl:tem plate> | |||
1271 | 1285 | |||||
1272 | 1286 | |||||
1273 | <xsl:temp late name= "TextRun-N ormal"> | 1287 | <xsl:temp late name= "TextRun-N ormal"> | |||
1274 | <xsl:par am name="P aramSplits " /> | 1288 | <xsl:par am name="P aramSplits " /> | |||
1275 | <xsl:par am name="P aramCargo" /> | 1289 | <xsl:par am name="P aramCargo" /> | |||
1276 | <xsl:par am name="P aramLinks" /> | 1290 | <xsl:par am name="P aramLinks" /> | |||
1277 | <xsl:par am name="P aramSplit" /> | 1291 | <xsl:par am name="P aramSplit" /> | |||
1278 | <xsl:par am name="P aramParagr aphID" /> | 1292 | <xsl:par am name="P aramParagr aphID" /> | |||
1279 | <xsl:par am name="P aramUseCha racterStyl es" /> | 1293 | <xsl:par am name="P aramUseCha racterStyl es" /> | |||
1280 | <xsl:par am name="P aramTextRu n" /> | 1294 | <xsl:par am name="P aramTextRu n" /> | |||
1281 | <xsl:par am name="P aramRule" /> | 1295 | <xsl:par am name="P aramRule" /> | |||
1282 | <xsl:par am name="P aramPositi on" /> | 1296 | <xsl:par am name="P aramPositi on" /> | |||
1283 | 1297 | |||||
1284 | <xsl:cho ose> | 1298 | <xsl:cho ose> | |||
1285 | <xsl:wh en test="( $ParamUseC haracterSt yles) and ((string-l ength($Par amTextRun/ @stylename ) > 0) or (count( $ParamText Run/wwdoc: Style) = 1 ))"> | 1299 | <xsl:wh en test="( $ParamUseC haracterSt yles) and ((string-l ength($Par amTextRun/ @stylename ) > 0) or (count( $ParamText Run/wwdoc: Style) = 1 ))"> | |||
1286 | <!-- R esolve pro ject prope rties --> | 1300 | <!-- R esolve pro ject prope rties --> | |||
1287 | <!-- --> | 1301 | <!-- --> | |||
1288 | <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> | 1302 | <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> | |||
1289 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | 1303 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | |||
1290 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramTextRu n" /> | 1304 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramTextRu n" /> | |||
1291 | <xsl :with-para m name="Pa ramPropert ies" selec t="$ParamR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" /> | 1305 | <xsl :with-para m name="Pa ramPropert ies" selec t="$ParamR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" /> | |||
1292 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamTe xtRun/@sty lename" /> | 1306 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamTe xtRun/@sty lename" /> | |||
1293 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> | 1307 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> | |||
1294 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> | 1308 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> | |||
1295 | </xsl :call-temp late> | 1309 | </xsl :call-temp late> | |||
1296 | </xsl: variable> | 1310 | </xsl: variable> | |||
1297 | <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | 1311 | <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | |||
1298 | 1312 | |||||
1299 | <!-- C SS propert ies --> | 1313 | <!-- C SS propert ies --> | |||
1300 | <!-- --> | 1314 | <!-- --> | |||
1301 | <xsl:v ariable na me="VarCSS ContextPro pertiesAsX ML"> | 1315 | <xsl:v ariable na me="VarCSS ContextPro pertiesAsX ML"> | |||
1302 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | 1316 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | |||
1303 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> | 1317 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> | |||
1304 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | 1318 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | |||
1305 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1319 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1306 | </xsl :call-temp late> | 1320 | </xsl :call-temp late> | |||
1307 | </xsl: variable> | 1321 | </xsl: variable> | |||
1308 | <xsl:v ariable na me="VarCSS ContextPro perties" s elect="msx sl:node-se t($VarCSSC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | 1322 | <xsl:v ariable na me="VarCSS ContextPro perties" s elect="msx sl:node-se t($VarCSSC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> | |||
1309 | 1323 | |||||
1310 | <!-- T ag --> | 1324 | <!-- T ag --> | |||
1311 | <!-- --> | 1325 | <!-- --> | |||
1312 | <xsl:v ariable na me="VarTag Property" select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> | 1326 | <xsl:v ariable na me="VarTag Property" select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> | |||
1313 | <xsl:v ariable na me="VarTag "> | 1327 | <xsl:v ariable na me="VarTag "> | |||
1314 | <xsl: choose> | 1328 | <xsl: choose> | |||
1315 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | 1329 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | |||
1316 | <xs l:value-of select="$ VarTagProp erty" /> | 1330 | <xs l:value-of select="$ VarTagProp erty" /> | |||
1317 | </xs l:when> | 1331 | </xs l:when> | |||
1318 | 1332 | |||||
1319 | <xsl :otherwise > | 1333 | <xsl :otherwise > | |||
1320 | <xs l:value-of select="' dfn'" /> | 1334 | <xs l:value-of select="' dfn'" /> | |||
1321 | </xs l:otherwis e> | 1335 | </xs l:otherwis e> | |||
1322 | </xsl :choose> | 1336 | </xsl :choose> | |||
1323 | </xsl: variable> | 1337 | </xsl: variable> | |||
1324 | 1338 | |||||
1325 | <!-- S tyle attri bute --> | 1339 | <!-- S tyle attri bute --> | |||
1326 | <!-- --> | 1340 | <!-- --> | |||
1327 | <xsl:v ariable na me="VarSty leAttribut e"> | 1341 | <xsl:v ariable na me="VarSty leAttribut e"> | |||
1328 | <xsl: call-templ ate name=" CSS-Inline Properties "> | 1342 | <xsl: call-templ ate name=" CSS-Inline Properties "> | |||
1329 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > | 1343 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > | |||
1330 | </xsl :call-temp late> | 1344 | </xsl :call-temp late> | |||
1331 | </xsl: variable> | 1345 | </xsl: variable> | |||
1332 | 1346 | |||||
1333 | <xsl:c hoose> | 1347 | <xsl:c hoose> | |||
1334 | <xsl: when test= "(string-l ength($Par amTextRun/ @stylename ) > 0) or (string -length($V arStyleAtt ribute) &g t; 0)"> | 1348 | <xsl: when test= "(string-l ength($Par amTextRun/ @stylename ) > 0) or (string -length($V arStyleAtt ribute) &g t; 0)"> | |||
1335 | <!-- Character Style --> | 1349 | <!-- Character Style --> | |||
1336 | <!-- --> | 1350 | <!-- --> | |||
1337 | <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> | 1351 | <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> | |||
1338 | <xs l:if test= "string-le ngth($VarS tyleAttrib ute) > 0"> | 1352 | <xs l:if test= "string-le ngth($VarS tyleAttrib ute) > 0"> | |||
1339 | <x sl:attribu te name="s tyle"> | 1353 | <x sl:attribu te name="s tyle"> | |||
1340 | < xsl:value- of select= "$VarStyle Attribute" /> | 1354 | < xsl:value- of select= "$VarStyle Attribute" /> | |||
1341 | </ xsl:attrib ute> | 1355 | </ xsl:attrib ute> | |||
1342 | </x sl:if> | 1356 | </x sl:if> | |||
1343 | 1357 | |||||
1344 | <xs l:call-tem plate name ="TextRunC hildren"> | 1358 | <xs l:call-tem plate name ="TextRunC hildren"> | |||
1345 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 1359 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
1346 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 1360 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
1347 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 1361 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
1348 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 1362 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
1349 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | 1363 | <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> | |||
1350 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | 1364 | <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> | |||
1351 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | 1365 | <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > | |||
1352 | </x sl:call-te mplate> | 1366 | </x sl:call-te mplate> | |||
1353 | </xs l:element> | 1367 | </xs l:element> | |||
1354 | </xsl :when> | 1368 | </xsl :when> | |||
1355 | 1369 | |||||
1356 | <xsl: otherwise> | 1370 | <xsl: otherwise> | |||
1357 | <!-- No style --> | 1371 | <!-- No style --> | |||
1358 | <!-- --> | 1372 | <!-- --> | |||
1359 | <xsl :call-temp late name= "TextRunCh ildren"> | 1373 | <xsl :call-temp late name= "TextRunCh ildren"> | |||
1360 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 1374 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
1361 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | 1375 | <xs l:with-par am name="P aramCargo" select="$ ParamCargo " /> | |||
1362 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 1376 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
1363 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 1377 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
1364 | <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> | 1378 | <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> | |||
1365 | <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> | 1379 | <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> | |||
1366 | <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> | 1380 | <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> | |||
1367 | </xs l:call-tem plate> | 1381 | </xs l:call-tem plate> | |||
1368 | </xsl :otherwise > | 1382 | </xsl :otherwise > | |||
1369 | </xsl: choose> | 1383 | </xsl: choose> | |||
1370 | </xsl:w hen> | 1384 | </xsl:w hen> | |||
1371 | 1385 | |||||
1372 | <xsl:ot herwise> | 1386 | <xsl:ot herwise> | |||
1373 | <!-- N o style -- > | 1387 | <!-- N o style -- > | |||
1374 | <!-- -- > | 1388 | <!-- -- > | |||
1375 | <xsl:c all-templa te name="T extRunChil dren"> | 1389 | <xsl:c all-templa te name="T extRunChil dren"> | |||
1376 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1390 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1377 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 1391 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
1378 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1392 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1379 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1393 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1380 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraphID " /> | 1394 | <xsl: with-param name="Par amParagrap hID" selec t="$ParamP aragraphID " /> | |||
1381 | <xsl: with-param name="Par amTextRun" select="$ ParamTextR un" /> | 1395 | <xsl: with-param name="Par amTextRun" select="$ ParamTextR un" /> | |||
1382 | <xsl: with-param name="Par amPosition " select=" $ParamPosi tion" /> | 1396 | <xsl: with-param name="Par amPosition " select=" $ParamPosi tion" /> | |||
1383 | </xsl: call-templ ate> | 1397 | </xsl: call-templ ate> | |||
1384 | </xsl:o therwise> | 1398 | </xsl:o therwise> | |||
1385 | </xsl:ch oose> | 1399 | </xsl:ch oose> | |||
1386 | </xsl:tem plate> | 1400 | </xsl:tem plate> | |||
1387 | 1401 | |||||
1388 | 1402 | |||||
1389 | <xsl:temp late name= "TextRunCh ildren"> | 1403 | <xsl:temp late name= "TextRunCh ildren"> | |||
1390 | <xsl:par am name="P aramSplits " /> | 1404 | <xsl:par am name="P aramSplits " /> | |||
1391 | <xsl:par am name="P aramCargo" /> | 1405 | <xsl:par am name="P aramCargo" /> | |||
1392 | <xsl:par am name="P aramLinks" /> | 1406 | <xsl:par am name="P aramLinks" /> | |||
1393 | <xsl:par am name="P aramSplit" /> | 1407 | <xsl:par am name="P aramSplit" /> | |||
1394 | <xsl:par am name="P aramParagr aphID" /> | 1408 | <xsl:par am name="P aramParagr aphID" /> | |||
1395 | <xsl:par am name="P aramTextRu n" /> | 1409 | <xsl:par am name="P aramTextRu n" /> | |||
1396 | <xsl:par am name="P aramPositi on" /> | 1410 | <xsl:par am name="P aramPositi on" /> | |||
1397 | 1411 | |||||
1398 | <!-- For ce anchor on same li ne as cont aining spa n --> | 1412 | <!-- For ce anchor on same li ne as cont aining spa n --> | |||
1399 | <!-- --> | 1413 | <!-- --> | |||
1400 | <wwexsld oc:NoBreak /> | 1414 | <wwexsld oc:NoBreak /> | |||
1401 | 1415 | |||||
1402 | <!-- Lin k? --> | 1416 | <!-- Lin k? --> | |||
1403 | <!-- --> | 1417 | <!-- --> | |||
1404 | <xsl:var iable name ="VarLinkI nfoAsXML"> | 1418 | <xsl:var iable name ="VarLinkI nfoAsXML"> | |||
1405 | <xsl:ca ll-templat e name="Li nkInfo"> | 1419 | <xsl:ca ll-templat e name="Li nkInfo"> | |||
1406 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 1420 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
1407 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 1421 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
1408 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 1422 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
1409 | <xsl:w ith-param name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > | 1423 | <xsl:w ith-param name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > | |||
1410 | </xsl:c all-templa te> | 1424 | </xsl:c all-templa te> | |||
1411 | </xsl:va riable> | 1425 | </xsl:va riable> | |||
1412 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | 1426 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | |||
1413 | 1427 | |||||
1414 | <!-- Han dle links and first textrun an chor --> | 1428 | <!-- Han dle links and first textrun an chor --> | |||
1415 | <!-- --> | 1429 | <!-- --> | |||
1416 | <xsl:cho ose> | 1430 | <xsl:cho ose> | |||
1417 | <xsl:wh en test="$ VarLinkInf o/@popup = 'true'"> | 1431 | <xsl:wh en test="$ VarLinkInf o/@popup = 'true'"> | |||
1418 | <xsl:v ariable na me="VarTex tRunText"> | 1432 | <xsl:v ariable na me="VarTex tRunText"> | |||
1419 | <xsl: for-each s elect="$Pa ramTextRun /wwdoc:Tex t"> | 1433 | <xsl: for-each s elect="$Pa ramTextRun /wwdoc:Tex t"> | |||
1420 | <xsl :value-of select="@v alue" /> | 1434 | <xsl :value-of select="@v alue" /> | |||
1421 | </xsl :for-each> | 1435 | </xsl :for-each> | |||
1422 | </xsl: variable> | 1436 | </xsl: variable> | |||
1423 | 1437 | |||||
1424 | <html: object cla ssid="java :com.sun.j ava.help.i mpl.JHSeco ndaryViewe r"> | 1438 | <html: object cla ssid="java :com.sun.j ava.help.i mpl.JHSeco ndaryViewe r"> | |||
1425 | <html :param nam e="content " value="{ $VarLinkIn fo/@href}" /> | 1439 | <html :param nam e="content " value="{ $VarLinkIn fo/@href}" /> | |||
1426 | <html :param nam e="viewerA ctivator" value="jav ax.help.Li nkLabel" / > | 1440 | <html :param nam e="viewerA ctivator" value="jav ax.help.Li nkLabel" / > | |||
1427 | <html :param nam e="viewerL ocation" v alue="400, 500" /> | 1441 | <html :param nam e="viewerL ocation" v alue="400, 500" /> | |||
1428 | <html :param nam e="viewerS ize" value ="400,300" /> | 1442 | <html :param nam e="viewerS ize" value ="400,300" /> | |||
1429 | <html :param nam e="viewerN ame" value ="text" /> | 1443 | <html :param nam e="viewerN ame" value ="text" /> | |||
1430 | <html :param nam e="viewerS tyle" valu e="javax.h elp.Popup" /> | 1444 | <html :param nam e="viewerS tyle" valu e="javax.h elp.Popup" /> | |||
1431 | <html :param nam e="text" v alue="{$Va rTextRunTe xt}" /> | 1445 | <html :param nam e="text" v alue="{$Va rTextRunTe xt}" /> | |||
1432 | </html :object> | 1446 | </html :object> | |||
1433 | </xsl:w hen> | 1447 | </xsl:w hen> | |||
1434 | 1448 | |||||
1435 | <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) > 0" > | 1449 | <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) > 0" > | |||
1436 | <html: a href="{$ VarLinkInf o/@href}"> | 1450 | <html: a href="{$ VarLinkInf o/@href}"> | |||
1437 | <xsl: if test="$ ParamPosit ion = 1"> | 1451 | <xsl: if test="$ ParamPosit ion = 1"> | |||
1438 | <xsl :attribute name="nam e"> | 1452 | <xsl :attribute name="nam e"> | |||
1439 | <xs l:value-of select="$ ParamParag raphID" /> | 1453 | <xs l:value-of select="$ ParamParag raphID" /> | |||
1440 | </xs l:attribut e> | 1454 | </xs l:attribut e> | |||
1441 | </xsl :if> | 1455 | </xsl :if> | |||
1442 | 1456 | |||||
1443 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | 1457 | <xsl: apply-temp lates sele ct="$Param TextRun/*" mode="wwm ode:textru n"> | |||
1444 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1458 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1445 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1459 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1446 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1460 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1447 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1461 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1448 | </xsl :apply-tem plates> | 1462 | </xsl :apply-tem plates> | |||
1449 | </html :a> | 1463 | </html :a> | |||
1450 | </xsl:w hen> | 1464 | </xsl:w hen> | |||
1451 | 1465 | |||||
1452 | <xsl:wh en test="$ ParamPosit ion = 1"> | 1466 | <xsl:wh en test="$ ParamPosit ion = 1"> | |||
1453 | <xsl:a pply-templ ates selec t="$ParamT extRun/*" mode="wwmo de:textrun "> | 1467 | <xsl:a pply-templ ates selec t="$ParamT extRun/*" mode="wwmo de:textrun "> | |||
1454 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1468 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1455 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 1469 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
1456 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1470 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1457 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1471 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1458 | </xsl: apply-temp lates> | 1472 | </xsl: apply-temp lates> | |||
1459 | 1473 | |||||
1460 | <!-- F orce singl e line --> | 1474 | <!-- F orce singl e line --> | |||
1461 | <!-- --> | 1475 | <!-- --> | |||
1462 | <wwexs ldoc:NoBre ak /> | 1476 | <wwexs ldoc:NoBre ak /> | |||
1463 | <html: a name="{$ ParamParag raphID}">< /html:a> | 1477 | <html: a name="{$ ParamParag raphID}">< /html:a> | |||
1464 | </xsl:w hen> | 1478 | </xsl:w hen> | |||
1465 | 1479 | |||||
1466 | <xsl:ot herwise> | 1480 | <xsl:ot herwise> | |||
1467 | <xsl:a pply-templ ates selec t="$ParamT extRun/*" mode="wwmo de:textrun "> | 1481 | <xsl:a pply-templ ates selec t="$ParamT extRun/*" mode="wwmo de:textrun "> | |||
1468 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | 1482 | <xsl: with-param name="Par amSplits" select="$P aramSplits " /> | |||
1469 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | 1483 | <xsl: with-param name="Par amCargo" s elect="$Pa ramCargo" /> | |||
1470 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | 1484 | <xsl: with-param name="Par amLinks" s elect="$Pa ramLinks" /> | |||
1471 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | 1485 | <xsl: with-param name="Par amSplit" s elect="$Pa ramSplit" /> | |||
1472 | </xsl: apply-temp lates> | 1486 | </xsl: apply-temp lates> | |||
1473 | </xsl:o therwise> | 1487 | </xsl:o therwise> | |||
1474 | </xsl:ch oose> | 1488 | </xsl:ch oose> | |||
1475 | 1489 | |||||
1476 | <!-- For ce anchor on same li ne as cont aining spa n --> | 1490 | <!-- For ce anchor on same li ne as cont aining spa n --> | |||
1477 | <!-- --> | 1491 | <!-- --> | |||
1478 | <wwexsld oc:NoBreak /> | 1492 | <wwexsld oc:NoBreak /> | |||
1479 | </xsl:tem plate> | 1493 | </xsl:tem plate> | |||
1480 | 1494 | |||||
1481 | 1495 | |||||
1482 | <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> | 1496 | <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> | |||
1483 | <xsl:par am name="P aramSplits " /> | 1497 | <xsl:par am name="P aramSplits " /> | |||
1484 | <xsl:par am name="P aramCargo" /> | 1498 | <xsl:par am name="P aramCargo" /> | |||
1485 | <xsl:par am name="P aramLinks" /> | 1499 | <xsl:par am name="P aramLinks" /> | |||
1486 | <xsl:par am name="P aramSplit" /> | 1500 | <xsl:par am name="P aramSplit" /> | |||
1487 | 1501 | |||||
1488 | <xsl:var iable name ="VarConte xt" select ="." /> | 1502 | <xsl:var iable name ="VarConte xt" select ="." /> | |||
1489 | 1503 | |||||
1490 | <!-- Imp lement not es --> | 1504 | <!-- Imp lement not es --> | |||
1491 | <!-- --> | 1505 | <!-- --> | |||
1492 | <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> | 1506 | <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> | |||
1493 | <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > | 1507 | <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > | |||
1494 | 1508 | |||||
1495 | <!-- Fo rce sup on same line as contai ning span --> | 1509 | <!-- Fo rce sup on same line as contai ning span --> | |||
1496 | <!-- --> | 1510 | <!-- --> | |||
1497 | <wwexsl doc:NoBrea k /> | 1511 | <wwexsl doc:NoBrea k /> | |||
1498 | 1512 | |||||
1499 | <html:s up> | 1513 | <html:s up> | |||
1500 | <!-- F orce ancho r on same line as co ntaining s up --> | 1514 | <!-- F orce ancho r on same line as co ntaining s up --> | |||
1501 | <!-- --> | 1515 | <!-- --> | |||
1502 | <wwexs ldoc:NoBre ak /> | 1516 | <wwexs ldoc:NoBre ak /> | |||
1503 | 1517 | |||||
1504 | <html: a> | 1518 | <html: a> | |||
1505 | <xsl: attribute name="name "> | 1519 | <xsl: attribute name="name "> | |||
1506 | <xsl :text>wwfo otnote_inl ine_</xsl: text> | 1520 | <xsl :text>wwfo otnote_inl ine_</xsl: text> | |||
1507 | <xsl :value-of select="$V arContext/ @id" /> | 1521 | <xsl :value-of select="$V arContext/ @id" /> | |||
1508 | </xsl :attribute > | 1522 | </xsl :attribute > | |||
1509 | <xsl: attribute name="href "> | 1523 | <xsl: attribute name="href "> | |||
1510 | <xsl :text>#</x sl:text> | 1524 | <xsl :text>#</x sl:text> | |||
1511 | <xsl :value-of select="$V arContext/ @id" /> | 1525 | <xsl :value-of select="$V arContext/ @id" /> | |||
1512 | </xsl :attribute > | 1526 | </xsl :attribute > | |||
1513 | 1527 | |||||
1514 | <xsl: value-of s elect="$Va rNoteNumbe r" /> | 1528 | <xsl: value-of s elect="$Va rNoteNumbe r" /> | |||
1515 | </html :a> | 1529 | </html :a> | |||
1516 | </html: sup> | 1530 | </html: sup> | |||
1517 | </xsl:fo r-each> | 1531 | </xsl:fo r-each> | |||
1518 | </xsl:tem plate> | 1532 | </xsl:tem plate> | |||
1519 | 1533 | |||||
1520 | 1534 | |||||
1521 | <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > | 1535 | <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > | |||
1522 | <xsl:par am name="P aramSplits " /> | 1536 | <xsl:par am name="P aramSplits " /> | |||
1523 | <xsl:par am name="P aramCargo" /> | 1537 | <xsl:par am name="P aramCargo" /> | |||
1524 | <xsl:par am name="P aramLinks" /> | 1538 | <xsl:par am name="P aramLinks" /> | |||
1525 | <xsl:par am name="P aramSplit" /> | 1539 | <xsl:par am name="P aramSplit" /> | |||
1526 | 1540 | |||||
1527 | <html:br /> | 1541 | <html:br /> | |||
1528 | </xsl:tem plate> | 1542 | </xsl:tem plate> | |||
1529 | 1543 | |||||
1530 | 1544 | |||||
1531 | <xsl:temp late match ="wwdoc:In dexMarker" mode="wwm ode:textru n"> | 1545 | <xsl:temp late match ="wwdoc:In dexMarker" mode="wwm ode:textru n"> | |||
1532 | <xsl:par am name="P aramSplits " /> | 1546 | <xsl:par am name="P aramSplits " /> | |||
1533 | <xsl:par am name="P aramCargo" /> | 1547 | <xsl:par am name="P aramCargo" /> | |||
1534 | <xsl:par am name="P aramLinks" /> | 1548 | <xsl:par am name="P aramLinks" /> | |||
1535 | <xsl:par am name="P aramSplit" /> | 1549 | <xsl:par am name="P aramSplit" /> | |||
1536 | 1550 | |||||
1537 | <!-- Ign ore index markers -- > | 1551 | <!-- Ign ore index markers -- > | |||
1538 | <!-- -- > | 1552 | <!-- -- > | |||
1539 | </xsl:tem plate> | 1553 | </xsl:tem plate> | |||
1540 | 1554 | |||||
1541 | 1555 | |||||
1542 | <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> | 1556 | <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> | |||
1543 | <xsl:par am name="P aramSplits " /> | 1557 | <xsl:par am name="P aramSplits " /> | |||
1544 | <xsl:par am name="P aramCargo" /> | 1558 | <xsl:par am name="P aramCargo" /> | |||
1545 | <xsl:par am name="P aramLinks" /> | 1559 | <xsl:par am name="P aramLinks" /> | |||
1546 | <xsl:par am name="P aramSplit" /> | 1560 | <xsl:par am name="P aramSplit" /> | |||
1547 | 1561 | |||||
1548 | <!-- Ign ore marker s --> | 1562 | <!-- Ign ore marker s --> | |||
1549 | <!-- --> | 1563 | <!-- --> | |||
1550 | </xsl:tem plate> | 1564 | </xsl:tem plate> | |||
1551 | 1565 | |||||
1552 | 1566 | |||||
1553 | <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> | 1567 | <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> | |||
1554 | <xsl:par am name="P aramSplits " /> | 1568 | <xsl:par am name="P aramSplits " /> | |||
1555 | <xsl:par am name="P aramCargo" /> | 1569 | <xsl:par am name="P aramCargo" /> | |||
1556 | <xsl:par am name="P aramLinks" /> | 1570 | <xsl:par am name="P aramLinks" /> | |||
1557 | <xsl:par am name="P aramSplit" /> | 1571 | <xsl:par am name="P aramSplit" /> | |||
1558 | 1572 | |||||
1559 | <xsl:val ue-of sele ct="@value " /> | 1573 | <xsl:val ue-of sele ct="@value " /> | |||
1560 | </xsl:tem plate> | 1574 | </xsl:tem plate> | |||
1561 | 1575 | |||||
1562 | 1576 | |||||
1563 | <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> | 1577 | <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> | |||
1564 | <xsl:par am name="P aramSplits " /> | 1578 | <xsl:par am name="P aramSplits " /> | |||
1565 | <xsl:par am name="P aramCargo" /> | 1579 | <xsl:par am name="P aramCargo" /> | |||
1566 | <xsl:par am name="P aramLinks" /> | 1580 | <xsl:par am name="P aramLinks" /> | |||
1567 | <xsl:par am name="P aramTOCDat a" /> | 1581 | <xsl:par am name="P aramTOCDat a" /> | |||
1568 | <xsl:par am name="P aramSplit" /> | 1582 | <xsl:par am name="P aramSplit" /> | |||
1569 | 1583 | |||||
1570 | <xsl:var iable name ="VarTable " select=" ." /> | 1584 | <xsl:var iable name ="VarTable " select=" ." /> | |||
1571 | 1585 | |||||
1572 | <!-- Abo rted? --> | 1586 | <!-- Abo rted? --> | |||
1573 | <!-- --> | 1587 | <!-- --> | |||
1574 | <xsl:if test="not( wwprogress :Abort())" > | 1588 | <xsl:if test="not( wwprogress :Abort())" > | |||
1575 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID, $VarTable/ @id)" /> | 1589 | <xsl:va riable nam e="VarOver rideRule" select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID, $VarTable/ @id)" /> | |||
1576 | <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" /> | 1590 | <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" /> | |||
1577 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | 1591 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | |||
1578 | <xsl:if test="$Va rGenerateO utput"> | 1592 | <xsl:if test="$Va rGenerateO utput"> | |||
1579 | 1593 | |||||
1580 | <!-- G et behavio r --> | 1594 | <!-- G et behavio r --> | |||
1581 | <!-- --> | 1595 | <!-- --> | |||
1582 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | 1596 | <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> | |||
1583 | <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> | 1597 | <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> | |||
1584 | 1598 | |||||
1585 | <!-- Table --> | 1599 | <!-- Table --> | |||
1586 | <!-- --> | 1600 | <!-- --> | |||
1587 | <xsl: call-templ ate name=" Table"> | 1601 | <xsl: call-templ ate name=" Table"> | |||
1588 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1602 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1589 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1603 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1590 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1604 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1591 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | 1605 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | |||
1592 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1606 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1593 | <xsl :with-para m name="Pa ramTable" select="$V arTable" / > | 1607 | <xsl :with-para m name="Pa ramTable" select="$V arTable" / > | |||
1594 | <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> | 1608 | <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> | |||
1595 | <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> | 1609 | <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> | |||
1596 | </xsl :call-temp late> | 1610 | </xsl :call-temp late> | |||
1597 | </xsl: for-each> | 1611 | </xsl: for-each> | |||
1598 | </xsl:i f> | 1612 | </xsl:i f> | |||
1599 | </xsl:if > | 1613 | </xsl:if > | |||
1600 | </xsl:tem plate> | 1614 | </xsl:tem plate> | |||
1601 | 1615 | |||||
1602 | 1616 | |||||
1603 | <xsl:temp late name= "Table-Att ribute-In- Pixels"> | 1617 | <xsl:temp late name= "Table-Att ribute-In- Pixels"> | |||
1604 | <xsl:par am name="P aramValue" /> | 1618 | <xsl:par am name="P aramValue" /> | |||
1605 | 1619 | |||||
1606 | <xsl:cho ose> | 1620 | <xsl:cho ose> | |||
1607 | <xsl:wh en test="s tring-leng th($ParamV alue) > 0"> | 1621 | <xsl:wh en test="s tring-leng th($ParamV alue) > 0"> | |||
1608 | <!-- N ormalize v alue for H TML attrib ute--> | 1622 | <!-- N ormalize v alue for H TML attrib ute--> | |||
1609 | <!-- --> | 1623 | <!-- --> | |||
1610 | <xsl:v ariable na me="VarVal ueToEmit"> | 1624 | <xsl:v ariable na me="VarVal ueToEmit"> | |||
1611 | <xsl: variable n ame="VarUn itsSuffix" select="w wunits:Uni tsSuffix($ ParamValue )" /> | 1625 | <xsl: variable n ame="VarUn itsSuffix" select="w wunits:Uni tsSuffix($ ParamValue )" /> | |||
1612 | 1626 | |||||
1613 | <xsl: choose> | 1627 | <xsl: choose> | |||
1614 | <xsl :when test ="string-l ength($Var UnitsSuffi x) > 0" > | 1628 | <xsl :when test ="string-l ength($Var UnitsSuffi x) > 0" > | |||
1615 | <xs l:variable name="Var NumPrefix" select="w wunits:Num ericPrefix ($ParamVal ue)" /> | 1629 | <xs l:variable name="Var NumPrefix" select="w wunits:Num ericPrefix ($ParamVal ue)" /> | |||
1616 | 1630 | |||||
1617 | <xs l:value-of select="w wunits:Con vert($VarN umPrefix, $VarUnitsS uffix, 'px ')" /> | 1631 | <xs l:value-of select="w wunits:Con vert($VarN umPrefix, $VarUnitsS uffix, 'px ')" /> | |||
1618 | </xs l:when> | 1632 | </xs l:when> | |||
1619 | 1633 | |||||
1620 | <xsl :otherwise > | 1634 | <xsl :otherwise > | |||
1621 | <xs l:value-of select="$ ParamValue " /> | 1635 | <xs l:value-of select="$ ParamValue " /> | |||
1622 | </xs l:otherwis e> | 1636 | </xs l:otherwis e> | |||
1623 | </xsl :choose> | 1637 | </xsl :choose> | |||
1624 | </xsl: variable> | 1638 | </xsl: variable> | |||
1625 | 1639 | |||||
1626 | <xsl:v alue-of se lect="$Var ValueToEmi t" /> | 1640 | <xsl:v alue-of se lect="$Var ValueToEmi t" /> | |||
1627 | </xsl:w hen> | 1641 | </xsl:w hen> | |||
1628 | 1642 | |||||
1629 | <xsl:ot herwise> | 1643 | <xsl:ot herwise> | |||
1630 | <xsl:v alue-of se lect="''" /> | 1644 | <xsl:v alue-of se lect="''" /> | |||
1631 | </xsl:o therwise> | 1645 | </xsl:o therwise> | |||
1632 | </xsl:ch oose> | 1646 | </xsl:ch oose> | |||
1633 | </xsl:tem plate> | 1647 | </xsl:tem plate> | |||
1634 | 1648 | |||||
1635 | 1649 | |||||
1636 | <xsl:temp late name= "Table"> | 1650 | <xsl:temp late name= "Table"> | |||
1637 | <xsl:par am name="P aramSplits " /> | 1651 | <xsl:par am name="P aramSplits " /> | |||
1638 | <xsl:par am name="P aramCargo" /> | 1652 | <xsl:par am name="P aramCargo" /> | |||
1639 | <xsl:par am name="P aramLinks" /> | 1653 | <xsl:par am name="P aramLinks" /> | |||
1640 | <xsl:par am name="P aramTOCDat a" /> | 1654 | <xsl:par am name="P aramTOCDat a" /> | |||
1641 | <xsl:par am name="P aramSplit" /> | 1655 | <xsl:par am name="P aramSplit" /> | |||
1642 | <xsl:par am name="P aramTable" /> | 1656 | <xsl:par am name="P aramTable" /> | |||
1643 | <xsl:par am name="P aramStyleN ame" /> | 1657 | <xsl:par am name="P aramStyleN ame" /> | |||
1644 | <xsl:par am name="P aramTableB ehavior" / > | 1658 | <xsl:par am name="P aramTableB ehavior" / > | |||
1645 | 1659 | |||||
1646 | <!-- Not es --> | 1660 | <!-- Not es --> | |||
1647 | <!-- --> | 1661 | <!-- --> | |||
1648 | <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> | 1662 | <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> | |||
1649 | 1663 | |||||
1650 | <!-- Not e numberin g --> | 1664 | <!-- Not e numberin g --> | |||
1651 | <!-- --> | 1665 | <!-- --> | |||
1652 | <xsl:var iable name ="VarNoteN umberingAs XML"> | 1666 | <xsl:var iable name ="VarNoteN umberingAs XML"> | |||
1653 | <xsl:ca ll-templat e name="No tes-Number "> | 1667 | <xsl:ca ll-templat e name="No tes-Number "> | |||
1654 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | 1668 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | |||
1655 | </xsl:c all-templa te> | 1669 | </xsl:c all-templa te> | |||
1656 | </xsl:va riable> | 1670 | </xsl:va riable> | |||
1657 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | 1671 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | |||
1658 | 1672 | |||||
1659 | <!-- Car go for rec ursion --> | 1673 | <!-- Car go for rec ursion --> | |||
1660 | <!-- --> | 1674 | <!-- --> | |||
1661 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | 1675 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | |||
1662 | 1676 | |||||
1663 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table', $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" /> | 1677 | <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table', $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" /> | |||
1664 | 1678 | |||||
1665 | <!-- Res olve proje ct propert ies --> | 1679 | <!-- Res olve proje ct propert ies --> | |||
1666 | <!-- --> | 1680 | <!-- --> | |||
1667 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | 1681 | <xsl:var iable name ="VarResol vedContext Properties AsXML"> | |||
1668 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | 1682 | <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> | |||
1669 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amTable" / > | 1683 | <xsl:w ith-param name="Para mDocumentC ontext" se lect="$Par amTable" / > | |||
1670 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | 1684 | <xsl:w ith-param name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> | |||
1671 | <xsl:w ith-param name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> | 1685 | <xsl:w ith-param name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> | |||
1672 | <xsl:w ith-param name="Para mStyleType " select=" 'Table'" / > | 1686 | <xsl:w ith-param name="Para mStyleType " select=" 'Table'" / > | |||
1673 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> | 1687 | <xsl:w ith-param name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> | |||
1674 | </xsl:c all-templa te> | 1688 | </xsl:c all-templa te> | |||
1675 | </xsl:va riable> | 1689 | </xsl:va riable> | |||
1676 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | 1690 | <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property" /> | |||
1677 | 1691 | |||||
1678 | <!-- CSS propertie s --> | 1692 | <!-- CSS propertie s --> | |||
1679 | <!-- --> | 1693 | <!-- --> | |||
1680 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | 1694 | <xsl:var iable name ="VarCSSPr opertiesAs XML"> | |||
1681 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | 1695 | <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> | |||
1682 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedContext Properties " /> | 1696 | <xsl:w ith-param name="Para mPropertie s" select= "$VarResol vedContext Properties " /> | |||
1683 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | 1697 | <xsl:w ith-param name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> | |||
1684 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 1698 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
1685 | </xsl:c all-templa te> | 1699 | </xsl:c all-templa te> | |||
1686 | </xsl:va riable> | 1700 | </xsl:va riable> | |||
1687 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | 1701 | <xsl:var iable name ="VarCSSPr operties" select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> | |||
1688 | 1702 | |||||
1689 | <!-- Sty le attribu te --> | 1703 | <!-- Sty le attribu te --> | |||
1690 | <!-- --> | 1704 | <!-- --> | |||
1691 | <xsl:var iable name ="VarStyle Attribute" > | 1705 | <xsl:var iable name ="VarStyle Attribute" > | |||
1692 | <xsl:ca ll-templat e name="CS S-InlinePr operties"> | 1706 | <xsl:ca ll-templat e name="CS S-InlinePr operties"> | |||
1693 | <xsl:w ith-param name="Para mPropertie s" select= "$VarCSSPr operties" /> | 1707 | <xsl:w ith-param name="Para mPropertie s" select= "$VarCSSPr operties" /> | |||
1694 | </xsl:c all-templa te> | 1708 | </xsl:c all-templa te> | |||
1695 | </xsl:va riable> | 1709 | </xsl:va riable> | |||
1696 | 1710 | |||||
1697 | <!-- Bor der --> | 1711 | <!-- Bor der --> | |||
1698 | <!-- --> | 1712 | <!-- --> | |||
1699 | <xsl:var iable name ="VarTable Border"> | 1713 | <xsl:var iable name ="VarTable Border"> | |||
1700 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | 1714 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | |||
1701 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> | 1715 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> | |||
1702 | </xsl:c all-templa te> | 1716 | </xsl:c all-templa te> | |||
1703 | </xsl:va riable> | 1717 | </xsl:va riable> | |||
1704 | 1718 | |||||
1705 | <!-- Cel l padding --> | 1719 | <!-- Cel l padding --> | |||
1706 | <!-- --> | 1720 | <!-- --> | |||
1707 | <xsl:var iable name ="VarTable CellPaddin g"> | 1721 | <xsl:var iable name ="VarTable CellPaddin g"> | |||
1708 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | 1722 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | |||
1709 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> | 1723 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> | |||
1710 | </xsl:c all-templa te> | 1724 | </xsl:c all-templa te> | |||
1711 | </xsl:va riable> | 1725 | </xsl:va riable> | |||
1712 | 1726 | |||||
1713 | <!-- Cel l spacing --> | 1727 | <!-- Cel l spacing --> | |||
1714 | <!-- --> | 1728 | <!-- --> | |||
1715 | <xsl:var iable name ="VarTable CellSpacin g"> | 1729 | <xsl:var iable name ="VarTable CellSpacin g"> | |||
1716 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | 1730 | <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> | |||
1717 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> | 1731 | <xsl:w ith-param name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> | |||
1718 | </xsl:c all-templa te> | 1732 | </xsl:c all-templa te> | |||
1719 | </xsl:va riable> | 1733 | </xsl:va riable> | |||
1720 | 1734 | |||||
1721 | <!-- Cap tion Side --> | 1735 | <!-- Cap tion Side --> | |||
1722 | <!-- --> | 1736 | <!-- --> | |||
1723 | <xsl:var iable name ="VarCapti onSide"> | 1737 | <xsl:var iable name ="VarCapti onSide"> | |||
1724 | <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name = 'captio n-side']/@ Value" /> | 1738 | <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name = 'captio n-side']/@ Value" /> | |||
1725 | </xsl:va riable> | 1739 | </xsl:va riable> | |||
1726 | 1740 | |||||
1727 | <!-- Det ermine tab le cell wi dths --> | 1741 | <!-- Det ermine tab le cell wi dths --> | |||
1728 | <!-- --> | 1742 | <!-- --> | |||
1729 | <xsl:var iable name ="VarTable CellWidths AsXML"> | 1743 | <xsl:var iable name ="VarTable CellWidths AsXML"> | |||
1730 | <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" /> | 1744 | <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" /> | |||
1731 | <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> | 1745 | <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> | |||
1732 | 1746 | |||||
1733 | <xsl:if test="$Va rEmitTable Widths"> | 1747 | <xsl:if test="$Va rEmitTable Widths"> | |||
1734 | <xsl:c all-templa te name="T able-CellW idths"> | 1748 | <xsl:c all-templa te name="T able-CellW idths"> | |||
1735 | <xsl: with-param name="Par amTable" s elect="$Pa ramTable" /> | 1749 | <xsl: with-param name="Par amTable" s elect="$Pa ramTable" /> | |||
1736 | </xsl: call-templ ate> | 1750 | </xsl: call-templ ate> | |||
1737 | </xsl:i f> | 1751 | </xsl:i f> | |||
1738 | </xsl:va riable> | 1752 | </xsl:va riable> | |||
1739 | <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> | 1753 | <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> | |||
1740 | 1754 | |||||
1741 | <!-- Emi t <table> element wi th attribu tes. --> | 1755 | <!-- Emi t <table> element wi th attribu tes. --> | |||
1742 | <!-- --> | 1756 | <!-- --> | |||
1743 | <html:ta ble> | 1757 | <html:ta ble> | |||
1744 | 1758 | |||||
1745 | <!-- st yle attrib ute --> | 1759 | <!-- st yle attrib ute --> | |||
1746 | <!-- --> | 1760 | <!-- --> | |||
1747 | <xsl:if test="str ing-length ($VarStyle Attribute) > 0"> | 1761 | <xsl:if test="str ing-length ($VarStyle Attribute) > 0"> | |||
1748 | <xsl:a ttribute n ame="style "> | 1762 | <xsl:a ttribute n ame="style "> | |||
1749 | <xsl: value-of s elect="$Va rStyleAttr ibute" /> | 1763 | <xsl: value-of s elect="$Va rStyleAttr ibute" /> | |||
1750 | </xsl: attribute> | 1764 | </xsl: attribute> | |||
1751 | </xsl:i f> | 1765 | </xsl:i f> | |||
1752 | 1766 | |||||
1753 | <!-- bo rder attri bute --> | 1767 | <!-- bo rder attri bute --> | |||
1754 | <!-- --> | 1768 | <!-- --> | |||
1755 | <xsl:if test="str ing-length ($VarTable Border) &g t; 0"> | 1769 | <xsl:if test="str ing-length ($VarTable Border) &g t; 0"> | |||
1756 | <xsl:a ttribute n ame="borde r"> | 1770 | <xsl:a ttribute n ame="borde r"> | |||
1757 | <xsl: value-of s elect="$Va rTableBord er" /> | 1771 | <xsl: value-of s elect="$Va rTableBord er" /> | |||
1758 | </xsl: attribute> | 1772 | </xsl: attribute> | |||
1759 | </xsl:i f> | 1773 | </xsl:i f> | |||
1760 | 1774 | |||||
1761 | <!-- ce llpadding attribute --> | 1775 | <!-- ce llpadding attribute --> | |||
1762 | <!-- --> | 1776 | <!-- --> | |||
1763 | <xsl:if test="str ing-length ($VarTable CellPaddin g) > 0" > | 1777 | <xsl:if test="str ing-length ($VarTable CellPaddin g) > 0" > | |||
1764 | <xsl:a ttribute n ame="cellp adding"> | 1778 | <xsl:a ttribute n ame="cellp adding"> | |||
1765 | <xsl: value-of s elect="$Va rTableCell Padding" / > | 1779 | <xsl: value-of s elect="$Va rTableCell Padding" / > | |||
1766 | </xsl: attribute> | 1780 | </xsl: attribute> | |||
1767 | </xsl:i f> | 1781 | </xsl:i f> | |||
1768 | 1782 | |||||
1769 | <!-- ce llspacing attribute --> | 1783 | <!-- ce llspacing attribute --> | |||
1770 | <!-- --> | 1784 | <!-- --> | |||
1771 | <xsl:if test="str ing-length ($VarTable CellSpacin g) > 0" > | 1785 | <xsl:if test="str ing-length ($VarTable CellSpacin g) > 0" > | |||
1772 | <xsl:a ttribute n ame="cells pacing"> | 1786 | <xsl:a ttribute n ame="cells pacing"> | |||
1773 | <xsl: value-of s elect="$Va rTableCell Spacing" / > | 1787 | <xsl: value-of s elect="$Va rTableCell Spacing" / > | |||
1774 | </xsl: attribute> | 1788 | </xsl: attribute> | |||
1775 | </xsl:i f> | 1789 | </xsl:i f> | |||
1776 | 1790 | |||||
1777 | <!-- Ap ply captio n template s --> | 1791 | <!-- Ap ply captio n template s --> | |||
1778 | <!-- --> | 1792 | <!-- --> | |||
1779 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> | 1793 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> | |||
1780 | <html: caption> | 1794 | <html: caption> | |||
1781 | 1795 | |||||
1782 | <xsl: if test="s tring-leng th($VarCap tionSide) > 0"> | 1796 | <xsl: if test="s tring-leng th($VarCap tionSide) > 0"> | |||
1783 | <xsl :attribute name="sty le"> | 1797 | <xsl :attribute name="sty le"> | |||
1784 | <xs l:value-of select="c oncat('cap tion-side: ', $VarCa ptionSide) " /> | 1798 | <xs l:value-of select="c oncat('cap tion-side: ', $VarCa ptionSide) " /> | |||
1785 | </xs l:attribut e> | 1799 | </xs l:attribut e> | |||
1786 | </xsl :if> | 1800 | </xsl :if> | |||
1787 | 1801 | |||||
1788 | <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > | 1802 | <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > | |||
1789 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 1803 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
1790 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | 1804 | <xsl :with-para m name="Pa ramCargo" select="$P aramCargo" /> | |||
1791 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 1805 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
1792 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | 1806 | <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> | |||
1793 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 1807 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
1794 | </xsl :apply-tem plates> | 1808 | </xsl :apply-tem plates> | |||
1795 | 1809 | |||||
1796 | </html :caption> | 1810 | </html :caption> | |||
1797 | </xsl:f or-each> | 1811 | </xsl:f or-each> | |||
1798 | 1812 | |||||
1799 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> | 1813 | <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> | |||
1800 | <xsl:v ariable na me="VarSec tion" sele ct="." /> | 1814 | <xsl:v ariable na me="VarSec tion" sele ct="." /> | |||
1801 | 1815 | |||||
1802 | <!-- R esolve sec tion prope rties --> | 1816 | <!-- R esolve sec tion prope rties --> | |||
1803 | <!-- --> | 1817 | <!-- --> | |||
1804 | <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> | 1818 | <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> | |||
1805 | <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> | 1819 | <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> | |||
1806 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | 1820 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | |||
1807 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramTable" /> | 1821 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramTable" /> | |||
1808 | <xsl :with-para m name="Pa ramTable" select="$P aramTable" /> | 1822 | <xsl :with-para m name="Pa ramTable" select="$P aramTable" /> | |||
1809 | <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> | 1823 | <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> | |||
1810 | </xsl :call-temp late> | 1824 | </xsl :call-temp late> | |||
1811 | </xsl: variable> | 1825 | </xsl: variable> | |||
1812 | <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" /> | 1826 | <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" /> | |||
1813 | 1827 | |||||
1814 | <!-- P rocess sec tion rows --> | 1828 | <!-- P rocess sec tion rows --> | |||
1815 | <!-- --> | 1829 | <!-- --> | |||
1816 | <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> | 1830 | <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> | |||
1817 | <xsl: variable n ame="VarTa bleRow" se lect="." / > | 1831 | <xsl: variable n ame="VarTa bleRow" se lect="." / > | |||
1818 | <xsl: variable n ame="VarRo wPosition" select="p osition()" /> | 1832 | <xsl: variable n ame="VarRo wPosition" select="p osition()" /> | |||
1819 | 1833 | |||||
1820 | <html :tr> | 1834 | <html :tr> | |||
1821 | <xsl :for-each select="$V arTableRow /wwdoc:Tab leCell"> | 1835 | <xsl :for-each select="$V arTableRow /wwdoc:Tab leCell"> | |||
1822 | <xs l:variable name="Var TableCell" select=". " /> | 1836 | <xs l:variable name="Var TableCell" select=". " /> | |||
1823 | <xs l:variable name="Var CellPositi on" select ="position ()" /> | 1837 | <xs l:variable name="Var CellPositi on" select ="position ()" /> | |||
1824 | 1838 | |||||
1825 | <!- - Resolve cell prope rties --> | 1839 | <!- - Resolve cell prope rties --> | |||
1826 | <!- - --> | 1840 | <!- - --> | |||
1827 | <xs l:variable name="Var ResolvedCe llProperti esAsXML"> | 1841 | <xs l:variable name="Var ResolvedCe llProperti esAsXML"> | |||
1828 | <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> | 1842 | <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> | |||
1829 | < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> | 1843 | < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> | |||
1830 | < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> | 1844 | < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> | |||
1831 | < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition" /> | 1845 | < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition" /> | |||
1832 | < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> | 1846 | < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> | |||
1833 | </ xsl:call-t emplate> | 1847 | </ xsl:call-t emplate> | |||
1834 | 1848 | |||||
1835 | <! -- Width a ttribute - -> | 1849 | <! -- Width a ttribute - -> | |||
1836 | <! -- - -> | 1850 | <! -- - -> | |||
1837 | <x sl:if test ="$VarRowP osition = 1"> | 1851 | <x sl:if test ="$VarRowP osition = 1"> | |||
1838 | < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]"> | 1852 | < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]"> | |||
1839 | <xsl:varia ble name=" VarTableCe llWidth" s elect="." /> | 1853 | <xsl:varia ble name=" VarTableCe llWidth" s elect="." /> | |||
1840 | 1854 | |||||
1841 | <wwproject :Property Name="widt h" Value=" {$VarTable CellWidth/ @width}" / > | 1855 | <wwproject :Property Name="widt h" Value=" {$VarTable CellWidth/ @width}" / > | |||
1842 | < /xsl:for-e ach> | 1856 | < /xsl:for-e ach> | |||
1843 | </ xsl:if> | 1857 | </ xsl:if> | |||
1844 | </x sl:variabl e> | 1858 | </x sl:variabl e> | |||
1845 | <xs l:variable name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property" /> | 1859 | <xs l:variable name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property" /> | |||
1846 | 1860 | |||||
1847 | <!- - Valid CS S properti es --> | 1861 | <!- - Valid CS S properti es --> | |||
1848 | <!- - --> | 1862 | <!- - --> | |||
1849 | <xs l:variable name="Var TableCellC SSProperti esAsXML"> | 1863 | <xs l:variable name="Var TableCellC SSProperti esAsXML"> | |||
1850 | <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> | 1864 | <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> | |||
1851 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> | 1865 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> | |||
1852 | < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path" /> | 1866 | < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path" /> | |||
1853 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | 1867 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | |||
1854 | </ xsl:call-t emplate> | 1868 | </ xsl:call-t emplate> | |||
1855 | </x sl:variabl e> | 1869 | </x sl:variabl e> | |||
1856 | <xs l:variable name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property" /> | 1870 | <xs l:variable name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property" /> | |||
1857 | 1871 | |||||
1858 | <!- - Inline C SS propert ies --> | 1872 | <!- - Inline C SS propert ies --> | |||
1859 | <!- - --> | 1873 | <!- - --> | |||
1860 | <xs l:variable name="Var InlineCSSP roperties" > | 1874 | <xs l:variable name="Var InlineCSSP roperties" > | |||
1861 | <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> | 1875 | <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> | |||
1862 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> | 1876 | < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> | |||
1863 | </ xsl:call-t emplate> | 1877 | </ xsl:call-t emplate> | |||
1864 | </x sl:variabl e> | 1878 | </x sl:variabl e> | |||
1865 | 1879 | |||||
1866 | <!- - Calculat e row span --> | 1880 | <!- - Calculat e row span --> | |||
1867 | <!- - --> | 1881 | <!- - --> | |||
1868 | <xs l:variable name="Var RowSpan"> | 1882 | <xs l:variable name="Var RowSpan"> | |||
1869 | <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name = 'row-spa n']/@value " /> | 1883 | <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name = 'row-spa n']/@value " /> | |||
1870 | <x sl:choose> | 1884 | <x sl:choose> | |||
1871 | < xsl:when t est="strin g-length($ VarRowSpan Hint) > 0"> | 1885 | < xsl:when t est="strin g-length($ VarRowSpan Hint) > 0"> | |||
1872 | <xsl:value -of select ="$VarRowS panHint" / > | 1886 | <xsl:value -of select ="$VarRowS panHint" / > | |||
1873 | < /xsl:when> | 1887 | < /xsl:when> | |||
1874 | < xsl:otherw ise> | 1888 | < xsl:otherw ise> | |||
1875 | <xsl:value -of select ="'0'" /> | 1889 | <xsl:value -of select ="'0'" /> | |||
1876 | < /xsl:other wise> | 1890 | < /xsl:other wise> | |||
1877 | </ xsl:choose > | 1891 | </ xsl:choose > | |||
1878 | </x sl:variabl e> | 1892 | </x sl:variabl e> | |||
1879 | 1893 | |||||
1880 | <!- - Calculat e column s pan --> | 1894 | <!- - Calculat e column s pan --> | |||
1881 | <!- - --> | 1895 | <!- - --> | |||
1882 | <xs l:variable name="Var ColumnSpan "> | 1896 | <xs l:variable name="Var ColumnSpan "> | |||
1883 | <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" /> | 1897 | <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" /> | |||
1884 | <x sl:choose> | 1898 | <x sl:choose> | |||
1885 | < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> | 1899 | < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> | |||
1886 | <xsl:value -of select ="$VarColu mnSpanHint " /> | 1900 | <xsl:value -of select ="$VarColu mnSpanHint " /> | |||
1887 | < /xsl:when> | 1901 | < /xsl:when> | |||
1888 | < xsl:otherw ise> | 1902 | < xsl:otherw ise> | |||
1889 | <xsl:value -of select ="'0'" /> | 1903 | <xsl:value -of select ="'0'" /> | |||
1890 | < /xsl:other wise> | 1904 | < /xsl:other wise> | |||
1891 | </ xsl:choose > | 1905 | </ xsl:choose > | |||
1892 | </x sl:variabl e> | 1906 | </x sl:variabl e> | |||
1893 | 1907 | |||||
1894 | <!- - Calculat e vertical align --> | 1908 | <!- - Calculat e vertical align --> | |||
1895 | <!- - JavaHelp requires HTML attri bute --> | 1909 | <!- - JavaHelp requires HTML attri bute --> | |||
1896 | <!- - --> | 1910 | <!- - --> | |||
1897 | <xs l:variable name="Var VerticalAl ign"> | 1911 | <xs l:variable name="Var VerticalAl ign"> | |||
1898 | <x sl:variabl e name="Va rVerticalA lignHint" select="$V arResolved CellProper ties[@Name = 'vertic al-align'] /@Value" / > | 1912 | <x sl:variabl e name="Va rVerticalA lignHint" select="$V arResolved CellProper ties[@Name = 'vertic al-align'] /@Value" / > | |||
1899 | <x sl:choose> | 1913 | <x sl:choose> | |||
1900 | < xsl:when t est="strin g-length($ VarVertica lAlignHint ) > 0"> | 1914 | < xsl:when t est="strin g-length($ VarVertica lAlignHint ) > 0"> | |||
1901 | <xsl:value -of select ="$VarVert icalAlignH int" /> | 1915 | <xsl:value -of select ="$VarVert icalAlignH int" /> | |||
1902 | < /xsl:when> | 1916 | < /xsl:when> | |||
1903 | < xsl:otherw ise> | 1917 | < xsl:otherw ise> | |||
1904 | <xsl:value -of select ="''" /> | 1918 | <xsl:value -of select ="''" /> | |||
1905 | < /xsl:other wise> | 1919 | < /xsl:other wise> | |||
1906 | </ xsl:choose > | 1920 | </ xsl:choose > | |||
1907 | </x sl:variabl e> | 1921 | </x sl:variabl e> | |||
1908 | 1922 | |||||
1909 | <!- - Emit cel l --> | 1923 | <!- - Emit cel l --> | |||
1910 | <!- - --> | 1924 | <!- - --> | |||
1911 | <ht ml:td> | 1925 | <ht ml:td> | |||
1912 | <! -- Style a ttribute - -> | 1926 | <! -- Style a ttribute - -> | |||
1913 | <! -- - -> | 1927 | <! -- - -> | |||
1914 | <x sl:if test ="string-l ength($Var InlineCSSP roperties) > 0"> | 1928 | <x sl:if test ="string-l ength($Var InlineCSSP roperties) > 0"> | |||
1915 | < xsl:attrib ute name=" style"> | 1929 | < xsl:attrib ute name=" style"> | |||
1916 | <xsl:value -of select ="$VarInli neCSSPrope rties" /> | 1930 | <xsl:value -of select ="$VarInli neCSSPrope rties" /> | |||
1917 | < /xsl:attri bute> | 1931 | < /xsl:attri bute> | |||
1918 | </ xsl:if> | 1932 | </ xsl:if> | |||
1919 | 1933 | |||||
1920 | <! -- vertica l align -- > | 1934 | <! -- vertica l align -- > | |||
1921 | <! -- -- > | 1935 | <! -- -- > | |||
1922 | <x sl:if test ="string-l ength($Var VerticalAl ign) > 0"> | 1936 | <x sl:if test ="string-l ength($Var VerticalAl ign) > 0"> | |||
1923 | < xsl:attrib ute name=" valign"> | 1937 | < xsl:attrib ute name=" valign"> | |||
1924 | <xsl:value -of select ="$VarVert icalAlign" /> | 1938 | <xsl:value -of select ="$VarVert icalAlign" /> | |||
1925 | < /xsl:attri bute> | 1939 | < /xsl:attri bute> | |||
1926 | </ xsl:if> | 1940 | </ xsl:if> | |||
1927 | 1941 | |||||
1928 | <! -- Row spa n attribut e --> | 1942 | <! -- Row spa n attribut e --> | |||
1929 | <! -- --> | 1943 | <! -- --> | |||
1930 | <x sl:if test ="number($ VarRowSpan ) > 0"> | 1944 | <x sl:if test ="number($ VarRowSpan ) > 0"> | |||
1931 | < xsl:attrib ute name=" rowspan"> | 1945 | < xsl:attrib ute name=" rowspan"> | |||
1932 | <xsl:value -of select ="$VarRowS pan" /> | 1946 | <xsl:value -of select ="$VarRowS pan" /> | |||
1933 | < /xsl:attri bute> | 1947 | < /xsl:attri bute> | |||
1934 | </ xsl:if> | 1948 | </ xsl:if> | |||
1935 | 1949 | |||||
1936 | <! -- Column span attri bute --> | 1950 | <! -- Column span attri bute --> | |||
1937 | <! -- --> | 1951 | <! -- --> | |||
1938 | <x sl:if test ="number($ VarColumnS pan) > 0"> | 1952 | <x sl:if test ="number($ VarColumnS pan) > 0"> | |||
1939 | < xsl:attrib ute name=" colspan"> | 1953 | < xsl:attrib ute name=" colspan"> | |||
1940 | <xsl:value -of select ="$VarColu mnSpan" /> | 1954 | <xsl:value -of select ="$VarColu mnSpan" /> | |||
1941 | < /xsl:attri bute> | 1955 | < /xsl:attri bute> | |||
1942 | </ xsl:if> | 1956 | </ xsl:if> | |||
1943 | 1957 | |||||
1944 | <! -- Recurse --> | 1958 | <! -- Recurse --> | |||
1945 | <! -- --> | 1959 | <! -- --> | |||
1946 | <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> | 1960 | <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> | |||
1947 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | 1961 | < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> | |||
1948 | < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> | 1962 | < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> | |||
1949 | < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> | 1963 | < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> | |||
1950 | < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> | 1964 | < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> | |||
1951 | < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> | 1965 | < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> | |||
1952 | </ xsl:apply- templates> | 1966 | </ xsl:apply- templates> | |||
1953 | </h tml:td> | 1967 | </h tml:td> | |||
1954 | </xs l:for-each > | 1968 | </xs l:for-each > | |||
1955 | 1969 | |||||
1956 | </htm l:tr> | 1970 | </htm l:tr> | |||
1957 | </xsl: for-each> | 1971 | </xsl: for-each> | |||
1958 | </xsl:f or-each> | 1972 | </xsl:f or-each> | |||
1959 | 1973 | |||||
1960 | </html:t able> | 1974 | </html:t able> | |||
1961 | 1975 | |||||
1962 | <!-- Tab le Footnot es --> | 1976 | <!-- Tab le Footnot es --> | |||
1963 | <!-- --> | 1977 | <!-- --> | |||
1964 | <xsl:cal l-template name="Con tent-Notes "> | 1978 | <xsl:cal l-template name="Con tent-Notes "> | |||
1965 | <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> | 1979 | <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> | |||
1966 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 1980 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
1967 | <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> | 1981 | <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> | |||
1968 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 1982 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
1969 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | 1983 | <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> | |||
1970 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 1984 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
1971 | </xsl:ca ll-templat e> | 1985 | </xsl:ca ll-templat e> | |||
1972 | </xsl:tem plate> | 1986 | </xsl:tem plate> | |||
1973 | 1987 | |||||
1974 | 1988 | |||||
1975 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> | 1989 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> | |||
1976 | <xsl:par am name="P aramSplits " /> | 1990 | <xsl:par am name="P aramSplits " /> | |||
1977 | <xsl:par am name="P aramCargo" /> | 1991 | <xsl:par am name="P aramCargo" /> | |||
1978 | <xsl:par am name="P aramLinks" /> | 1992 | <xsl:par am name="P aramLinks" /> | |||
1979 | <xsl:par am name="P aramTOCDat a" /> | 1993 | <xsl:par am name="P aramTOCDat a" /> | |||
1980 | <xsl:par am name="P aramSplit" /> | 1994 | <xsl:par am name="P aramSplit" /> | |||
1981 | 1995 | |||||
1982 | <!-- Abo rted? --> | 1996 | <!-- Abo rted? --> | |||
1983 | <!-- --> | 1997 | <!-- --> | |||
1984 | <xsl:if test="not( wwprogress :Abort())" > | 1998 | <xsl:if test="not( wwprogress :Abort())" > | |||
1985 | <xsl:ca ll-templat e name="Fr ame"> | 1999 | <xsl:ca ll-templat e name="Fr ame"> | |||
1986 | <xsl:w ith-param name="Para mFrame" se lect="." / > | 2000 | <xsl:w ith-param name="Para mFrame" se lect="." / > | |||
1987 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 2001 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
1988 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 2002 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
1989 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 2003 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
1990 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 2004 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
1991 | </xsl:c all-templa te> | 2005 | </xsl:c all-templa te> | |||
1992 | </xsl:if > | 2006 | </xsl:if > | |||
1993 | </xsl:tem plate> | 2007 | </xsl:tem plate> | |||
1994 | 2008 | |||||
1995 | 2009 | |||||
1996 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> | 2010 | <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> | |||
1997 | <xsl:par am name="P aramSplits " /> | 2011 | <xsl:par am name="P aramSplits " /> | |||
1998 | <xsl:par am name="P aramCargo" /> | 2012 | <xsl:par am name="P aramCargo" /> | |||
1999 | <xsl:par am name="P aramLinks" /> | 2013 | <xsl:par am name="P aramLinks" /> | |||
2000 | <xsl:par am name="P aramSplit" /> | 2014 | <xsl:par am name="P aramSplit" /> | |||
2001 | 2015 | |||||
2002 | <xsl:cal l-template name="Fra me"> | 2016 | <xsl:cal l-template name="Fra me"> | |||
2003 | <xsl:wi th-param n ame="Param Frame" sel ect="." /> | 2017 | <xsl:wi th-param n ame="Param Frame" sel ect="." /> | |||
2004 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 2018 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
2005 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | 2019 | <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> | |||
2006 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 2020 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
2007 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 2021 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
2008 | </xsl:ca ll-templat e> | 2022 | </xsl:ca ll-templat e> | |||
2009 | </xsl:tem plate> | 2023 | </xsl:tem plate> | |||
2010 | 2024 | |||||
2011 | 2025 | |||||
2012 | <xsl:temp late name= "Frame"> | 2026 | <xsl:temp late name= "Frame"> | |||
2013 | <xsl:par am name="P aramFrame" /> | 2027 | <xsl:par am name="P aramFrame" /> | |||
2014 | <xsl:par am name="P aramSplits " /> | 2028 | <xsl:par am name="P aramSplits " /> | |||
2015 | <xsl:par am name="P aramCargo" /> | 2029 | <xsl:par am name="P aramCargo" /> | |||
2016 | <xsl:par am name="P aramLinks" /> | 2030 | <xsl:par am name="P aramLinks" /> | |||
2017 | <xsl:par am name="P aramSplit" /> | 2031 | <xsl:par am name="P aramSplit" /> | |||
2018 | 2032 | |||||
2019 | <!-- Get splits fr ame --> | 2033 | <!-- Get splits fr ame --> | |||
2020 | <!-- --> | 2034 | <!-- --> | |||
2021 | <xsl:for -each sele ct="$Param Splits[1]" > | 2035 | <xsl:for -each sele ct="$Param Splits[1]" > | |||
2022 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | 2036 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | |||
2023 | 2037 | |||||
2024 | <!-- Fr ame known? --> | 2038 | <!-- Fr ame known? --> | |||
2025 | <!-- --> | 2039 | <!-- --> | |||
2026 | <xsl:if test="cou nt($VarSpl itsFrame) = 1"> | 2040 | <xsl:if test="cou nt($VarSpl itsFrame) = 1"> | |||
2027 | <!-- T humbnail f ile exists for this frame? --> | 2041 | <!-- T humbnail f ile exists for this frame? --> | |||
2028 | <!-- --> | 2042 | <!-- --> | |||
2029 | <xsl:f or-each se lect="$Glo balFiles[1 ]"> | 2043 | <xsl:f or-each se lect="$Glo balFiles[1 ]"> | |||
2030 | <xsl: variable n ame="VarTh umbnailExi sts" selec t="count(k ey('wwfile s-files-by -path', $V arSplitsFr ame/wwspli ts:Thumbna il/@path)[ 1]) > 0 " /> | 2044 | <xsl: variable n ame="VarTh umbnailExi sts" selec t="count(k ey('wwfile s-files-by -path', $V arSplitsFr ame/wwspli ts:Thumbna il/@path)[ 1]) > 0 " /> | |||
2031 | 2045 | |||||
2032 | <xsl: choose> | 2046 | <xsl: choose> | |||
2033 | <xsl :when test ="$VarThum bnailExist s"> | 2047 | <xsl :when test ="$VarThum bnailExist s"> | |||
2034 | <xs l:call-tem plate name ="Frame-Th umbnail"> | 2048 | <xs l:call-tem plate name ="Frame-Th umbnail"> | |||
2035 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | 2049 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | |||
2036 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 2050 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
2037 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 2051 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
2038 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 2052 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
2039 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 2053 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
2040 | </x sl:call-te mplate> | 2054 | </x sl:call-te mplate> | |||
2041 | </xs l:when> | 2055 | </xs l:when> | |||
2042 | 2056 | |||||
2043 | <xsl :otherwise > | 2057 | <xsl :otherwise > | |||
2044 | <xs l:call-tem plate name ="Frame-Fu llSize"> | 2058 | <xs l:call-tem plate name ="Frame-Fu llSize"> | |||
2045 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | 2059 | <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> | |||
2046 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | 2060 | <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> | |||
2047 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | 2061 | <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> | |||
2048 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | 2062 | <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> | |||
2049 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | 2063 | <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> | |||
2050 | </x sl:call-te mplate> | 2064 | </x sl:call-te mplate> | |||
2051 | </xs l:otherwis e> | 2065 | </xs l:otherwis e> | |||
2052 | </xsl :choose> | 2066 | </xsl :choose> | |||
2053 | </xsl: for-each> | 2067 | </xsl: for-each> | |||
2054 | </xsl:i f> | 2068 | </xsl:i f> | |||
2055 | </xsl:fo r-each> | 2069 | </xsl:fo r-each> | |||
2056 | </xsl:tem plate> | 2070 | </xsl:tem plate> | |||
2057 | 2071 | |||||
2058 | 2072 | |||||
2059 | <xsl:temp late name= "Frame-Thu mbnail"> | 2073 | <xsl:temp late name= "Frame-Thu mbnail"> | |||
2060 | <xsl:par am name="P aramFrame" /> | 2074 | <xsl:par am name="P aramFrame" /> | |||
2061 | <xsl:par am name="P aramSplits " /> | 2075 | <xsl:par am name="P aramSplits " /> | |||
2062 | <xsl:par am name="P aramCargo" /> | 2076 | <xsl:par am name="P aramCargo" /> | |||
2063 | <xsl:par am name="P aramLinks" /> | 2077 | <xsl:par am name="P aramLinks" /> | |||
2064 | <xsl:par am name="P aramSplit" /> | 2078 | <xsl:par am name="P aramSplit" /> | |||
2065 | 2079 | |||||
2066 | <xsl:var iable name ="VarBehav iorFrame" select="$P aramCargo/ wwbehavior s:Behavior s//wwbehav iors:Frame [@id = $Pa ramFrame/@ id][1]" /> | 2080 | <xsl:var iable name ="VarBehav iorFrame" select="$P aramCargo/ wwbehavior s:Behavior s//wwbehav iors:Frame [@id = $Pa ramFrame/@ id][1]" /> | |||
2067 | 2081 | |||||
2068 | <!-- Not es --> | 2082 | <!-- Not es --> | |||
2069 | <!-- --> | 2083 | <!-- --> | |||
2070 | <xsl:var iable name ="VarNotes " select=" $ParamFram e//wwdoc:N ote" /> | 2084 | <xsl:var iable name ="VarNotes " select=" $ParamFram e//wwdoc:N ote" /> | |||
2071 | 2085 | |||||
2072 | <!-- Not e numberin g --> | 2086 | <!-- Not e numberin g --> | |||
2073 | <!-- --> | 2087 | <!-- --> | |||
2074 | <xsl:var iable name ="VarNoteN umberingAs XML"> | 2088 | <xsl:var iable name ="VarNoteN umberingAs XML"> | |||
2075 | <xsl:ca ll-templat e name="No tes-Number "> | 2089 | <xsl:ca ll-templat e name="No tes-Number "> | |||
2076 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | 2090 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | |||
2077 | </xsl:c all-templa te> | 2091 | </xsl:c all-templa te> | |||
2078 | </xsl:va riable> | 2092 | </xsl:va riable> | |||
2079 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | 2093 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | |||
2080 | 2094 | |||||
2081 | <!-- Fra me cargo - -> | 2095 | <!-- Fra me cargo - -> | |||
2082 | <!-- - -> | 2096 | <!-- - -> | |||
2083 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | 2097 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | |||
2084 | 2098 | |||||
2085 | <!-- Get image pat h --> | 2099 | <!-- Get image pat h --> | |||
2086 | <!-- --> | 2100 | <!-- --> | |||
2087 | <xsl:for -each sele ct="$Param Splits[1]" > | 2101 | <xsl:for -each sele ct="$Param Splits[1]" > | |||
2088 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | 2102 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | |||
2089 | 2103 | |||||
2090 | <!-- Gr aphic Rule --> | 2104 | <!-- Gr aphic Rule --> | |||
2091 | <!-- --> | 2105 | <!-- --> | |||
2092 | <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Graphic ', $VarSpl itsFrame/@ stylename, $VarSplit sFrame/@do cumentID, $VarSplits Frame/@id) " /> | 2106 | <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Graphic ', $VarSpl itsFrame/@ stylename, $VarSplit sFrame/@do cumentID, $VarSplits Frame/@id) " /> | |||
2093 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " /> | 2107 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " /> | |||
2094 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | 2108 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | |||
2095 | <xsl:if test="$Va rGenerateO utput"> | 2109 | <xsl:if test="$Va rGenerateO utput"> | |||
2096 | <!-- R esolve pro ject prope rties --> | 2110 | <!-- R esolve pro ject prope rties --> | |||
2097 | <!-- --> | 2111 | <!-- --> | |||
2098 | <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> | 2112 | <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> | |||
2099 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | 2113 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | |||
2100 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramFrame" /> | 2114 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramFrame" /> | |||
2101 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | 2115 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | |||
2102 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamFr ame/@style name" /> | 2116 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamFr ame/@style name" /> | |||
2103 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Graphic '" /> | 2117 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Graphic '" /> | |||
2104 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mFrame" /> | 2118 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mFrame" /> | |||
2105 | </xsl :call-temp late> | 2119 | </xsl :call-temp late> | |||
2106 | </xsl: variable> | 2120 | </xsl: variable> | |||
2107 | <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > | 2121 | <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > | |||
2108 | 2122 | |||||
2109 | <!-- C SS propert ies --> | 2123 | <!-- C SS propert ies --> | |||
2110 | <!-- --> | 2124 | <!-- --> | |||
2111 | <xsl:v ariable na me="VarCSS Properties AsXML"> | 2125 | <xsl:v ariable na me="VarCSS Properties AsXML"> | |||
2112 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | 2126 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | |||
2113 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]" /> | 2127 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]" /> | |||
2114 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | 2128 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | |||
2115 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2129 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2116 | </xsl :call-temp late> | 2130 | </xsl :call-temp late> | |||
2117 | </xsl: variable> | 2131 | </xsl: variable> | |||
2118 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | 2132 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | |||
2119 | <xsl:v ariable na me="VarInl ineCSSProp erties"> | 2133 | <xsl:v ariable na me="VarInl ineCSSProp erties"> | |||
2120 | <xsl: call-templ ate name=" CSS-Inline Properties "> | 2134 | <xsl: call-templ ate name=" CSS-Inline Properties "> | |||
2121 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) > 0] " /> | 2135 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) > 0] " /> | |||
2122 | </xsl :call-temp late> | 2136 | </xsl :call-temp late> | |||
2123 | </xsl: variable> | 2137 | </xsl: variable> | |||
2124 | 2138 | |||||
2125 | <!-- W idth/Heigh t --> | 2139 | <!-- W idth/Heigh t --> | |||
2126 | <!-- --> | 2140 | <!-- --> | |||
2127 | <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ wwsplits:T humbnail/@ path)" /> | 2141 | <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ wwsplits:T humbnail/@ path)" /> | |||
2128 | <xsl:v ariable na me="VarWid th" select ="number($ VarImageIn fo/@width) " /> | 2142 | <xsl:v ariable na me="VarWid th" select ="number($ VarImageIn fo/@width) " /> | |||
2129 | <xsl:v ariable na me="VarHei ght" selec t="number( $VarImageI nfo/@heigh t)" /> | 2143 | <xsl:v ariable na me="VarHei ght" selec t="number( $VarImageI nfo/@heigh t)" /> | |||
2130 | 2144 | |||||
2131 | <!-- S rc --> | 2145 | <!-- S rc --> | |||
2132 | <!-- --> | 2146 | <!-- --> | |||
2133 | <xsl:v ariable na me="VarSrc " select=" wwuri:Unes cape(wwuri :GetRelati veTo($VarS plitsFrame /wwsplits: Thumbnail/ @path, $Pa ramSplit/@ path))" /> | 2147 | <xsl:v ariable na me="VarSrc " select=" wwuri:Unes cape(wwuri :GetRelati veTo($VarS plitsFrame /wwsplits: Thumbnail/ @path, $Pa ramSplit/@ path))" /> | |||
2134 | 2148 | |||||
2135 | <!-- D efine Use Map --> | 2149 | <!-- D efine Use Map --> | |||
2136 | <!-- --> | 2150 | <!-- --> | |||
2137 | <xsl:v ariable na me="VarUse Map"> | 2151 | <xsl:v ariable na me="VarUse Map"> | |||
2138 | <xsl: text>#</xs l:text> | 2152 | <xsl: text>#</xs l:text> | |||
2139 | <xsl: value-of s elect="$Va rSplitsFra me/@docume ntID" /> | 2153 | <xsl: value-of s elect="$Va rSplitsFra me/@docume ntID" /> | |||
2140 | <xsl: text>_</xs l:text> | 2154 | <xsl: text>_</xs l:text> | |||
2141 | <xsl: value-of s elect="$Va rSplitsFra me/@id" /> | 2155 | <xsl: value-of s elect="$Va rSplitsFra me/@id" /> | |||
2142 | </xsl: variable> | 2156 | </xsl: variable> | |||
2143 | 2157 | |||||
2144 | <!-- A lt Text -- > | 2158 | <!-- A lt Text -- > | |||
2145 | <!-- -- > | 2159 | <!-- -- > | |||
2146 | <xsl:v ariable na me="VarAlt Text"> | 2160 | <xsl:v ariable na me="VarAlt Text"> | |||
2147 | <xsl: call-templ ate name=" Images-Alt Text"> | 2161 | <xsl: call-templ ate name=" Images-Alt Text"> | |||
2148 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | 2162 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | |||
2149 | <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" /> | 2163 | <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" /> | |||
2150 | </xsl :call-temp late> | 2164 | </xsl :call-temp late> | |||
2151 | </xsl: variable> | 2165 | </xsl: variable> | |||
2152 | 2166 | |||||
2153 | <!-- T ag --> | 2167 | <!-- T ag --> | |||
2154 | <!-- --> | 2168 | <!-- --> | |||
2155 | <xsl:v ariable na me="VarTag Property" select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name = 'tag']/@ Value" /> | 2169 | <xsl:v ariable na me="VarTag Property" select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name = 'tag']/@ Value" /> | |||
2156 | <xsl:v ariable na me="VarTag "> | 2170 | <xsl:v ariable na me="VarTag "> | |||
2157 | <xsl: choose> | 2171 | <xsl: choose> | |||
2158 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | 2172 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | |||
2159 | <xs l:value-of select="$ VarTagProp erty" /> | 2173 | <xs l:value-of select="$ VarTagProp erty" /> | |||
2160 | </xs l:when> | 2174 | </xs l:when> | |||
2161 | 2175 | |||||
2162 | <xsl :otherwise > | 2176 | <xsl :otherwise > | |||
2163 | <xs l:value-of select="' img'" /> | 2177 | <xs l:value-of select="' img'" /> | |||
2164 | </xs l:otherwis e> | 2178 | </xs l:otherwis e> | |||
2165 | </xsl :choose> | 2179 | </xsl :choose> | |||
2166 | </xsl: variable> | 2180 | </xsl: variable> | |||
2167 | 2181 | |||||
2168 | <!-- G raphic ele ment --> | 2182 | <!-- G raphic ele ment --> | |||
2169 | <!-- --> | 2183 | <!-- --> | |||
2170 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | 2184 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | |||
2171 | <!-- ID attribu te --> | |||||
2172 | <!-- --> | |||||
2173 | <xsl: attribute name="id"> | |||||
2174 | <xsl :value-of select="$P aramFrame/ @id" /> | |||||
2175 | </xsl :attribute > | |||||
2176 | ||||||
2177 | <!-- Src attrib ute --> | 2185 | <!-- Src attrib ute --> | |||
2178 | <!-- --> | 2186 | <!-- --> | |||
2179 | <xsl: attribute name="src" > | 2187 | <xsl: attribute name="src" > | |||
2180 | <xsl :value-of select="$V arSrc" /> | 2188 | <xsl :value-of select="$V arSrc" /> | |||
2181 | </xsl :attribute > | 2189 | </xsl :attribute > | |||
2182 | 2190 | |||||
2183 | <!-- Width attr ibute --> | 2191 | <!-- Width attr ibute --> | |||
2184 | <!-- --> | 2192 | <!-- --> | |||
2185 | <xsl: if test="$ VarWidth & gt; 0"> | 2193 | <xsl: if test="$ VarWidth & gt; 0"> | |||
2186 | <xsl :attribute name="wid th"> | 2194 | <xsl :attribute name="wid th"> | |||
2187 | <xs l:value-of select="$ VarWidth"/ > | 2195 | <xs l:value-of select="$ VarWidth"/ > | |||
2188 | </xs l:attribut e> | 2196 | </xs l:attribut e> | |||
2189 | </xsl :if> | 2197 | </xsl :if> | |||
2190 | 2198 | |||||
2191 | <!-- Height att ribute --> | 2199 | <!-- Height att ribute --> | |||
2192 | <!-- --> | 2200 | <!-- --> | |||
2193 | <xsl: if test="$ VarHeight > 0"> | 2201 | <xsl: if test="$ VarHeight > 0"> | |||
2194 | <xsl :attribute name="hei ght"> | 2202 | <xsl :attribute name="hei ght"> | |||
2195 | <xs l:value-of select="$ VarHeight" /> | 2203 | <xs l:value-of select="$ VarHeight" /> | |||
2196 | </xs l:attribut e> | 2204 | </xs l:attribut e> | |||
2197 | </xsl :if> | 2205 | </xsl :if> | |||
2198 | 2206 | |||||
2199 | <!-- Style attr ibute --> | 2207 | <!-- Style attr ibute --> | |||
2200 | <!-- --> | 2208 | <!-- --> | |||
2201 | <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0"> | 2209 | <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0"> | |||
2202 | <xsl :attribute name="sty le"> | 2210 | <xsl :attribute name="sty le"> | |||
2203 | <xs l:value-of select="$ VarInlineC SSProperti es" /> | 2211 | <xs l:value-of select="$ VarInlineC SSProperti es" /> | |||
2204 | </xs l:attribut e> | 2212 | </xs l:attribut e> | |||
2205 | </xsl :if> | 2213 | </xsl :if> | |||
2206 | 2214 | |||||
2207 | <!-- Alt attrib ute --> | 2215 | <!-- Alt attrib ute --> | |||
2208 | <!-- --> | 2216 | <!-- --> | |||
2209 | <xsl: if test="s tring-leng th($VarAlt Text) > 0"> | |||||
2210 | <xsl :attribute name="alt "> | 2217 | <xsl: attribute name="alt" > | |||
2211 | <xs l:value-of select="$ VarAltText " /> | 2218 | <xsl :value-of select="$V arAltText" /> | |||
2212 | </xs l:attribut e> | 2219 | </xsl :attribute > | |||
2213 | </xsl :if> | |||||
2214 | 2220 | |||||
2215 | <!-- Usemap att ribute --> | 2221 | <!-- Usemap att ribute --> | |||
2216 | <!-- --> | 2222 | <!-- --> | |||
2217 | <xsl: attribute name="usem ap"> | 2223 | <xsl: attribute name="usem ap"> | |||
2218 | <xsl :value-of select="$V arUseMap" /> | 2224 | <xsl :value-of select="$V arUseMap" /> | |||
2219 | </xsl :attribute > | 2225 | </xsl :attribute > | |||
2220 | <xsl: attribute name="bord er"> | 2226 | <xsl: attribute name="bord er"> | |||
2221 | <xsl :value-of select="'0 '" /> | 2227 | <xsl :value-of select="'0 '" /> | |||
2222 | </xsl :attribute > | 2228 | </xsl :attribute > | |||
2223 | </xsl: element> | 2229 | </xsl: element> | |||
2224 | 2230 | |||||
2225 | <!-- I mage map - -> | 2231 | <!-- I mage map - -> | |||
2226 | <!-- - -> | 2232 | <!-- - -> | |||
2227 | <html: map name=" {concat($V arSplitsFr ame/@docum entID, '_' , $VarSpli tsFrame/@i d)}"> | 2233 | <html: map name=" {concat($V arSplitsFr ame/@docum entID, '_' , $VarSpli tsFrame/@i d)}"> | |||
2228 | <html :area coor ds="{conca t('0,0,', $VarWidth, ',', $Var Height)}" shape="rec t" href="{ wwuri:Unes cape(wwuri :GetRelati veTo($VarS plitsFrame /wwsplits: Wrapper/@p ath, $Para mSplit/@pa th))}"> | 2234 | <html :area coor ds="{conca t('0,0,', $VarWidth, ',', $Var Height)}" shape="rec t" href="{ wwuri:Unes cape(wwuri :GetRelati veTo($VarS plitsFrame /wwsplits: Wrapper/@p ath, $Para mSplit/@pa th))}"> | |||
2229 | <xsl :if test=" string-len gth($VarAl tText) > ; 0"> | |||||
2230 | <xs l:attribut e name="al t"> | 2235 | <xsl :attribute name="alt "> | |||
2231 | <x sl:value-o f select=" $VarAltTex t" /> | 2236 | <xs l:value-of select="$ VarAltText " /> | |||
2232 | </x sl:attribu te> | 2237 | </xs l:attribut e> | |||
2233 | </xs l:if> | |||||
2234 | </htm l:area> | 2238 | </htm l:area> | |||
2235 | </html :map> | 2239 | </html :map> | |||
2236 | </xsl:i f> | 2240 | </xsl:i f> | |||
2237 | </xsl:fo r-each> | 2241 | </xsl:fo r-each> | |||
2238 | </xsl:tem plate> | 2242 | </xsl:tem plate> | |||
2239 | 2243 | |||||
2240 | 2244 | |||||
2241 | <xsl:temp late name= "Frame-Ful lSize"> | 2245 | <xsl:temp late name= "Frame-Ful lSize"> | |||
2242 | <xsl:par am name="P aramFrame" /> | 2246 | <xsl:par am name="P aramFrame" /> | |||
2243 | <xsl:par am name="P aramSplits " /> | 2247 | <xsl:par am name="P aramSplits " /> | |||
2244 | <xsl:par am name="P aramCargo" /> | 2248 | <xsl:par am name="P aramCargo" /> | |||
2245 | <xsl:par am name="P aramLinks" /> | 2249 | <xsl:par am name="P aramLinks" /> | |||
2246 | <xsl:par am name="P aramSplit" /> | 2250 | <xsl:par am name="P aramSplit" /> | |||
2247 | 2251 | |||||
2248 | <xsl:var iable name ="VarBehav iorFrame" select="$P aramCargo/ wwbehavior s:Behavior s//wwbehav iors:Frame [@id = $Pa ramFrame/@ id][1]" /> | 2252 | <xsl:var iable name ="VarBehav iorFrame" select="$P aramCargo/ wwbehavior s:Behavior s//wwbehav iors:Frame [@id = $Pa ramFrame/@ id][1]" /> | |||
2249 | 2253 | |||||
2250 | <!-- Not es --> | 2254 | <!-- Not es --> | |||
2251 | <!-- --> | 2255 | <!-- --> | |||
2252 | <xsl:var iable name ="VarNotes " select=" $ParamFram e//wwdoc:N ote" /> | 2256 | <xsl:var iable name ="VarNotes " select=" $ParamFram e//wwdoc:N ote" /> | |||
2253 | 2257 | |||||
2254 | <!-- Not e numberin g --> | 2258 | <!-- Not e numberin g --> | |||
2255 | <!-- --> | 2259 | <!-- --> | |||
2256 | <xsl:var iable name ="VarNoteN umberingAs XML"> | 2260 | <xsl:var iable name ="VarNoteN umberingAs XML"> | |||
2257 | <xsl:ca ll-templat e name="No tes-Number "> | 2261 | <xsl:ca ll-templat e name="No tes-Number "> | |||
2258 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | 2262 | <xsl:w ith-param name="Para mNotes" se lect="$Var Notes" /> | |||
2259 | </xsl:c all-templa te> | 2263 | </xsl:c all-templa te> | |||
2260 | </xsl:va riable> | 2264 | </xsl:va riable> | |||
2261 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | 2265 | <xsl:var iable name ="VarNoteN umbering" select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> | |||
2262 | 2266 | |||||
2263 | <!-- Fra me cargo - -> | 2267 | <!-- Fra me cargo - -> | |||
2264 | <!-- - -> | 2268 | <!-- - -> | |||
2265 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | 2269 | <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() != 'NoteNumbe ring']/.. | $VarNote Numbering" /> | |||
2266 | 2270 | |||||
2267 | <!-- Get image pat h --> | 2271 | <!-- Get image pat h --> | |||
2268 | <!-- --> | 2272 | <!-- --> | |||
2269 | <xsl:for -each sele ct="$Param Splits[1]" > | 2273 | <xsl:for -each sele ct="$Param Splits[1]" > | |||
2270 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | 2274 | <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> | |||
2271 | 2275 | |||||
2272 | <!-- Gr aphic Rule --> | 2276 | <!-- Gr aphic Rule --> | |||
2273 | <!-- --> | 2277 | <!-- --> | |||
2274 | <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Graphic ', $VarSpl itsFrame/@ stylename, $VarSplit sFrame/@do cumentID, $VarSplits Frame/@id) " /> | 2278 | <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Graphic ', $VarSpl itsFrame/@ stylename, $VarSplit sFrame/@do cumentID, $VarSplits Frame/@id) " /> | |||
2275 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " /> | 2279 | <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " /> | |||
2276 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | 2280 | <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption) = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> | |||
2277 | <xsl:if test="$Va rGenerateO utput"> | 2281 | <xsl:if test="$Va rGenerateO utput"> | |||
2278 | <!-- R esolve pro ject prope rties --> | 2282 | <!-- R esolve pro ject prope rties --> | |||
2279 | <!-- --> | 2283 | <!-- --> | |||
2280 | <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> | 2284 | <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> | |||
2281 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | 2285 | <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > | |||
2282 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramFrame" /> | 2286 | <xsl :with-para m name="Pa ramDocumen tContext" select="$P aramFrame" /> | |||
2283 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | 2287 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property" /> | |||
2284 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamFr ame/@style name" /> | 2288 | <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamFr ame/@style name" /> | |||
2285 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Graphic '" /> | 2289 | <xsl :with-para m name="Pa ramStyleTy pe" select ="'Graphic '" /> | |||
2286 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mFrame" /> | 2290 | <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mFrame" /> | |||
2287 | </xsl :call-temp late> | 2291 | </xsl :call-temp late> | |||
2288 | </xsl: variable> | 2292 | </xsl: variable> | |||
2289 | <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > | 2293 | <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > | |||
2290 | 2294 | |||||
2291 | <!-- C SS propert ies --> | 2295 | <!-- C SS propert ies --> | |||
2292 | <!-- --> | 2296 | <!-- --> | |||
2293 | <xsl:v ariable na me="VarCSS Properties AsXML"> | 2297 | <xsl:v ariable na me="VarCSS Properties AsXML"> | |||
2294 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | 2298 | <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> | |||
2295 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]" /> | 2299 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]" /> | |||
2296 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | 2300 | <xsl :with-para m name="Pa ramFromAbs oluteURI" select="$P aramSplit/ @path" /> | |||
2297 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2301 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2298 | </xsl :call-temp late> | 2302 | </xsl :call-temp late> | |||
2299 | </xsl: variable> | 2303 | </xsl: variable> | |||
2300 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | 2304 | <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > | |||
2301 | <xsl:v ariable na me="VarInl ineCSSProp erties"> | 2305 | <xsl:v ariable na me="VarInl ineCSSProp erties"> | |||
2302 | <xsl: call-templ ate name=" CSS-Inline Properties "> | 2306 | <xsl: call-templ ate name=" CSS-Inline Properties "> | |||
2303 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) > 0] " /> | 2307 | <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) > 0] " /> | |||
2304 | </xsl :call-temp late> | 2308 | </xsl :call-temp late> | |||
2305 | </xsl: variable> | 2309 | </xsl: variable> | |||
2306 | 2310 | |||||
2307 | <!-- W idth/Heigh t --> | 2311 | <!-- W idth/Heigh t --> | |||
2308 | <!-- --> | 2312 | <!-- --> | |||
2309 | <xsl:v ariable na me="VarByR eferenceGr aphicsUseD ocumentDim ensionsOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name = 'by-refe rence-use- document-d imensions' ]/@Value" /> | 2313 | <xsl:v ariable na me="VarByR eferenceGr aphicsUseD ocumentDim ensionsOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name = 'by-refe rence-use- document-d imensions' ]/@Value" /> | |||
2310 | <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ @path)" /> | 2314 | <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ @path)" /> | |||
2311 | <xsl:v ariable na me="VarWid th"> | 2315 | <xsl:v ariable na me="VarWid th"> | |||
2312 | <xsl: choose> | 2316 | <xsl: choose> | |||
2313 | <xsl :when test ="((string -length($V arByRefere nceGraphic sUseDocume ntDimensio nsOption) = 0) or ($ VarByRefer enceGraphi csUseDocum entDimensi onsOption = 'true')) and ($Var SplitsFram e/@byref = 'true')"> | 2317 | <xsl :when test ="((string -length($V arByRefere nceGraphic sUseDocume ntDimensio nsOption) = 0) or ($ VarByRefer enceGraphi csUseDocum entDimensi onsOption = 'true')) and ($Var SplitsFram e/@byref = 'true')"> | |||
2314 | <xs l:variable name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." /> | 2318 | <xs l:variable name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." /> | |||
2315 | 2319 | |||||
2316 | <xs l:value-of select="f loor(wwuni ts:Convert (wwunits:N umericPref ix($VarByR eferenceFr ame/wwdoc: Attribute[ @name = 'w idth']/@va lue), 'pt' , 'px'))" /> | 2320 | <xs l:value-of select="f loor(wwuni ts:Convert (wwunits:N umericPref ix($VarByR eferenceFr ame/wwdoc: Attribute[ @name = 'w idth']/@va lue), 'pt' , 'px'))" /> | |||
2317 | </xs l:when> | 2321 | </xs l:when> | |||
2318 | 2322 | |||||
2319 | <xsl :otherwise > | 2323 | <xsl :otherwise > | |||
2320 | <xs l:value-of select="n umber($Var ImageInfo/ @width)" / > | 2324 | <xs l:value-of select="n umber($Var ImageInfo/ @width)" / > | |||
2321 | </xs l:otherwis e> | 2325 | </xs l:otherwis e> | |||
2322 | </xsl :choose> | 2326 | </xsl :choose> | |||
2323 | </xsl: variable> | 2327 | </xsl: variable> | |||
2324 | <xsl:v ariable na me="VarHei ght"> | 2328 | <xsl:v ariable na me="VarHei ght"> | |||
2325 | <xsl: choose> | 2329 | <xsl: choose> | |||
2326 | <xsl :when test ="((string -length($V arByRefere nceGraphic sUseDocume ntDimensio nsOption) = 0) or ($ VarByRefer enceGraphi csUseDocum entDimensi onsOption = 'true')) and ($Var SplitsFram e/@byref = 'true')"> | 2330 | <xsl :when test ="((string -length($V arByRefere nceGraphic sUseDocume ntDimensio nsOption) = 0) or ($ VarByRefer enceGraphi csUseDocum entDimensi onsOption = 'true')) and ($Var SplitsFram e/@byref = 'true')"> | |||
2327 | <xs l:variable name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." /> | 2331 | <xs l:variable name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." /> | |||
2328 | 2332 | |||||
2329 | <xs l:value-of select="f loor(wwuni ts:Convert (wwunits:N umericPref ix($VarByR eferenceFr ame/wwdoc: Attribute[ @name = 'h eight']/@v alue), 'pt ', 'px'))" /> | 2333 | <xs l:value-of select="f loor(wwuni ts:Convert (wwunits:N umericPref ix($VarByR eferenceFr ame/wwdoc: Attribute[ @name = 'h eight']/@v alue), 'pt ', 'px'))" /> | |||
2330 | </xs l:when> | 2334 | </xs l:when> | |||
2331 | 2335 | |||||
2332 | <xsl :otherwise > | 2336 | <xsl :otherwise > | |||
2333 | <xs l:value-of select="n umber($Var ImageInfo/ @height)" /> | 2337 | <xs l:value-of select="n umber($Var ImageInfo/ @height)" /> | |||
2334 | </xs l:otherwis e> | 2338 | </xs l:otherwis e> | |||
2335 | </xsl :choose> | 2339 | </xsl :choose> | |||
2336 | </xsl: variable> | 2340 | </xsl: variable> | |||
2337 | 2341 | |||||
2338 | <!-- S rc --> | 2342 | <!-- S rc --> | |||
2339 | <!-- --> | 2343 | <!-- --> | |||
2340 | <xsl:v ariable na me="VarSrc " select=" wwuri:Unes cape(wwuri :GetRelati veTo($VarS plitsFrame /@path, $P aramSplit/ @path))" / > | 2344 | <xsl:v ariable na me="VarSrc " select=" wwuri:Unes cape(wwuri :GetRelati veTo($VarS plitsFrame /@path, $P aramSplit/ @path))" / > | |||
2341 | 2345 | |||||
2342 | <!-- N eed to def ine usemap ? --> | 2346 | <!-- N eed to def ine usemap ? --> | |||
2343 | <!-- --> | 2347 | <!-- --> | |||
2344 | <xsl:v ariable na me="VarUse Map"> | 2348 | <xsl:v ariable na me="VarUse Map"> | |||
2345 | <xsl: variable n ame="VarUs eMapHint" select="co unt($Param Frame//wwd oc:Link)" /> | 2349 | <xsl: variable n ame="VarUs eMapHint" select="co unt($Param Frame//wwd oc:Link)" /> | |||
2346 | <xsl: choose> | 2350 | <xsl: choose> | |||
2347 | <xsl :when test ="$VarUseM apHint > ; 0"> | 2351 | <xsl :when test ="$VarUseM apHint > ; 0"> | |||
2348 | <xs l:text>#</ xsl:text> | 2352 | <xs l:text>#</ xsl:text> | |||
2349 | <xs l:value-of select="$ VarSplitsF rame/@docu mentID" /> | 2353 | <xs l:value-of select="$ VarSplitsF rame/@docu mentID" /> | |||
2350 | <xs l:text>_</ xsl:text> | 2354 | <xs l:text>_</ xsl:text> | |||
2351 | <xs l:value-of select="$ VarSplitsF rame/@id" /> | 2355 | <xs l:value-of select="$ VarSplitsF rame/@id" /> | |||
2352 | </xs l:when> | 2356 | </xs l:when> | |||
2353 | 2357 | |||||
2354 | <xsl :otherwise > | 2358 | <xsl :otherwise > | |||
2355 | <xs l:value-of select="' '" /> | 2359 | <xs l:value-of select="' '" /> | |||
2356 | </xs l:otherwis e> | 2360 | </xs l:otherwis e> | |||
2357 | </xsl :choose> | 2361 | </xsl :choose> | |||
2358 | </xsl: variable> | 2362 | </xsl: variable> | |||
2359 | 2363 | |||||
2360 | <!-- A lt Text -- > | 2364 | <!-- A lt Text -- > | |||
2361 | <!-- -- > | 2365 | <!-- -- > | |||
2362 | <xsl:v ariable na me="VarAlt Text"> | 2366 | <xsl:v ariable na me="VarAlt Text"> | |||
2363 | <xsl: call-templ ate name=" Images-Alt Text"> | 2367 | <xsl: call-templ ate name=" Images-Alt Text"> | |||
2364 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | 2368 | <xsl :with-para m name="Pa ramFrame" select="$P aramFrame" /> | |||
2365 | <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" /> | 2369 | <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" /> | |||
2366 | </xsl :call-temp late> | 2370 | </xsl :call-temp late> | |||
2367 | </xsl: variable> | 2371 | </xsl: variable> | |||
2368 | 2372 | |||||
2369 | <!-- T ag --> | 2373 | <!-- T ag --> | |||
2370 | <!-- --> | 2374 | <!-- --> | |||
2371 | <xsl:v ariable na me="VarTag Property" select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name = 'tag']/@ Value" /> | 2375 | <xsl:v ariable na me="VarTag Property" select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name = 'tag']/@ Value" /> | |||
2372 | <xsl:v ariable na me="VarTag "> | 2376 | <xsl:v ariable na me="VarTag "> | |||
2373 | <xsl: choose> | 2377 | <xsl: choose> | |||
2374 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | 2378 | <xsl :when test ="string-l ength($Var TagPropert y) > 0" > | |||
2375 | <xs l:value-of select="$ VarTagProp erty" /> | 2379 | <xs l:value-of select="$ VarTagProp erty" /> | |||
2376 | </xs l:when> | 2380 | </xs l:when> | |||
2377 | 2381 | |||||
2378 | <xsl :otherwise > | 2382 | <xsl :otherwise > | |||
2379 | <xs l:value-of select="' img'" /> | 2383 | <xs l:value-of select="' img'" /> | |||
2380 | </xs l:otherwis e> | 2384 | </xs l:otherwis e> | |||
2381 | </xsl :choose> | 2385 | </xsl :choose> | |||
2382 | </xsl: variable> | 2386 | </xsl: variable> | |||
2383 | 2387 | |||||
2384 | <!-- G raphic ele ment --> | 2388 | <!-- G raphic ele ment --> | |||
2385 | <!-- --> | 2389 | <!-- --> | |||
2386 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | 2390 | <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> | |||
2387 | <!-- ID attribu te --> | |||||
2388 | <!-- --> | |||||
2389 | <xsl: attribute name="id"> | |||||
2390 | <xsl :value-of select="$P aramFrame/ @id" /> | |||||
2391 | </xsl :attribute > | |||||
2392 | ||||||
2393 | <!-- Src attrib ute --> | 2391 | <!-- Src attrib ute --> | |||
2394 | <!-- --> | 2392 | <!-- --> | |||
2395 | <xsl: attribute name="src" > | 2393 | <xsl: attribute name="src" > | |||
2396 | <xsl :value-of select="$V arSrc" /> | 2394 | <xsl :value-of select="$V arSrc" /> | |||
2397 | </xsl :attribute > | 2395 | </xsl :attribute > | |||
2398 | 2396 | |||||
2399 | <!-- Width attr ibute --> | 2397 | <!-- Width attr ibute --> | |||
2400 | <!-- --> | 2398 | <!-- --> | |||
2401 | <xsl: if test="$ VarWidth & gt; 0"> | 2399 | <xsl: if test="$ VarWidth & gt; 0"> | |||
2402 | <xsl :attribute name="wid th"> | 2400 | <xsl :attribute name="wid th"> | |||
2403 | <xs l:value-of select="$ VarWidth"/ > | 2401 | <xs l:value-of select="$ VarWidth"/ > | |||
2404 | </xs l:attribut e> | 2402 | </xs l:attribut e> | |||
2405 | </xsl :if> | 2403 | </xsl :if> | |||
2406 | 2404 | |||||
2407 | <!-- Height att ribute --> | 2405 | <!-- Height att ribute --> | |||
2408 | <!-- --> | 2406 | <!-- --> | |||
2409 | <xsl: if test="$ VarHeight > 0"> | 2407 | <xsl: if test="$ VarHeight > 0"> | |||
2410 | <xsl :attribute name="hei ght"> | 2408 | <xsl :attribute name="hei ght"> | |||
2411 | <xs l:value-of select="$ VarHeight" /> | 2409 | <xs l:value-of select="$ VarHeight" /> | |||
2412 | </xs l:attribut e> | 2410 | </xs l:attribut e> | |||
2413 | </xsl :if> | 2411 | </xsl :if> | |||
2414 | 2412 | |||||
2415 | <!-- Style attr ibute --> | 2413 | <!-- Style attr ibute --> | |||
2416 | <!-- --> | 2414 | <!-- --> | |||
2417 | <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0"> | 2415 | <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0"> | |||
2418 | <xsl :attribute name="sty le"> | 2416 | <xsl :attribute name="sty le"> | |||
2419 | <xs l:value-of select="$ VarInlineC SSProperti es" /> | 2417 | <xs l:value-of select="$ VarInlineC SSProperti es" /> | |||
2420 | </xs l:attribut e> | 2418 | </xs l:attribut e> | |||
2421 | </xsl :if> | 2419 | </xsl :if> | |||
2422 | 2420 | |||||
2423 | <!-- Alt attrib ute --> | 2421 | <!-- Alt attrib ute --> | |||
2424 | <!-- --> | 2422 | <!-- --> | |||
2425 | <xsl: if test="s tring-leng th($VarAlt Text) > 0"> | |||||
2426 | <xsl :attribute name="alt "> | 2423 | <xsl: attribute name="alt" > | |||
2427 | <xs l:value-of select="$ VarAltText " /> | 2424 | <xsl :value-of select="$V arAltText" /> | |||
2428 | </xs l:attribut e> | 2425 | </xsl :attribute > | |||
2429 | </xsl :if> | |||||
2430 | 2426 | |||||
2431 | <!-- Usemap att ribute --> | 2427 | <!-- Usemap att ribute --> | |||
2432 | <!-- --> | 2428 | <!-- --> | |||
2433 | <xsl: if test="s tring-leng th($VarUse Map) > 0"> | 2429 | <xsl: if test="s tring-leng th($VarUse Map) > 0"> | |||
2434 | <xsl :attribute name="use map"> | 2430 | <xsl :attribute name="use map"> | |||
2435 | <xs l:value-of select="$ VarUseMap" /> | 2431 | <xs l:value-of select="$ VarUseMap" /> | |||
2436 | </xs l:attribut e> | 2432 | </xs l:attribut e> | |||
2437 | <xsl :attribute name="bor der"> | 2433 | <xsl :attribute name="bor der"> | |||
2438 | <xs l:value-of select="' 0'" /> | 2434 | <xs l:value-of select="' 0'" /> | |||
2439 | </xs l:attribut e> | 2435 | </xs l:attribut e> | |||
2440 | </xsl :if> | 2436 | </xsl :if> | |||
2441 | </xsl: element> | 2437 | </xsl: element> | |||
2442 | 2438 | |||||
2443 | <xsl:i f test="st ring-lengt h($VarUseM ap) > 0 "> | 2439 | <xsl:i f test="st ring-lengt h($VarUseM ap) > 0 "> | |||
2444 | <html :map name= "{concat($ VarSplitsF rame/@docu mentID, '_ ', $VarSpl itsFrame/@ id)}"> | 2440 | <html :map name= "{concat($ VarSplitsF rame/@docu mentID, '_ ', $VarSpl itsFrame/@ id)}"> | |||
2445 | <xsl :variable name="VarH orizontalS calingAsTe xt"> | 2441 | <xsl :variable name="VarH orizontalS calingAsTe xt"> | |||
2446 | <xs l:choose> | 2442 | <xs l:choose> | |||
2447 | <x sl:when te st="$VarWi dth > 0 "> | 2443 | <x sl:when te st="$VarWi dth > 0 "> | |||
2448 | < xsl:variab le name="V arWidthAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name = 'width'] /@value), 'pt', 'px' )))" /> | 2444 | < xsl:variab le name="V arWidthAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name = 'width'] /@value), 'pt', 'px' )))" /> | |||
2449 | < xsl:value- of select= "number($V arWidth) d iv number( $VarWidthA sPixels)" /> | 2445 | < xsl:value- of select= "number($V arWidth) d iv number( $VarWidthA sPixels)" /> | |||
2450 | </ xsl:when> | 2446 | </ xsl:when> | |||
2451 | 2447 | |||||
2452 | <x sl:otherwi se> | 2448 | <x sl:otherwi se> | |||
2453 | < xsl:value- of select= "1" /> | 2449 | < xsl:value- of select= "1" /> | |||
2454 | </ xsl:otherw ise> | 2450 | </ xsl:otherw ise> | |||
2455 | </x sl:choose> | 2451 | </x sl:choose> | |||
2456 | </xs l:variable > | 2452 | </xs l:variable > | |||
2457 | 2453 | |||||
2458 | <xsl :variable name="VarV erticalSca lingAsText "> | 2454 | <xsl :variable name="VarV erticalSca lingAsText "> | |||
2459 | <xs l:choose> | 2455 | <xs l:choose> | |||
2460 | <x sl:when te st="$VarHe ight > 0"> | 2456 | <x sl:when te st="$VarHe ight > 0"> | |||
2461 | < xsl:variab le name="V arHeightAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name = 'height ']/@value) , 'pt', 'p x')))" /> | 2457 | < xsl:variab le name="V arHeightAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name = 'height ']/@value) , 'pt', 'p x')))" /> | |||
2462 | < xsl:value- of select= "number($V arHeight) div number ($VarHeigh tAsPixels) " /> | 2458 | < xsl:value- of select= "number($V arHeight) div number ($VarHeigh tAsPixels) " /> | |||
2463 | </ xsl:when> | 2459 | </ xsl:when> | |||
2464 | 2460 | |||||
2465 | <x sl:otherwi se> | 2461 | <x sl:otherwi se> | |||
2466 | < xsl:value- of select= "1" /> | 2462 | < xsl:value- of select= "1" /> | |||
2467 | </ xsl:otherw ise> | 2463 | </ xsl:otherw ise> | |||
2468 | </x sl:choose> | 2464 | </x sl:choose> | |||
2469 | </xs l:variable > | 2465 | </xs l:variable > | |||
2470 | 2466 | |||||
2471 | <xsl :call-temp late name= "ImageMap" > | 2467 | <xsl :call-temp late name= "ImageMap" > | |||
2472 | <xs l:with-par am name="P aramFrame" select="$ ParamFrame " /> | 2468 | <xs l:with-par am name="P aramFrame" select="$ ParamFrame " /> | |||
2473 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 2469 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
2474 | <xs l:with-par am name="P aramCargo" select="$ VarCargo" /> | 2470 | <xs l:with-par am name="P aramCargo" select="$ VarCargo" /> | |||
2475 | <xs l:with-par am name="P aramParent Behavior" select="$V arBehavior Frame" /> | 2471 | <xs l:with-par am name="P aramParent Behavior" select="$V arBehavior Frame" /> | |||
2476 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 2472 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
2477 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 2473 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
2478 | <xs l:with-par am name="P aramHorizo ntalScalin g" select= "number($V arHorizont alScalingA sText)" /> | 2474 | <xs l:with-par am name="P aramHorizo ntalScalin g" select= "number($V arHorizont alScalingA sText)" /> | |||
2479 | <xs l:with-par am name="P aramVertic alScaling" select="n umber($Var VerticalSc alingAsTex t)" /> | 2475 | <xs l:with-par am name="P aramVertic alScaling" select="n umber($Var VerticalSc alingAsTex t)" /> | |||
2480 | </xs l:call-tem plate> | 2476 | </xs l:call-tem plate> | |||
2481 | </htm l:map> | 2477 | </htm l:map> | |||
2482 | </xsl: if> | 2478 | </xsl: if> | |||
2483 | </xsl:i f> | 2479 | </xsl:i f> | |||
2484 | </xsl:fo r-each> | 2480 | </xsl:fo r-each> | |||
2485 | 2481 | |||||
2486 | <!-- Fra me Footnot es --> | 2482 | <!-- Fra me Footnot es --> | |||
2487 | <!-- --> | 2483 | <!-- --> | |||
2488 | <xsl:cal l-template name="Con tent-Notes "> | 2484 | <xsl:cal l-template name="Con tent-Notes "> | |||
2489 | <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> | 2485 | <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> | |||
2490 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | 2486 | <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits" /> | |||
2491 | <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> | 2487 | <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> | |||
2492 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | 2488 | <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> | |||
2493 | <xsl:wi th-param n ame="Param TOCData" s elect="''" /> | 2489 | <xsl:wi th-param n ame="Param TOCData" s elect="''" /> | |||
2494 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | 2490 | <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> | |||
2495 | </xsl:ca ll-templat e> | 2491 | </xsl:ca ll-templat e> | |||
2496 | </xsl:tem plate> | 2492 | </xsl:tem plate> | |||
2497 | 2493 | |||||
2498 | 2494 | |||||
2499 | <xsl:temp late name= "ImageMap" > | 2495 | <xsl:temp late name= "ImageMap" > | |||
2500 | <xsl:par am name="P aramFrame" /> | 2496 | <xsl:par am name="P aramFrame" /> | |||
2501 | <xsl:par am name="P aramSplits " /> | 2497 | <xsl:par am name="P aramSplits " /> | |||
2502 | <xsl:par am name="P aramCargo" /> | 2498 | <xsl:par am name="P aramCargo" /> | |||
2503 | <xsl:par am name="P aramParent Behavior" /> | 2499 | <xsl:par am name="P aramParent Behavior" /> | |||
2504 | <xsl:par am name="P aramLinks" /> | 2500 | <xsl:par am name="P aramLinks" /> | |||
2505 | <xsl:par am name="P aramSplit" /> | 2501 | <xsl:par am name="P aramSplit" /> | |||
2506 | <xsl:par am name="P aramHorizo ntalScalin g" /> | 2502 | <xsl:par am name="P aramHorizo ntalScalin g" /> | |||
2507 | <xsl:par am name="P aramVertic alScaling" /> | 2503 | <xsl:par am name="P aramVertic alScaling" /> | |||
2508 | 2504 | |||||
2509 | <!-- Pro cess child frames fi rst --> | 2505 | <!-- Pro cess child frames fi rst --> | |||
2510 | <!-- --> | 2506 | <!-- --> | |||
2511 | <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame | ancesto r::wwdoc:F rame[1]) = 1]"> | 2507 | <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame | ancesto r::wwdoc:F rame[1]) = 1]"> | |||
2512 | <xsl:ca ll-templat e name="Im ageMap"> | 2508 | <xsl:ca ll-templat e name="Im ageMap"> | |||
2513 | <xsl:w ith-param name="Para mFrame" se lect="." / > | 2509 | <xsl:w ith-param name="Para mFrame" se lect="." / > | |||
2514 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | 2510 | <xsl:w ith-param name="Para mSplits" s elect="$Pa ramSplits" /> | |||
2515 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | 2511 | <xsl:w ith-param name="Para mCargo" se lect="$Par amCargo" / > | |||
2516 | <xsl:w ith-param name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> | 2512 | <xsl:w ith-param name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> | |||
2517 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | 2513 | <xsl:w ith-param name="Para mLinks" se lect="$Par amLinks" / > | |||
2518 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | 2514 | <xsl:w ith-param name="Para mSplit" se lect="$Par amSplit" / > | |||
2519 | <xsl:w ith-param name="Para mHorizonta lScaling" select="$P aramHorizo ntalScalin g" /> | 2515 | <xsl:w ith-param name="Para mHorizonta lScaling" select="$P aramHorizo ntalScalin g" /> | |||
2520 | <xsl:w ith-param name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > | 2516 | <xsl:w ith-param name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > | |||
2521 | </xsl:c all-templa te> | 2517 | </xsl:c all-templa te> | |||
2522 | </xsl:fo r-each> | 2518 | </xsl:fo r-each> | |||
2523 | 2519 | |||||
2524 | <!-- Get link --> | 2520 | <!-- Get link --> | |||
2525 | <!-- --> | 2521 | <!-- --> | |||
2526 | <xsl:var iable name ="VarLinkI nfoAsXML"> | 2522 | <xsl:var iable name ="VarLinkI nfoAsXML"> | |||
2527 | <xsl:ch oose> | 2523 | <xsl:ch oose> | |||
2528 | <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> | 2524 | <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> | |||
2529 | <xsl: call-templ ate name=" LinkInfo"> | 2525 | <xsl: call-templ ate name=" LinkInfo"> | |||
2530 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | 2526 | <xsl :with-para m name="Pa ramSplits" select="$ ParamSplit s" /> | |||
2531 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | 2527 | <xsl :with-para m name="Pa ramLinks" select="$P aramLinks" /> | |||
2532 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | 2528 | <xsl :with-para m name="Pa ramSplit" select="$P aramSplit" /> | |||
2533 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > | 2529 | <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > | |||
2534 | </xsl :call-temp late> | 2530 | </xsl :call-temp late> | |||
2535 | </xsl: when> | 2531 | </xsl: when> | |||
2536 | 2532 | |||||
2537 | <xsl:o therwise> | 2533 | <xsl:o therwise> | |||
2538 | <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]" /> | 2534 | <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]" /> | |||
2539 | <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> | 2535 | <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> | |||
2540 | <xsl: if test="$ VarChildLi nksCount & gt; 0"> | 2536 | <xsl: if test="$ VarChildLi nksCount & gt; 0"> | |||
2541 | <xsl :call-temp late name= "LinkInfo" > | 2537 | <xsl :call-temp late name= "LinkInfo" > | |||
2542 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | 2538 | <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> | |||
2543 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | 2539 | <xs l:with-par am name="P aramLinks" select="$ ParamLinks " /> | |||
2544 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | 2540 | <xs l:with-par am name="P aramSplit" select="$ ParamSplit " /> | |||
2545 | <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> | 2541 | <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> | |||
2546 | </xs l:call-tem plate> | 2542 | </xs l:call-tem plate> | |||
2547 | </xsl :if> | 2543 | </xsl :if> | |||
2548 | </xsl: otherwise> | 2544 | </xsl: otherwise> | |||
2549 | </xsl:c hoose> | 2545 | </xsl:c hoose> | |||
2550 | </xsl:va riable> | 2546 | </xsl:va riable> | |||
2551 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | 2547 | <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> | |||
2552 | 2548 | |||||
2553 | <xsl:if test="stri ng-length( $VarLinkIn fo/@href) > 0"> | 2549 | <xsl:if test="stri ng-length( $VarLinkIn fo/@href) > 0"> | |||
2554 | <!-- Ge t coords a ttribute - -> | 2550 | <!-- Ge t coords a ttribute - -> | |||
2555 | <!-- - -> | 2551 | <!-- - -> | |||
2556 | <xsl:va riable nam e="VarLeft AsPixels"> | 2552 | <xsl:va riable nam e="VarLeft AsPixels"> | |||
2557 | <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'))) " /> | 2553 | <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'))) " /> | |||
2558 | <xsl:c hoose> | 2554 | <xsl:c hoose> | |||
2559 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | 2555 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | |||
2560 | <xsl :value-of select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> | 2556 | <xsl :value-of select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> | |||
2561 | </xsl :when> | 2557 | </xsl :when> | |||
2562 | <xsl: otherwise> | 2558 | <xsl: otherwise> | |||
2563 | <xsl :value-of select="$V arOrigLeft AsPixels" /> | 2559 | <xsl :value-of select="$V arOrigLeft AsPixels" /> | |||
2564 | </xsl :otherwise > | 2560 | </xsl :otherwise > | |||
2565 | </xsl: choose> | 2561 | </xsl: choose> | |||
2566 | </xsl:v ariable> | 2562 | </xsl:v ariable> | |||
2567 | 2563 | |||||
2568 | <xsl:va riable nam e="VarTopA sPixels"> | 2564 | <xsl:va riable nam e="VarTopA sPixels"> | |||
2569 | <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')))" /> | 2565 | <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')))" /> | |||
2570 | <xsl:c hoose> | 2566 | <xsl:c hoose> | |||
2571 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | 2567 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | |||
2572 | <xsl :value-of select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > | 2568 | <xsl :value-of select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > | |||
2573 | </xsl :when> | 2569 | </xsl :when> | |||
2574 | <xsl: otherwise> | 2570 | <xsl: otherwise> | |||
2575 | <xsl :value-of select="$V arOrigTopA sPixels" / > | 2571 | <xsl :value-of select="$V arOrigTopA sPixels" / > | |||
2576 | </xsl :otherwise > | 2572 | </xsl :otherwise > | |||
2577 | </xsl: choose> | 2573 | </xsl: choose> | |||
2578 | </xsl:v ariable> | 2574 | </xsl:v ariable> | |||
2579 | 2575 | |||||
2580 | <xsl:va riable nam e="VarWidt hAsPixels" > | 2576 | <xsl:va riable nam e="VarWidt hAsPixels" > | |||
2581 | <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') ))" /> | 2577 | <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') ))" /> | |||
2582 | <xsl:c hoose> | 2578 | <xsl:c hoose> | |||
2583 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | 2579 | <xsl: when test= "$ParamHor izontalSca ling != 1" > | |||
2584 | <xsl :value-of select="nu mber($VarO rigWidthAs Pixels) * number($Pa ramHorizon talScaling )" /> | 2580 | <xsl :value-of select="nu mber($VarO rigWidthAs Pixels) * number($Pa ramHorizon talScaling )" /> | |||
2585 | </xsl :when> | 2581 | </xsl :when> | |||
2586 | <xsl: otherwise> | 2582 | <xsl: otherwise> | |||
2587 | <xsl :value-of select="$V arOrigWidt hAsPixels" /> | 2583 | <xsl :value-of select="$V arOrigWidt hAsPixels" /> | |||
2588 | </xsl :otherwise > | 2584 | </xsl :otherwise > | |||
2589 | </xsl: choose> | 2585 | </xsl: choose> | |||
2590 | </xsl:v ariable> | 2586 | </xsl:v ariable> | |||
2591 | 2587 | |||||
2592 | <xsl:va riable nam e="VarHeig htAsPixels "> | 2588 | <xsl:va riable nam e="VarHeig htAsPixels "> | |||
2593 | <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 ')))" /> | 2589 | <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 ')))" /> | |||
2594 | <xsl:c hoose> | 2590 | <xsl:c hoose> | |||
2595 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | 2591 | <xsl: when test= "$ParamVer ticalScali ng != 1"> | |||
2596 | <xsl :value-of select="nu mber($VarO rigHeightA sPixels) * number($P aramVertic alScaling) " /> | 2592 | <xsl :value-of select="nu mber($VarO rigHeightA sPixels) * number($P aramVertic alScaling) " /> | |||
2597 | </xsl :when> | 2593 | </xsl :when> | |||
2598 | <xsl: otherwise> | 2594 | <xsl: otherwise> | |||
2599 | <xsl :value-of select="$V arOrigHeig htAsPixels " /> | 2595 | <xsl :value-of select="$V arOrigHeig htAsPixels " /> | |||
2600 | </xsl :otherwise > | 2596 | </xsl :otherwise > | |||
2601 | </xsl: choose> | 2597 | </xsl: choose> | |||
2602 | </xsl:v ariable> | 2598 | </xsl:v ariable> | |||
2603 | 2599 | |||||
2604 | <!-- co ords --> | 2600 | <!-- co ords --> | |||
2605 | <!-- --> | 2601 | <!-- --> | |||
2606 | <xsl:va riable nam e="VarCoor dsString"> | 2602 | <xsl:va riable nam e="VarCoor dsString"> | |||
2607 | <xsl:c hoose> | 2603 | <xsl:c hoose> | |||
2608 | <xsl: when test= "string-le ngth($VarL eftAsPixel s) > 0" > | 2604 | <xsl: when test= "string-le ngth($VarL eftAsPixel s) > 0" > | |||
2609 | <xsl :value-of select="$V arLeftAsPi xels" /> | 2605 | <xsl :value-of select="$V arLeftAsPi xels" /> | |||
2610 | </xsl :when> | 2606 | </xsl :when> | |||
2611 | <xsl: otherwise> | 2607 | <xsl: otherwise> | |||
2612 | <xsl :value-of select="'0 '" /> | 2608 | <xsl :value-of select="'0 '" /> | |||
2613 | </xsl :otherwise > | 2609 | </xsl :otherwise > | |||
2614 | </xsl: choose> | 2610 | </xsl: choose> | |||
2615 | 2611 | |||||
2616 | <xsl:v alue-of se lect="','" /> | 2612 | <xsl:v alue-of se lect="','" /> | |||
2617 | 2613 | |||||
2618 | <xsl:c hoose> | 2614 | <xsl:c hoose> | |||
2619 | <xsl: when test= "string-le ngth($VarT opAsPixels ) > 0"> | 2615 | <xsl: when test= "string-le ngth($VarT opAsPixels ) > 0"> | |||
2620 | <xsl :value-of select="$V arTopAsPix els" /> | 2616 | <xsl :value-of select="$V arTopAsPix els" /> | |||
2621 | </xsl :when> | 2617 | </xsl :when> | |||
2622 | <xsl: otherwise> | 2618 | <xsl: otherwise> | |||
2623 | <xsl :value-of select="'0 '" /> | 2619 | <xsl :value-of select="'0 '" /> | |||
2624 | </xsl :otherwise > | 2620 | </xsl :otherwise > | |||
2625 | </xsl: choose> | 2621 | </xsl: choose> | |||
2626 | 2622 | |||||
2627 | <xsl:v alue-of se lect="','" /> | 2623 | <xsl:v alue-of se lect="','" /> | |||
2628 | 2624 | |||||
2629 | <xsl:c hoose> | 2625 | <xsl:c hoose> | |||
2630 | <xsl: when test= "string-le ngth($VarW idthAsPixe ls) > 0 "> | 2626 | <xsl: when test= "string-le ngth($VarW idthAsPixe ls) > 0 "> | |||
2631 | <xsl :value-of select="st ring(numbe r($VarWidt hAsPixels) + number( $VarLeftAs Pixels))" /> | 2627 | <xsl :value-of select="st ring(numbe r($VarWidt hAsPixels) + number( $VarLeftAs Pixels))" /> | |||
2632 | </xsl :when> | 2628 | </xsl :when> | |||
2633 | <xsl: otherwise> | 2629 | <xsl: otherwise> | |||
2634 | <xsl :value-of select="'0 '" /> | 2630 | <xsl :value-of select="'0 '" /> | |||
2635 | </xsl :otherwise > | 2631 | </xsl :otherwise > | |||
2636 | </xsl: choose> | 2632 | </xsl: choose> | |||
2637 | 2633 | |||||
2638 | <xsl:v alue-of se lect="','" /> | 2634 | <xsl:v alue-of se lect="','" /> | |||
2639 | 2635 | |||||
2640 | <xsl:c hoose> | 2636 | <xsl:c hoose> | |||
2641 | <xsl: when test= "string-le ngth($VarH eightAsPix els) > 0"> | 2637 | <xsl: when test= "string-le ngth($VarH eightAsPix els) > 0"> | |||
2642 | <xsl :value-of select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))" /> | 2638 | <xsl :value-of select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))" /> | |||
2643 | </xsl :when> | 2639 | </xsl :when> | |||
2644 | <xsl: otherwise> | 2640 | <xsl: otherwise> | |||
2645 | <xsl :value-of select="'0 '" /> | 2641 | <xsl :value-of select="'0 '" /> | |||
2646 | </xsl :otherwise > | 2642 | </xsl :otherwise > | |||
2647 | </xsl: choose> | 2643 | </xsl: choose> | |||
2648 | </xsl:v ariable> | 2644 | </xsl:v ariable> | |||
2649 | 2645 | |||||
2650 | <!-- al t --> | 2646 | <!-- al t --> | |||
2651 | <!-- --> | 2647 | <!-- --> | |||
2652 | <xsl:va riable nam e="VarAltT ext"> | 2648 | <xsl:va riable nam e="VarAltT ext"> | |||
2653 | <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> | 2649 | <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> | |||
2654 | <xsl: with-param name="Par amParentBe havior" se lect="$Par amParentBe havior" /> | 2650 | <xsl: with-param name="Par amParentBe havior" se lect="$Par amParentBe havior" /> | |||
2655 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | 2651 | <xsl: with-param name="Par amFrame" s elect="$Pa ramFrame" /> | |||
2656 | </xsl: call-templ ate> | 2652 | </xsl: call-templ ate> | |||
2657 | </xsl:v ariable> | 2653 | </xsl:v ariable> | |||
2658 | 2654 | |||||
2659 | <!-- ar ea --> | 2655 | <!-- ar ea --> | |||
2660 | <!-- --> | 2656 | <!-- --> | |||
2661 | <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}" shape="rec t"> | 2657 | <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}" shape="rec t"> | |||
2662 | <!-- a lt --> | 2658 | <!-- a lt --> | |||
2663 | <!-- --> | 2659 | <!-- --> | |||
2664 | <xsl:i f test="st ring-lengt h($VarAltT ext) > 0"> | |||||
2665 | <xsl: attribute name="alt" > | 2660 | <xsl:a ttribute n ame="alt"> | |||
2666 | <xsl :value-of select="$V arAltText" /> | 2661 | <xsl: value-of s elect="$Va rAltText" /> | |||
2667 | </xsl :attribute > | 2662 | </xsl: attribute> | |||
2668 | </xsl: if> | |||||
2669 | </html: area> | 2663 | </html: area> | |||
2670 | </xsl:if > | 2664 | </xsl:if > | |||
2671 | </xsl:tem plate> | 2665 | </xsl:tem plate> | |||
2672 | </xsl:styl esheet> | 2666 | </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.