23. Araxis Merge File Comparison Report

Produced by Araxis Merge on Wed Jan 21 22:23:27 2009 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.

23.1 Files compared

# Location File Last Modified
1 Q:\Formats.2008.3.20682\Shared\common\images images.xsl Mon Oct 13 05:52:00 2008 UTC
2 Q:\Formats.2008.4.20859\Shared\common\images images.xsl Mon Jan 19 18:02:54 2009 UTC

23.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 14 1646
Changed 4 10
Inserted 4 9
Removed 0 0

23.3 Comparison options

Whitespace Differences in whitespace at the start of 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 Shown in the comparison detail

23.4 Active regular expressions

Expression Description
\$(Id|Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments
<LastModified>.*</LastModified> last modified
- Title ignore - Title

23.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?> CR LF   1   <?xml vers ion="1.0"  encoding=" UTF-8"?> CR LF
2   <xsl:style sheet vers ion="1.0"  xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF   2   <xsl:style sheet vers ion="1.0"  xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF
3                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF   3                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF
4                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF   4                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF
5                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF   5                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF
6                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF   6                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF
7                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF   7                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF
8                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF   8                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF
9                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF   9                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF
10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF   10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF
11                                    xmlns:wwtr ait="urn:W ebWorks-En gine-Forma tTraitInfo -Schema" CR LF   11                                    xmlns:wwtr ait="urn:W ebWorks-En gine-Forma tTraitInfo -Schema" CR LF
12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF   12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF
13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF   13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF
14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF   14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF
15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF   15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF
16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF   16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF
17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF   17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF
18                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF   18                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF
19                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF   19                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF
20                                    xmlns:wwad apter="urn :WebWorks- XSLT-Exten sion-Adapt er" CR LF   20                                    xmlns:wwad apter="urn :WebWorks- XSLT-Exten sion-Adapt er" CR LF
21                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF   21                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF
22                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF   22                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF
23                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwfiles ww doc wwbeha viors wwsp lits wwpro ject wwtra it wwprogr ess wwlog  wwfilesyst em wwuri w wstring ww filesext w wunits wwp rojext wwa dapter wwi maging wwe xsldoc" CR LF   23                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwfiles ww doc wwbeha viors wwsp lits wwpro ject wwtra it wwprogr ess wwlog  wwfilesyst em wwuri w wstring ww filesext w wunits wwp rojext wwa dapter wwi maging wwe xsldoc" CR LF
24   > CR LF   24   > CR LF
25    <xsl:para m name="Gl obalInput"  /> CR LF   25    <xsl:para m name="Gl obalInput"  /> CR LF
26    <xsl:para m name="Gl obalPipeli neName" /> CR LF   26    <xsl:para m name="Gl obalPipeli neName" /> CR LF
27    <xsl:para m name="Gl obalProjec t" /> CR LF   27    <xsl:para m name="Gl obalProjec t" /> CR LF
28    <xsl:para m name="Gl obalFiles"  /> CR LF   28    <xsl:para m name="Gl obalFiles"  /> CR LF
29    <xsl:para m name="Pa rameterDep endsType"  /> CR LF   29    <xsl:para m name="Pa rameterDep endsType"  /> CR LF
30    <xsl:para m name="Pa rameterSpl itsType" / > CR LF   30    <xsl:para m name="Pa rameterSpl itsType" / > CR LF
31    <xsl:para m name="Pa rameterBeh aviorsType " /> CR LF   31    <xsl:para m name="Pa rameterBeh aviorsType " /> CR LF
32    <xsl:para m name="Pa rameterPos tScriptTyp e" /> CR LF   32    <xsl:para m name="Pa rameterPos tScriptTyp e" /> CR LF
33    <xsl:para m name="Pa rameterDef aultFormat " /> CR LF   33    <xsl:para m name="Pa rameterDef aultFormat " /> CR LF
34    <xsl:para m name="Pa rameterAll owThumbnai ls" /> CR LF   34    <xsl:para m name="Pa rameterAll owThumbnai ls" /> CR LF
35    <xsl:para m name="Pa rameterThu mbnailType " /> CR LF   35    <xsl:para m name="Pa rameterThu mbnailType " /> CR LF
36    <xsl:para m name="Pa rameterTyp e" /> CR LF   36    <xsl:para m name="Pa rameterTyp e" /> CR LF
37    <xsl:para m name="Pa rameterCat egory" /> CR LF   37    <xsl:para m name="Pa rameterCat egory" /> CR LF
38    <xsl:para m name="Pa rameterUse " /> CR LF   38    <xsl:para m name="Pa rameterUse " /> CR LF
39    <xsl:para m name="Pa rameterDep loy" /> CR LF   39    <xsl:para m name="Pa rameterDep loy" /> CR LF
40   CR LF   40   CR LF
41   CR LF   41   CR LF
42    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  /> CR LF   42    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  /> CR LF
43   CR LF   43   CR LF
44   CR LF   44   CR LF
45    <xsl:key  name="wwfi les-files- by-groupid -type" mat ch="wwfile s:File" us e="concat( @groupID,  ':', @type )" /> CR LF   45    <xsl:key  name="wwfi les-files- by-groupid -type" mat ch="wwfile s:File" us e="concat( @groupID,  ':', @type )" /> CR LF
46    <xsl:key  name="wwfi les-files- by-documen tid" match ="wwfiles: File" use= "@document ID" /> CR LF   46    <xsl:key  name="wwfi les-files- by-documen tid" match ="wwfiles: File" use= "@document ID" /> CR LF
47    <xsl:key  name="wwsp lits-frame s-by-docum entid" mat ch="wwspli ts:Frame"  use="@docu mentID" /> CR LF   47    <xsl:key  name="wwsp lits-frame s-by-docum entid" mat ch="wwspli ts:Frame"  use="@docu mentID" /> CR LF
48    <xsl:key  name="wwdo c-frames-b y-id" matc h="wwdoc:F rame" use= "@id" /> CR LF   48    <xsl:key  name="wwdo c-frames-b y-id" matc h="wwdoc:F rame" use= "@id" /> CR LF
49    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF   49    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF
50   CR LF   50   CR LF
51   CR LF   51   CR LF
52    <xsl:vari able name= "GlobalAct ionChecksu m"> CR LF   52    <xsl:vari able name= "GlobalAct ionChecksu m"> CR LF
53     <xsl:var iable name ="VarTrans formChecks ums"> CR LF   53     <xsl:var iable name ="VarTrans formChecks ums"> CR LF
54      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  /> CR LF   54      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  /> CR LF
55      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/images /utilities .xsl'), ': ', wwfiles ystem:GetC hecksum(ww uri:AsFile Path('wwtr ansform:co mmon/image s/utilitie s.xsl')))"  /> CR LF   55      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/images /utilities .xsl'), ': ', wwfiles ystem:GetC hecksum(ww uri:AsFile Path('wwtr ansform:co mmon/image s/utilitie s.xsl')))"  /> CR LF
56     </xsl:va riable> CR LF   56     </xsl:va riable> CR LF
57     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  /> CR LF   57     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  /> CR LF
58    </xsl:var iable> CR LF   58    </xsl:var iable> CR LF
59   CR LF   59   CR LF
60   CR LF   60   CR LF
61    <xsl:temp late match ="/"> CR LF   61    <xsl:temp late match ="/"> CR LF
62     <wwfiles :Files ver sion="1.0" > CR LF   62     <wwfiles :Files ver sion="1.0" > CR LF
63   CR LF   63   CR LF
64      <!-- Gr oups --> CR LF   64      <!-- Gr oups --> CR LF
65      <!--         --> CR LF   65      <!--         --> CR LF
66      <xsl:va riable nam e="VarProj ectGroups"  select="$ GlobalProj ect/wwproj ect:Projec t/wwprojec t:Groups/w wproject:G roup" /> CR LF   66      <xsl:va riable nam e="VarProj ectGroups"  select="$ GlobalProj ect/wwproj ect:Projec t/wwprojec t:Groups/w wproject:G roup" /> CR LF
67      <xsl:va riable nam e="VarProj ectGroupsS tart" sele ct="wwprog ress:Start (count($Va rProjectGr oups))" /> CR LF   67      <xsl:va riable nam e="VarProj ectGroupsS tart" sele ct="wwprog ress:Start (count($Va rProjectGr oups))" /> CR LF
68      <xsl:fo r-each sel ect="$VarP rojectGrou ps"> CR LF   68      <xsl:fo r-each sel ect="$VarP rojectGrou ps"> CR LF
69       <xsl:v ariable na me="VarPro jectGroup"  select=". " /> CR LF   69       <xsl:v ariable na me="VarPro jectGroup"  select=". " /> CR LF
70   CR LF   70   CR LF
71       <!-- S plits --> CR LF   71       <!-- S plits --> CR LF
72       <!--         --> CR LF   72       <!--         --> CR LF
73       <xsl:v ariable na me="VarPro jectGroupS tart" sele ct="wwprog ress:Start (1)" /> CR LF   73       <xsl:v ariable na me="VarPro jectGroupS tart" sele ct="wwprog ress:Start (1)" /> CR LF
74       <xsl:f or-each se lect="$Glo balInput[1 ]"> CR LF   74       <xsl:f or-each se lect="$Glo balInput[1 ]"> CR LF
75        <xsl: variable n ame="VarSp litsFiles"  select="k ey('wwfile s-files-by -groupid-t ype', conc at($VarPro jectGroup/ @GroupID,  ':', $Para meterSplit sType))" / > CR LF   75        <xsl: variable n ame="VarSp litsFiles"  select="k ey('wwfile s-files-by -groupid-t ype', conc at($VarPro jectGroup/ @GroupID,  ':', $Para meterSplit sType))" / > CR LF
76        <xsl: for-each s elect="$Va rSplitsFil es[1]"> CR LF   76        <xsl: for-each s elect="$Va rSplitsFil es[1]"> CR LF
77         <xsl :variable  name="VarS plitsFile"  select=". " /> CR LF   77         <xsl :variable  name="VarS plitsFile"  select=". " /> CR LF
78   CR LF   78   CR LF
79         <!--  Load spli ts --> CR LF   79         <!--  Load spli ts --> CR LF
80         <!--               --> CR LF   80         <!--               --> CR LF
81         <xsl :variable  name="VarS plits" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($V arSplitsFi le/@path)"  /> CR LF   81         <xsl :variable  name="VarS plits" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($V arSplitsFi le/@path)"  /> CR LF
82         <xsl :if test=" count($Var Splits//ww splits:Fra me) &gt; 0 "> CR LF   82         <xsl :if test=" count($Var Splits//ww splits:Fra me) &gt; 0 "> CR LF
83          <!- - Document s --> CR LF   83          <!- - Document s --> CR LF
84          <!- -            --> CR LF   84          <!- -            --> CR LF
85          <xs l:variable  name="Var ProjectDoc uments" se lect="$Var ProjectGro up//wwproj ect:Docume nt" /> CR LF   85          <xs l:variable  name="Var ProjectDoc uments" se lect="$Var ProjectGro up//wwproj ect:Docume nt" /> CR LF
86          <xs l:variable  name="Var ProjectDoc umentsStar t" select= "wwprogres s:Start(co unt($VarPr ojectDocum ents))" /> CR LF   86          <xs l:variable  name="Var ProjectDoc umentsStar t" select= "wwprogres s:Start(co unt($VarPr ojectDocum ents))" /> CR LF
87          <xs l:for-each  select="$ VarProject Documents" > CR LF   87          <xs l:for-each  select="$ VarProject Documents" > CR LF
88           <x sl:variabl e name="Va rProjectDo cument" se lect="." / > CR LF   88           <x sl:variabl e name="Va rProjectDo cument" se lect="." / > CR LF
89   CR LF   89   CR LF
90           <x sl:variabl e name="Va rProjectDo cumentStar t" select= "wwprogres s:Start(1) " /> CR LF   90           <x sl:variabl e name="Va rProjectDo cumentStar t" select= "wwprogres s:Start(1) " /> CR LF
91   CR LF   91   CR LF
92           <! -- Aborted ? --> CR LF   92           <! -- Aborted ? --> CR LF
93           <! --           --> CR LF   93           <! --           --> CR LF
94           <x sl:if test ="not(wwpr ogress:Abo rt())"> CR LF   94           <x sl:if test ="not(wwpr ogress:Abo rt())"> CR LF
95            < !-- Docume nt Frames  --> CR LF   95            < !-- Docume nt Frames  --> CR LF
96            < !--                   --> CR LF   96            < !--                   --> CR LF
97            < xsl:for-ea ch select= "$VarSplit s[1]"> CR LF   97            < xsl:for-ea ch select= "$VarSplit s[1]"> CR LF
98              <xsl:varia ble name=" VarSplitFr ames" sele ct="key('w wsplits-fr ames-by-do cumentid',  $VarProje ctDocument /@Document ID)" /> CR LF   98              <xsl:varia ble name=" VarSplitFr ames" sele ct="key('w wsplits-fr ames-by-do cumentid',  $VarProje ctDocument /@Document ID)" /> CR LF
99              <xsl:if te st="count( $VarSplitF rames) &gt ; 0"> CR LF   99              <xsl:if te st="count( $VarSplitF rames) &gt ; 0"> CR LF
100               <!-- Load  document  --> CR LF   100               <!-- Load  document  --> CR LF
101               <!--                 --> CR LF   101               <!--                 --> CR LF
102               <xsl:for- each selec t="$Global Input[1]"> CR LF   102               <xsl:for- each selec t="$Global Input[1]"> CR LF
103                <xsl:var iable name ="VarDocum entFiles"  select="ke y('wwfiles -files-by- documentid ', $VarPro jectDocume nt/@Docume ntID)[@typ e = $Param eterDepend sType]" /> CR LF   103                <xsl:var iable name ="VarDocum entFiles"  select="ke y('wwfiles -files-by- documentid ', $VarPro jectDocume nt/@Docume ntID)[@typ e = $Param eterDepend sType]" /> CR LF
104                <xsl:var iable name ="VarBehav iorsFiles"  select="k ey('wwfile s-files-by -documenti d', $VarPr ojectDocum ent/@Docum entID)[@ty pe = $Para meterBehav iorsType]"  /> CR LF   104                <xsl:var iable name ="VarBehav iorsFiles"  select="k ey('wwfile s-files-by -documenti d', $VarPr ojectDocum ent/@Docum entID)[@ty pe = $Para meterBehav iorsType]"  /> CR LF
105   CR LF   105   CR LF
106                <!-- Loa d document  --> CR LF   106                <!-- Loa d document  --> CR LF
107                <!--                 --> CR LF   107                <!--                 --> CR LF
108                <xsl:for -each sele ct="$VarDo cumentFile s[1]"> CR LF   108                <xsl:for -each sele ct="$VarDo cumentFile s[1]"> CR LF
109                 <xsl:va riable nam e="VarDocu mentFile"  select="."  /> CR LF   109                 <xsl:va riable nam e="VarDocu mentFile"  select="."  /> CR LF
110                 <xsl:va riable nam e="VarDocu ment" sele ct="wwexsl doc:LoadXM LWithoutRe solver($Va rDocumentF ile/@path) " /> CR LF   110                 <xsl:va riable nam e="VarDocu ment" sele ct="wwexsl doc:LoadXM LWithoutRe solver($Va rDocumentF ile/@path) " /> CR LF
111   CR LF   111   CR LF
112                 <!-- Lo ad behavio rs --> CR LF   112                 <!-- Lo ad behavio rs --> CR LF
113                 <!--                  --> CR LF   113                 <!--                  --> CR LF
114                 <xsl:fo r-each sel ect="$VarB ehaviorsFi les[1]"> CR LF   114                 <xsl:fo r-each sel ect="$VarB ehaviorsFi les[1]"> CR LF
115                  <xsl:v ariable na me="VarBeh aviorsFile " select=" ." /> CR LF   115                  <xsl:v ariable na me="VarBeh aviorsFile " select=" ." /> CR LF
116                  <xsl:v ariable na me="VarBeh aviors" se lect="wwex sldoc:Load XMLWithout Resolver($ VarBehavio rsFile/@pa th)" /> CR LF   116                  <xsl:v ariable na me="VarBeh aviors" se lect="wwex sldoc:Load XMLWithout Resolver($ VarBehavio rsFile/@pa th)" /> CR LF
117   CR LF   117   CR LF
118                  <!-- P rocess doc ument fram es --> CR LF   118                  <!-- P rocess doc ument fram es --> CR LF
119                  <!--                            --> CR LF   119                  <!--                            --> CR LF
120                  <xsl:v ariable na me="VarSpl itFramesSt art" selec t="wwprogr ess:Start( count($Var SplitFrame s))" /> CR LF   120                  <xsl:v ariable na me="VarSpl itFramesSt art" selec t="wwprogr ess:Start( count($Var SplitFrame s))" /> CR LF
121                  <xsl:f or-each se lect="$Var SplitFrame s"> CR LF   121                  <xsl:f or-each se lect="$Var SplitFrame s"> CR LF
122                   <xsl: variable n ame="VarSp litFrame"  select="."  /> CR LF   122                   <xsl: variable n ame="VarSp litFrame"  select="."  /> CR LF
123   CR LF   123   CR LF
124                   <xsl: variable n ame="VarSp litFrameSt art" selec t="wwprogr ess:Start( 1)" /> CR LF   124                   <xsl: variable n ame="VarSp litFrameSt art" selec t="wwprogr ess:Start( 1)" /> CR LF
125   CR LF   125   CR LF
126                   <!--  Aborted? - -> CR LF   126                   <!--  Aborted? - -> CR LF
127                   <!--           - -> CR LF   127                   <!--           - -> CR LF
128                   <xsl: if test="n ot(wwprogr ess:Abort( ))"> CR LF   128                   <xsl: if test="n ot(wwprogr ess:Abort( ))"> CR LF
129                    <!--  Graphic R ule --> CR LF   129                    <!--  Graphic R ule --> CR LF
130                    <!--                --> CR LF   130                    <!--                --> CR LF
131                    <xsl :variable  name="VarC ontextRule " select=" wwprojext: GetContext Rule('Grap hic', $Var SplitFrame /@stylenam e, $VarSpl itFrame/@d ocumentID,  $VarSplit Frame/@id) " /> CR LF   131                    <xsl :variable  name="VarC ontextRule " select=" wwprojext: GetContext Rule('Grap hic', $Var SplitFrame /@stylenam e, $VarSpl itFrame/@d ocumentID,  $VarSplit Frame/@id) " /> CR LF
132                    <xsl :variable  name="VarG enerateOut putOption"  select="$ VarContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'g enerate-ou tput']/@Va lue" /> CR LF   132                    <xsl :variable  name="VarG enerateOut putOption"  select="$ VarContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'g enerate-ou tput']/@Va lue" /> CR LF
133                    <xsl :variable  name="VarG enerateOut put" selec t="(string -length($V arGenerate OutputOpti on) = 0) o r ($VarGen erateOutpu tOption !=  'false')"  /> CR LF   133                    <xsl :variable  name="VarG enerateOut put" selec t="(string -length($V arGenerate OutputOpti on) = 0) o r ($VarGen erateOutpu tOption !=  'false')"  /> CR LF
134                    <xsl :if test=" $VarGenera teOutput"> CR LF   134                    <xsl :if test=" $VarGenera teOutput"> CR LF
135                     <!- - Locate d ocument fr ame --> CR LF   135                     <!- - Locate d ocument fr ame --> CR LF
136                     <!- -                         --> CR LF   136                     <!- -                         --> CR LF
137                     <xs l:for-each  select="$ VarDocumen t[1]"> CR LF   137                     <xs l:for-each  select="$ VarDocumen t[1]"> CR LF
138                      <x sl:variabl e name="Va rDocumentF rame" sele ct="key('w wdoc-frame s-by-id',  $VarSplitF rame/@id)[ 1]" /> CR LF   138                      <x sl:variabl e name="Va rDocumentF rame" sele ct="key('w wdoc-frame s-by-id',  $VarSplitF rame/@id)[ 1]" /> CR LF
139   CR LF   139   CR LF
140                      <! -- Locate  behaviors  frame --> CR LF   140                      <! -- Locate  behaviors  frame --> CR LF
141                      <! --                          --> CR LF   141                      <! --                          --> CR LF
142                      <x sl:for-eac h select=" $VarBehavi ors[1]"> CR LF   142                      <x sl:for-eac h select=" $VarBehavi ors[1]"> CR LF
143                       < xsl:variab le name="V arBehavior sFrame" se lect="key( 'wwbehavio rs-frames- by-id', $V arSplitFra me/@id)[1] " /> CR LF   143                       < xsl:variab le name="V arBehavior sFrame" se lect="key( 'wwbehavio rs-frames- by-id', $V arSplitFra me/@id)[1] " /> CR LF
144   CR LF   144   CR LF
145                       < !-- Full s ize --> CR LF   145                       < !-- Full s ize --> CR LF
146                       < !--            --> CR LF   146                       < !--            --> CR LF
147                       < xsl:call-t emplate na me="FullSi ze"> CR LF   147                       < xsl:call-t emplate na me="FullSi ze"> CR LF
148                         <xsl:with- param name ="ParamDoc umentFile"  select="$ VarDocumen tFile" /> CR LF   148                         <xsl:with- param name ="ParamDoc umentFile"  select="$ VarDocumen tFile" /> CR LF
149                         <xsl:with- param name ="ParamBeh aviorsFile " select=" $VarBehavi orsFile" / > CR LF   149                         <xsl:with- param name ="ParamBeh aviorsFile " select=" $VarBehavi orsFile" / > CR LF
150                         <xsl:with- param name ="ParamSpl itsFile" s elect="$Va rSplitsFil e" /> CR LF   150                         <xsl:with- param name ="ParamSpl itsFile" s elect="$Va rSplitsFil e" /> CR LF
151                         <xsl:with- param name ="ParamDoc umentFrame " select=" $VarDocume ntFrame" / > CR LF   151                         <xsl:with- param name ="ParamDoc umentFrame " select=" $VarDocume ntFrame" / > CR LF
152                         <xsl:with- param name ="ParamBeh aviorsFram e" select= "$VarBehav iorsFrame"  /> CR LF   152                         <xsl:with- param name ="ParamBeh aviorsFram e" select= "$VarBehav iorsFrame"  /> CR LF
153                         <xsl:with- param name ="ParamSpl itFrame" s elect="$Va rSplitFram e" /> CR LF   153                         <xsl:with- param name ="ParamSpl itFrame" s elect="$Va rSplitFram e" /> CR LF
154                         <xsl:with- param name ="ParamCon textRule"  select="$V arContextR ule" /> CR LF   154                         <xsl:with- param name ="ParamCon textRule"  select="$V arContextR ule" /> CR LF
155                       < /xsl:call- template> CR LF   155                       < /xsl:call- template> CR LF
156   CR LF   156   CR LF
157                       < !-- Thumbn ail --> CR LF   157                       < !-- Thumbn ail --> CR LF
158                       < !--            --> CR LF   158                       < !--            --> CR LF
159                       < xsl:if tes t="$Parame terAllowTh umbnails =  'true'"> CR LF   159                       < xsl:if tes t="$Parame terAllowTh umbnails =  'true'"> CR LF
160                         <xsl:call- template n ame="Thumb nail"> CR LF   160                         <xsl:call- template n ame="Thumb nail"> CR LF
161                          <xsl:with -param nam e="ParamDo cumentFram e" select= "$VarDocum entFrame"  /> CR LF   161                          <xsl:with -param nam e="ParamDo cumentFram e" select= "$VarDocum entFrame"  /> CR LF
162                          <xsl:with -param nam e="ParamBe haviorsFra me" select ="$VarBeha viorsFrame " /> CR LF   162                          <xsl:with -param nam e="ParamBe haviorsFra me" select ="$VarBeha viorsFrame " /> CR LF
163                          <xsl:with -param nam e="ParamSp litFrame"  select="$V arSplitFra me" /> CR LF   163                          <xsl:with -param nam e="ParamSp litFrame"  select="$V arSplitFra me" /> CR LF
164                          <xsl:with -param nam e="ParamCo ntextRule"  select="$ VarContext Rule" /> CR LF   164                          <xsl:with -param nam e="ParamCo ntextRule"  select="$ VarContext Rule" /> CR LF
165                         </xsl:call -template> CR LF   165                         </xsl:call -template> CR LF
166                       < /xsl:if> CR LF   166                       < /xsl:if> CR LF
167                      </ xsl:for-ea ch> CR LF   167                      </ xsl:for-ea ch> CR LF
168                     </x sl:for-eac h> CR LF   168                     </x sl:for-eac h> CR LF
169                    </xs l:if> CR LF   169                    </xs l:if> CR LF
170                   </xsl :if> CR LF   170                   </xsl :if> CR LF
171   CR LF   171   CR LF
172                   <xsl: variable n ame="VarSp litFrameEn d" select= "wwprogres s:End()" / > CR LF   172                   <xsl: variable n ame="VarSp litFrameEn d" select= "wwprogres s:End()" / > CR LF
173                  </xsl: for-each> CR LF   173                  </xsl: for-each> CR LF
174                 </xsl:f or-each> CR LF   174                 </xsl:f or-each> CR LF
175                 <xsl:va riable nam e="VarSpli tFramesEnd " select=" wwprogress :End()" /> CR LF   175                 <xsl:va riable nam e="VarSpli tFramesEnd " select=" wwprogress :End()" /> CR LF
176                </xsl:fo r-each> CR LF   176                </xsl:fo r-each> CR LF
177               </xsl:for -each> CR LF   177               </xsl:for -each> CR LF
178              </xsl:if> CR LF   178              </xsl:if> CR LF
179            < /xsl:for-e ach> CR LF   179            < /xsl:for-e ach> CR LF
180           </ xsl:if> CR LF   180           </ xsl:if> CR LF
181   CR LF   181   CR LF
182           <x sl:variabl e name="Va rProjectDo cumentEnd"  select="w wprogress: End()" /> CR LF   182           <x sl:variabl e name="Va rProjectDo cumentEnd"  select="w wprogress: End()" /> CR LF
183   CR LF   183   CR LF
184          </x sl:for-eac h> CR LF   184          </x sl:for-eac h> CR LF
185          <xs l:variable  name="Var ProjectDoc umentsEnd"  select="w wprogress: End()" /> CR LF   185          <xs l:variable  name="Var ProjectDoc umentsEnd"  select="w wprogress: End()" /> CR LF
186   CR LF   186   CR LF
187         </xs l:if> CR LF   187         </xs l:if> CR LF
188   CR LF   188   CR LF
189        </xsl :for-each> CR LF   189        </xsl :for-each> CR LF
190   CR LF   190   CR LF
191       </xsl: for-each> CR LF   191       </xsl: for-each> CR LF
192       <xsl:v ariable na me="VarPro jectGroupE nd" select ="wwprogre ss:End()"  /> CR LF   192       <xsl:v ariable na me="VarPro jectGroupE nd" select ="wwprogre ss:End()"  /> CR LF
193   CR LF   193   CR LF
194      </xsl:f or-each> CR LF   194      </xsl:f or-each> CR LF
195      <xsl:va riable nam e="VarProj ectGroupsE nd" select ="wwprogre ss:End()"  /> CR LF   195      <xsl:va riable nam e="VarProj ectGroupsE nd" select ="wwprogre ss:End()"  /> CR LF
196   CR LF   196   CR LF
197     </wwfile s:Files> CR LF   197     </wwfile s:Files> CR LF
198    </xsl:tem plate> CR LF   198    </xsl:tem plate> CR LF
199   CR LF   199   CR LF
200   CR LF   200   CR LF
201    <xsl:temp late name= "FullSize" > CR LF   201    <xsl:temp late name= "FullSize" > CR LF
202     <xsl:par am name="P aramDocume ntFile" /> CR LF   202     <xsl:par am name="P aramDocume ntFile" /> CR LF
203     <xsl:par am name="P aramBehavi orsFile" / > CR LF   203     <xsl:par am name="P aramBehavi orsFile" / > CR LF
204     <xsl:par am name="P aramSplits File" /> CR LF   204     <xsl:par am name="P aramSplits File" /> CR LF
205     <xsl:par am name="P aramDocume ntFrame" / > CR LF   205     <xsl:par am name="P aramDocume ntFrame" / > CR LF
206     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF   206     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF
207     <xsl:par am name="P aramSplitF rame" /> CR LF   207     <xsl:par am name="P aramSplitF rame" /> CR LF
208     <xsl:par am name="P aramContex tRule" /> CR LF   208     <xsl:par am name="P aramContex tRule" /> CR LF
209   CR LF   209   CR LF
210     <!-- Ski p by refer ence graph ics --> CR LF   210     <!-- Ski p by refer ence graph ics --> CR LF
211     <!--                               --> CR LF   211     <!--                               --> CR LF
212     <xsl:var iable name ="VarByRef erence" se lect="$Par amSplitFra me/@byref  = string(t rue())" /> CR LF   212     <xsl:var iable name ="VarByRef erence" se lect="$Par amSplitFra me/@byref  = string(t rue())" /> CR LF
213     <xsl:if  test="not( $VarByRefe rence)"> CR LF   213     <xsl:if  test="not( $VarByRefe rence)"> CR LF
214      <!-- Tr anslation  from sourc e image po ssible? -- > CR LF   214      <!-- Tr anslation  from sourc e image po ssible? -- > CR LF
215      <!--                                             -- > CR LF   215      <!--                                             -- > CR LF
216      <xsl:va riable nam e="VarTran slateAsTex t"> CR LF   216      <xsl:va riable nam e="VarTran slateAsTex t"> CR LF
217       <xsl:i f test="$P aramSplitF rame/@byre f-allowed- by-wif = s tring(true ())"> CR LF   217       <xsl:i f test="$P aramSplitF rame/@byre f-allowed- by-wif = s tring(true ())"> CR LF
218        <!--  Access sou rce image  info --> CR LF   218        <!--  Access sou rce image  info --> CR LF
219        <!--                             --> CR LF   219        <!--                             --> CR LF
220        <xsl: variable n ame="VarSo urceImageI nfo" selec t="wwimagi ng:GetInfo ($ParamSpl itFrame/@s ource)" /> CR LF   220        <xsl: variable n ame="VarSo urceImageI nfo" selec t="wwimagi ng:GetInfo ($ParamSpl itFrame/@s ource)" /> CR LF
221   CR LF   221   CR LF
222        <!--  Raster ima ge format?  --> CR LF   222        <!--  Raster ima ge format?  --> CR LF
223        <!--                         --> CR LF   223        <!--                         --> CR LF
224        <xsl: variable n ame="VarRa sterImageF ormatAsTex t"> CR LF   224        <xsl: variable n ame="VarRa sterImageF ormatAsTex t"> CR LF
225         <xsl :call-temp late name= "Images-Ra sterImageF ormat"> CR LF   225         <xsl :call-temp late name= "Images-Ra sterImageF ormat"> CR LF
226          <xs l:with-par am name="P aramImageI nfo" selec t="$VarSou rceImageIn fo" /> CR LF   226          <xs l:with-par am name="P aramImageI nfo" selec t="$VarSou rceImageIn fo" /> CR LF
227         </xs l:call-tem plate> CR LF   227         </xs l:call-tem plate> CR LF
228        </xsl :variable> CR LF   228        </xsl :variable> CR LF
229        <xsl: variable n ame="VarRa sterImageF ormat" sel ect="$VarR asterImage FormatAsTe xt = strin g(true())"  /> CR LF   229        <xsl: variable n ame="VarRa sterImageF ormat" sel ect="$VarR asterImage FormatAsTe xt = strin g(true())"  /> CR LF
230   CR LF   230   CR LF
231        <!--  Allow if r aster imag e format - -> CR LF   231        <!--  Allow if r aster imag e format - -> CR LF
232        <!--                                 - -> CR LF   232        <!--                                 - -> CR LF
233        <xsl: value-of s elect="$Va rRasterIma geFormat"  /> CR LF   233        <xsl: value-of s elect="$Va rRasterIma geFormat"  /> CR LF
234       </xsl: if> CR LF   234       </xsl: if> CR LF
235      </xsl:v ariable> CR LF   235      </xsl:v ariable> CR LF
236      <xsl:va riable nam e="VarTran slate" sel ect="$VarT ranslateAs Text = str ing(true() )" /> CR LF   236      <xsl:va riable nam e="VarTran slate" sel ect="$VarT ranslateAs Text = str ing(true() )" /> CR LF
237   CR LF   237   CR LF
238      <xsl:ch oose> CR LF   238      <xsl:ch oose> CR LF
239       <!-- T ranslate f rom origio nal source  file --> CR LF   239       <!-- T ranslate f rom origio nal source  file --> CR LF
240       <!--                                          --> CR LF   240       <!--                                          --> CR LF
241       <xsl:w hen test=" $VarTransl ate"> CR LF   241       <xsl:w hen test=" $VarTransl ate"> CR LF
242        <xsl: call-templ ate name=" FullSize-T ranslate"> CR LF   242        <xsl: call-templ ate name=" FullSize-T ranslate"> CR LF
243         <xsl :with-para m name="Pa ramDocumen tFile" sel ect="$Para mDocumentF ile" /> CR LF   243         <xsl :with-para m name="Pa ramDocumen tFile" sel ect="$Para mDocumentF ile" /> CR LF
244         <xsl :with-para m name="Pa ramBehavio rsFile" se lect="$Par amBehavior sFile" /> CR LF   244         <xsl :with-para m name="Pa ramBehavio rsFile" se lect="$Par amBehavior sFile" /> CR LF
245         <xsl :with-para m name="Pa ramSplitsF ile" selec t="$ParamS plitsFile"  /> CR LF   245         <xsl :with-para m name="Pa ramSplitsF ile" selec t="$ParamS plitsFile"  /> CR LF
246         <xsl :with-para m name="Pa ramDocumen tFrame" se lect="$Par amDocument Frame" /> CR LF   246         <xsl :with-para m name="Pa ramDocumen tFrame" se lect="$Par amDocument Frame" /> CR LF
247         <xsl :with-para m name="Pa ramBehavio rsFrame" s elect="$Pa ramBehavio rsFrame" / > CR LF   247         <xsl :with-para m name="Pa ramBehavio rsFrame" s elect="$Pa ramBehavio rsFrame" / > CR LF
248         <xsl :with-para m name="Pa ramSplitFr ame" selec t="$ParamS plitFrame"  /> CR LF   248         <xsl :with-para m name="Pa ramSplitFr ame" selec t="$ParamS plitFrame"  /> CR LF
249         <xsl :with-para m name="Pa ramContext Rule" sele ct="$Param ContextRul e" /> CR LF   249         <xsl :with-para m name="Pa ramContext Rule" sele ct="$Param ContextRul e" /> CR LF
250        </xsl :call-temp late> CR LF   250        </xsl :call-temp late> CR LF
251       </xsl: when> CR LF   251       </xsl: when> CR LF
252   CR LF   252   CR LF
253       <!-- R ender via  PostScript  --> CR LF   253       <!-- R ender via  PostScript  --> CR LF
254       <!--                          --> CR LF   254       <!--                          --> CR LF
255       <xsl:o therwise> CR LF   255       <xsl:o therwise> CR LF
256        <xsl: call-templ ate name=" FullSize-P ostScript" > CR LF   256        <xsl: call-templ ate name=" FullSize-P ostScript" > CR LF
257         <xsl :with-para m name="Pa ramDocumen tFile" sel ect="$Para mDocumentF ile" /> CR LF   257         <xsl :with-para m name="Pa ramDocumen tFile" sel ect="$Para mDocumentF ile" /> CR LF
258         <xsl :with-para m name="Pa ramBehavio rsFile" se lect="$Par amBehavior sFile" /> CR LF   258         <xsl :with-para m name="Pa ramBehavio rsFile" se lect="$Par amBehavior sFile" /> CR LF
259         <xsl :with-para m name="Pa ramSplitsF ile" selec t="$ParamS plitsFile"  /> CR LF   259         <xsl :with-para m name="Pa ramSplitsF ile" selec t="$ParamS plitsFile"  /> CR LF
260         <xsl :with-para m name="Pa ramDocumen tFrame" se lect="$Par amDocument Frame" /> CR LF   260         <xsl :with-para m name="Pa ramDocumen tFrame" se lect="$Par amDocument Frame" /> CR LF
261         <xsl :with-para m name="Pa ramBehavio rsFrame" s elect="$Pa ramBehavio rsFrame" / > CR LF   261         <xsl :with-para m name="Pa ramBehavio rsFrame" s elect="$Pa ramBehavio rsFrame" / > CR LF
262         <xsl :with-para m name="Pa ramSplitFr ame" selec t="$ParamS plitFrame"  /> CR LF   262         <xsl :with-para m name="Pa ramSplitFr ame" selec t="$ParamS plitFrame"  /> CR LF
263         <xsl :with-para m name="Pa ramContext Rule" sele ct="$Param ContextRul e" /> CR LF   263         <xsl :with-para m name="Pa ramContext Rule" sele ct="$Param ContextRul e" /> CR LF
264        </xsl :call-temp late> CR LF   264        </xsl :call-temp late> CR LF
265       </xsl: otherwise> CR LF   265       </xsl: otherwise> CR LF
266      </xsl:c hoose> CR LF   266      </xsl:c hoose> CR LF
267     </xsl:if > CR LF   267     </xsl:if > CR LF
268    </xsl:tem plate> CR LF   268    </xsl:tem plate> CR LF
269   CR LF   269   CR LF
270   CR LF   270   CR LF
271    <xsl:temp late name= "FullSize- Translate" > CR LF   271    <xsl:temp late name= "FullSize- Translate" > CR LF
272     <xsl:par am name="P aramDocume ntFile" /> CR LF   272     <xsl:par am name="P aramDocume ntFile" /> CR LF
273     <xsl:par am name="P aramBehavi orsFile" / > CR LF   273     <xsl:par am name="P aramBehavi orsFile" / > CR LF
274     <xsl:par am name="P aramSplits File" /> CR LF   274     <xsl:par am name="P aramSplits File" /> CR LF
275     <xsl:par am name="P aramDocume ntFrame" / > CR LF   275     <xsl:par am name="P aramDocume ntFrame" / > CR LF
276     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF   276     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF
277     <xsl:par am name="P aramSplitF rame" /> CR LF   277     <xsl:par am name="P aramSplitF rame" /> CR LF
278     <xsl:par am name="P aramContex tRule" /> CR LF   278     <xsl:par am name="P aramContex tRule" /> CR LF
279   CR LF   279   CR LF
280     <!-- Get  image-sca le marker  --> CR LF   280     <!-- Get  image-sca le marker  --> CR LF
281     <!--                           --> CR LF   281     <!--                           --> CR LF
282     <xsl:var iable name ="VarImage Scale"> CR LF   282     <xsl:var iable name ="VarImage Scale"> CR LF
283      <xsl:ca ll-templat e name="Im ages-Image ScaleMarke rValue"> CR LF   283      <xsl:ca ll-templat e name="Im ages-Image ScaleMarke rValue"> CR LF
284       <xsl:w ith-param  name="Para mFrameBeha vior" sele ct="$Param BehaviorsF rame" /> CR LF   284       <xsl:w ith-param  name="Para mFrameBeha vior" sele ct="$Param BehaviorsF rame" /> CR LF
285      </xsl:c all-templa te> CR LF   285      </xsl:c all-templa te> CR LF
286     </xsl:va riable> CR LF   286     </xsl:va riable> CR LF
287   CR LF   287   CR LF
288     <!-- Get  graphic o ptions --> CR LF   288     <!-- Get  graphic o ptions --> CR LF
289     <!--                       --> CR LF   289     <!--                       --> CR LF
290     <xsl:var iable name ="VarScale Option" se lect="$Par amContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'sc ale']/@Val ue" /> CR LF   290     <xsl:var iable name ="VarScale Option" se lect="$Par amContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'sc ale']/@Val ue" /> CR LF
291     <xsl:var iable name ="VarMaxWi dthOption" > CR LF   291     <xsl:var iable name ="VarMaxWi dthOption" > CR LF
292      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF   292      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF
293       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'max-width ']/@Value"  /> CR LF   293       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'max-width ']/@Value"  /> CR LF
294      </xsl:c all-templa te> CR LF   294      </xsl:c all-templa te> CR LF
295     </xsl:va riable> CR LF   295     </xsl:va riable> CR LF
296     <xsl:var iable name ="VarMaxHe ightOption "> CR LF   296     <xsl:var iable name ="VarMaxHe ightOption "> CR LF
297      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF   297      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF
298       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'max-heigh t']/@Value " /> CR LF   298       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'max-heigh t']/@Value " /> CR LF
299      </xsl:c all-templa te> CR LF   299      </xsl:c all-templa te> CR LF
300     </xsl:va riable> CR LF   300     </xsl:va riable> CR LF
301   CR LF   301   CR LF
302     <!-- Gen erate imag e --> CR LF   302     <!-- Gen erate imag e --> CR LF
303     <!--                  --> CR LF   303     <!--                  --> CR LF
304     <xsl:var iable name ="VarImage UpToDate"  select="ww filesext:U pToDate($P aramSplitF rame/@path , concat($ GlobalProj ect/wwproj ect:Projec t/@ChangeI D, ':', $V arImageSca le, ':', $ VarScaleOp tion, ':',  $VarMaxWi dthOption,  ':', $Var MaxHeightO ption), $P aramSplitF rame/@grou pID, $Para mSplitFram e/@documen tID, $Glob alActionCh ecksum)" / > CR LF   304     <xsl:var iable name ="VarImage UpToDate"  select="ww filesext:U pToDate($P aramSplitF rame/@path , concat($ GlobalProj ect/wwproj ect:Projec t/@ChangeI D, ':', $V arImageSca le, ':', $ VarScaleOp tion, ':',  $VarMaxWi dthOption,  ':', $Var MaxHeightO ption), $P aramSplitF rame/@grou pID, $Para mSplitFram e/@documen tID, $Glob alActionCh ecksum)" / > CR LF
305     <xsl:if  test="not( $VarImageU pToDate)"> CR LF   305     <xsl:if  test="not( $VarImageU pToDate)"> CR LF
306      <!-- Lo ad image i nfo --> CR LF   306      <!-- Lo ad image i nfo --> CR LF
307      <!--                   --> CR LF   307      <!--                   --> CR LF
308      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($ParamS plitFrame/ @source)"  /> CR LF   308      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($ParamS plitFrame/ @source)"  /> CR LF
309   CR LF   309   CR LF
310      <!-- De fine initi al width/h eight --> CR LF   310      <!-- De fine initi al width/h eight --> CR LF
311      <!--                                --> CR LF   311      <!--                                --> CR LF
312      <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name  = 'by-ref erence-use -document- dimensions ']/@Value"  /> CR LF   312      <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name  = 'by-ref erence-use -document- dimensions ']/@Value"  /> CR LF
313      <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or  ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" /> CR LF   313      <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or  ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" /> CR LF
314      <xsl:va riable nam e="VarInit ialWidth"> CR LF   314      <xsl:va riable nam e="VarInit ialWidth"> CR LF
315       <xsl:c hoose> CR LF   315       <xsl:c hoose> CR LF
316        <xsl: when test= "($VarByRe ferenceGra phicsUseDo cumentDime nsions) or  ($VarImag eInfo/@wid th = 0)"> CR LF   316        <xsl: when test= "($VarByRe ferenceGra phicsUseDo cumentDime nsions) or  ($VarImag eInfo/@wid th = 0)"> CR LF
317         <xsl :variable  name="VarD ocumentFra meWidth" s elect="wwu nits:Numer icPrefix($ ParamDocum entFrame/w wdoc:Attri bute[@name  = 'width' ]/@value)"  /> CR LF   317         <xsl :variable  name="VarD ocumentFra meWidth" s elect="wwu nits:Numer icPrefix($ ParamDocum entFrame/w wdoc:Attri bute[@name  = 'width' ]/@value)"  /> CR LF
318   CR LF   318   CR LF
319         <xsl :value-of  select="ww units:Conv ert($VarDo cumentFram eWidth, 'p oints', 'i nches') *  96" /> CR LF   319         <xsl :value-of  select="ww units:Conv ert($VarDo cumentFram eWidth, 'p oints', 'i nches') *  96" /> CR LF
320        </xsl :when> CR LF   320        </xsl :when> CR LF
321   CR LF   321   CR LF
322        <xsl: otherwise> CR LF   322        <xsl: otherwise> CR LF
323         <xsl :value-of  select="$V arImageInf o/@width"  /> CR LF   323         <xsl :value-of  select="$V arImageInf o/@width"  /> CR LF
324        </xsl :otherwise > CR LF   324        </xsl :otherwise > CR LF
325       </xsl: choose> CR LF   325       </xsl: choose> CR LF
326      </xsl:v ariable> CR LF   326      </xsl:v ariable> CR LF
327      <xsl:va riable nam e="VarInit ialHeight" > CR LF   327      <xsl:va riable nam e="VarInit ialHeight" > CR LF
328       <xsl:c hoose> CR LF   328       <xsl:c hoose> CR LF
329        <xsl: when test= "($VarByRe ferenceGra phicsUseDo cumentDime nsions) or  ($VarImag eInfo/@hei ght = 0)"> CR LF   329        <xsl: when test= "($VarByRe ferenceGra phicsUseDo cumentDime nsions) or  ($VarImag eInfo/@hei ght = 0)"> CR LF
330         <xsl :variable  name="VarD ocumentFra meHeight"  select="ww units:Nume ricPrefix( $ParamDocu mentFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value )" /> CR LF   330         <xsl :variable  name="VarD ocumentFra meHeight"  select="ww units:Nume ricPrefix( $ParamDocu mentFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value )" /> CR LF
331   CR LF   331   CR LF
332         <xsl :value-of  select="ww units:Conv ert($VarDo cumentFram eHeight, ' points', ' inches') *  96" /> CR LF   332         <xsl :value-of  select="ww units:Conv ert($VarDo cumentFram eHeight, ' points', ' inches') *  96" /> CR LF
333        </xsl :when> CR LF   333        </xsl :when> CR LF
334   CR LF   334   CR LF
335        <xsl: otherwise> CR LF   335        <xsl: otherwise> CR LF
336         <xsl :value-of  select="$V arImageInf o/@height"  /> CR LF   336         <xsl :value-of  select="$V arImageInf o/@height"  /> CR LF
337        </xsl :otherwise > CR LF   337        </xsl :otherwise > CR LF
338       </xsl: choose> CR LF   338       </xsl: choose> CR LF
339      </xsl:v ariable> CR LF   339      </xsl:v ariable> CR LF
340   CR LF   340   CR LF
341      <!-- De termine up  scaling f actor --> CR LF   341      <!-- De termine up  scaling f actor --> CR LF
342      <!--                                --> CR LF   342      <!--                                --> CR LF
343      <xsl:va riable nam e="VarUpSc alingFacto r"> CR LF   343      <xsl:va riable nam e="VarUpSc alingFacto r"> CR LF
344       <xsl:c hoose> CR LF   344       <xsl:c hoose> CR LF
345        <!--  Use image- scale mark ers if def ined --> CR LF   345        <!--  Use image- scale mark ers if def ined --> CR LF
346        <!--                                        --> CR LF   346        <!--                                        --> CR LF
347        <xsl: when test= "string-le ngth($VarI mageScale)  &gt; 0"> CR LF   347        <xsl: when test= "string-le ngth($VarI mageScale)  &gt; 0"> CR LF
348         <xsl :value-of  select="$V arImageSca le div 100 .0" /> CR LF   348         <xsl :value-of  select="$V arImageSca le div 100 .0" /> CR LF
349        </xsl :when> CR LF   349        </xsl :when> CR LF
350   CR LF   350   CR LF
351        <!--  Scale --> CR LF   351        <!--  Scale --> CR LF
352        <!--        --> CR LF   352        <!--        --> CR LF
353        <xsl: when test= "(string-l ength($Var ScaleOptio n) &gt; 0)  and ($Var ScaleOptio n != 'none ') and (nu mber($VarS caleOption ) &gt; 0)" > CR LF   353        <xsl: when test= "(string-l ength($Var ScaleOptio n) &gt; 0)  and ($Var ScaleOptio n != 'none ') and (nu mber($VarS caleOption ) &gt; 0)" > CR LF
354         <xsl :value-of  select="$V arScaleOpt ion div 10 0.0" /> CR LF   354         <xsl :value-of  select="$V arScaleOpt ion div 10 0.0" /> CR LF
355        </xsl :when> CR LF   355        </xsl :when> CR LF
356   CR LF   356   CR LF
357        <xsl: otherwise> CR LF   357        <xsl: otherwise> CR LF
358         <xsl :value-of  select="1. 0" /> CR LF   358         <xsl :value-of  select="1. 0" /> CR LF
359        </xsl :otherwise > CR LF   359        </xsl :otherwise > CR LF
360       </xsl: choose> CR LF   360       </xsl: choose> CR LF
361      </xsl:v ariable> CR LF   361      </xsl:v ariable> CR LF
362   CR LF   362   CR LF
363      <!-- De termine sc aled width /height -- > CR LF   363      <!-- De termine sc aled width /height -- > CR LF
364      <!--                                  -- > CR LF   364      <!--                                  -- > CR LF
365      <xsl:va riable nam e="VarScal edWidth"> CR LF   365      <xsl:va riable nam e="VarScal edWidth"> CR LF
366       <xsl:v alue-of se lect="$Var InitialWid th * $VarU pScalingFa ctor" /> CR LF   366       <xsl:v alue-of se lect="$Var InitialWid th * $VarU pScalingFa ctor" /> CR LF
367      </xsl:v ariable> CR LF   367      </xsl:v ariable> CR LF
368      <xsl:va riable nam e="VarScal edHeight"> CR LF   368      <xsl:va riable nam e="VarScal edHeight"> CR LF
369       <xsl:v alue-of se lect="$Var InitialHei ght * $Var UpScalingF actor" /> CR LF   369       <xsl:v alue-of se lect="$Var InitialHei ght * $Var UpScalingF actor" /> CR LF
370      </xsl:v ariable> CR LF   370      </xsl:v ariable> CR LF
371   CR LF   371   CR LF
372      <!-- De termine do wn scaling  factor -- > CR LF   372      <!-- De termine do wn scaling  factor -- > CR LF
373      <!--                                  -- > CR LF   373      <!--                                  -- > CR LF
374      <xsl:va riable nam e="VarDown ScalingFac tor"> CR LF   374      <xsl:va riable nam e="VarDown ScalingFac tor"> CR LF
375       <xsl:c hoose> CR LF   375       <xsl:c hoose> CR LF
376        <!--  Max Width/ Height --> CR LF   376        <!--  Max Width/ Height --> CR LF
377        <!--                    --> CR LF   377        <!--                    --> CR LF
378        <xsl: when test= "($VarMaxW idthOption  &gt; 0) o r ($VarMax HeightOpti on &gt; 0) "> CR LF   378        <xsl: when test= "($VarMaxW idthOption  &gt; 0) o r ($VarMax HeightOpti on &gt; 0) "> CR LF
379         <!--  Determine  scaling r atio --> CR LF   379         <!--  Determine  scaling r atio --> CR LF
380         <!--                            --> CR LF   380         <!--                            --> CR LF
381         <xsl :variable  name="VarW idthRatio"  select="$ VarMaxWidt hOption di v $VarScal edWidth" / > CR LF   381         <xsl :variable  name="VarW idthRatio"  select="$ VarMaxWidt hOption di v $VarScal edWidth" / > CR LF
382         <xsl :variable  name="VarH eightRatio " select=" $VarMaxHei ghtOption  div $VarSc aledHeight " /> CR LF   382         <xsl :variable  name="VarH eightRatio " select=" $VarMaxHei ghtOption  div $VarSc aledHeight " /> CR LF
383         <xsl :choose> CR LF   383         <xsl :choose> CR LF
384          <xs l:when tes t="($VarWi dthRatio & lt; 1.0) a nd ((($Var WidthRatio  &gt; 0) a nd ($VarWi dthRatio & lt; $VarHe ightRatio) ) or ($Var HeightRati o = 0))"> CR LF   384          <xs l:when tes t="($VarWi dthRatio & lt; 1.0) a nd ((($Var WidthRatio  &gt; 0) a nd ($VarWi dthRatio & lt; $VarHe ightRatio) ) or ($Var HeightRati o = 0))"> CR LF
385           <x sl:value-o f select=" $VarWidthR atio" /> CR LF   385           <x sl:value-o f select=" $VarWidthR atio" /> CR LF
386          </x sl:when> CR LF   386          </x sl:when> CR LF
387   CR LF   387   CR LF
388          <xs l:when tes t="$VarHei ghtRatio & lt; 1.0"> CR LF   388          <xs l:when tes t="$VarHei ghtRatio & lt; 1.0"> CR LF
389           <x sl:value-o f select=" $VarHeight Ratio" /> CR LF   389           <x sl:value-o f select=" $VarHeight Ratio" /> CR LF
390          </x sl:when> CR LF   390          </x sl:when> CR LF
391   CR LF   391   CR LF
392          <xs l:otherwis e> CR LF   392          <xs l:otherwis e> CR LF
393           <x sl:value-o f select=" 1.0" /> CR LF   393           <x sl:value-o f select=" 1.0" /> CR LF
394          </x sl:otherwi se> CR LF   394          </x sl:otherwi se> CR LF
395         </xs l:choose> CR LF   395         </xs l:choose> CR LF
396        </xsl :when> CR LF   396        </xsl :when> CR LF
397   CR LF   397   CR LF
398        <xsl: otherwise> CR LF   398        <xsl: otherwise> CR LF
399         <xsl :value-of  select="1. 0" /> CR LF   399         <xsl :value-of  select="1. 0" /> CR LF
400        </xsl :otherwise > CR LF   400        </xsl :otherwise > CR LF
401       </xsl: choose> CR LF   401       </xsl: choose> CR LF
402      </xsl:v ariable> CR LF   402      </xsl:v ariable> CR LF
403   CR LF   403   CR LF
404      <!-- De termine ta rget width /height -- > CR LF   404      <!-- De termine ta rget width /height -- > CR LF
405      <!--                                  -- > CR LF   405      <!--                                  -- > CR LF
406      <xsl:va riable nam e="VarTarg etWidth"> CR LF   406      <xsl:va riable nam e="VarTarg etWidth"> CR LF
407       <xsl:v alue-of se lect="ceil ing($VarDo wnScalingF actor * $V arScaledWi dth)" /> CR LF   407       <xsl:v alue-of se lect="ceil ing($VarDo wnScalingF actor * $V arScaledWi dth)" /> CR LF
408      </xsl:v ariable> CR LF   408      </xsl:v ariable> CR LF
409      <xsl:va riable nam e="VarTarg etHeight"> CR LF   409      <xsl:va riable nam e="VarTarg etHeight"> CR LF
410       <xsl:v alue-of se lect="ceil ing($VarDo wnScalingF actor * $V arScaledHe ight)" /> CR LF   410       <xsl:v alue-of se lect="ceil ing($VarDo wnScalingF actor * $V arScaledHe ight)" /> CR LF
411      </xsl:v ariable> CR LF   411      </xsl:v ariable> CR LF
412   CR LF   412   CR LF
413      <!-- Fo rmat --> CR LF   413      <!-- Fo rmat --> CR LF
414      <!--         --> CR LF   414      <!--         --> CR LF
415      <xsl:va riable nam e="VarForm at"> CR LF   415      <xsl:va riable nam e="VarForm at"> CR LF
416       <xsl:v ariable na me="VarFor matOption"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'format']/ @Value" /> CR LF   416       <xsl:v ariable na me="VarFor matOption"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'format']/ @Value" /> CR LF
417       <xsl:c hoose> CR LF   417       <xsl:c hoose> CR LF
418        <xsl: when test= "string-le ngth($VarF ormatOptio n) &gt; 0" > CR LF   418        <xsl: when test= "string-le ngth($VarF ormatOptio n) &gt; 0" > CR LF
419         <xsl :value-of  select="$V arFormatOp tion" /> CR LF   419         <xsl :value-of  select="$V arFormatOp tion" /> CR LF
420        </xsl :when> CR LF   420        </xsl :when> CR LF
421   CR LF   421   CR LF
422        <xsl: otherwise> CR LF   422        <xsl: otherwise> CR LF
423         <xsl :value-of  select="$P arameterDe faultForma t" /> CR LF   423         <xsl :value-of  select="$P arameterDe faultForma t" /> CR LF
424        </xsl :otherwise > CR LF   424        </xsl :otherwise > CR LF
425       </xsl: choose> CR LF   425       </xsl: choose> CR LF
426      </xsl:v ariable> CR LF   426      </xsl:v ariable> CR LF
427   CR LF   427   CR LF
428      <!-- Qu ality (for  JPEGs) -- > CR LF   428      <!-- Qu ality (for  JPEGs) -- > CR LF
429      <!--                       -- > CR LF   429      <!--                       -- > CR LF
430      <xsl:va riable nam e="VarQual ity"> CR LF   430      <xsl:va riable nam e="VarQual ity"> CR LF
431       <xsl:v ariable na me="VarQua lityOption " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'quality' ]/@Value"  /> CR LF   431       <xsl:v ariable na me="VarQua lityOption " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'quality' ]/@Value"  /> CR LF
432   CR LF   432   CR LF
433       <xsl:c hoose> CR LF   433       <xsl:c hoose> CR LF
434        <xsl: when test= "number($V arQualityO ption) &gt ; 0"> CR LF   434        <xsl: when test= "number($V arQualityO ption) &gt ; 0"> CR LF
435         <xsl :value-of  select="$V arQualityO ption" /> CR LF   435         <xsl :value-of  select="$V arQualityO ption" /> CR LF
436        </xsl :when> CR LF   436        </xsl :when> CR LF
437   CR LF   437   CR LF
438        <xsl: otherwise> CR LF   438        <xsl: otherwise> CR LF
439         <xsl :value-of  select="75 " /> CR LF   439         <xsl :value-of  select="75 " /> CR LF
440        </xsl :otherwise > CR LF   440        </xsl :otherwise > CR LF
441       </xsl: choose> CR LF   441       </xsl: choose> CR LF
442      </xsl:v ariable> CR LF   442      </xsl:v ariable> CR LF
443   CR LF   443   CR LF
444      <!-- Tr ansform -- > CR LF   444      <!-- Tr ansform -- > CR LF
445      <!--            -- > CR LF   445      <!--            -- > CR LF
446      <xsl:va riable nam e="VarTran sform" sel ect="wwima ging:Trans form($Para mSplitFram e/@source,  $VarForma t, $VarQua lity, $Var TargetWidt h, $VarTar getHeight,  $ParamSpl itFrame/@p ath)" /> CR LF   446      <xsl:va riable nam e="VarTran sform" sel ect="wwima ging:Trans form($Para mSplitFram e/@source,  $VarForma t, $VarQua lity, $Var TargetWidt h, $VarTar getHeight,  $ParamSpl itFrame/@p ath)" /> CR LF
447     </xsl:if > CR LF   447     </xsl:if > CR LF
448   CR LF   448   CR LF
449     <!-- Dep endency in fo --> CR LF   449     <!-- Dep endency in fo --> CR LF
450     <!--                   --> CR LF   450     <!--                   --> CR LF
451     <wwfiles :File path ="{$ParamS plitFrame/ @path}" ty pe="{$Para meterType} " checksum ="{wwfiles ystem:GetC hecksum($P aramSplitF rame/@path )}" projec tchecksum= "{concat($ GlobalProj ect/wwproj ect:Projec t/@ChangeI D, ':', $V arImageSca le, ':', $ VarScaleOp tion, ':',  $VarMaxWi dthOption,  ':', $Var MaxHeightO ption)}" g roupID="{$ ParamSplit Frame/@gro upID}" doc umentID="{ $ParamSpli tFrame/@do cumentID}"  actionche cksum="{$G lobalActio nChecksum} " category ="{$Parame terCategor y}" use="{ $Parameter Use}" depl oy="{$Para meterDeplo y}"> CR LF   451     <wwfiles :File path ="{$ParamS plitFrame/ @path}" ty pe="{$Para meterType} " checksum ="{wwfiles ystem:GetC hecksum($P aramSplitF rame/@path )}" projec tchecksum= "{concat($ GlobalProj ect/wwproj ect:Projec t/@ChangeI D, ':', $V arImageSca le, ':', $ VarScaleOp tion, ':',  $VarMaxWi dthOption,  ':', $Var MaxHeightO ption)}" g roupID="{$ ParamSplit Frame/@gro upID}" doc umentID="{ $ParamSpli tFrame/@do cumentID}"  actionche cksum="{$G lobalActio nChecksum} " category ="{$Parame terCategor y}" use="{ $Parameter Use}" depl oy="{$Para meterDeplo y}"> CR LF
452      <wwfile s:Depends  path="{$Pa ramSplitFr ame/@sourc e}" checks um="{wwfil esystem:Ge tChecksum( $ParamSpli tFrame/@so urce)}" gr oupID="" d ocumentID= "" /> CR LF   452      <wwfile s:Depends  path="{$Pa ramSplitFr ame/@sourc e}" checks um="{wwfil esystem:Ge tChecksum( $ParamSpli tFrame/@so urce)}" gr oupID="" d ocumentID= "" /> CR LF
453      <wwfile s:Depends  path="{$Pa ramBehavio rsFile/@pa th}" check sum="{$Par amBehavior sFile/@che cksum}" gr oupID="{$P aramBehavi orsFile/@g roupID}" d ocumentID= "{$ParamBe haviorsFil e/@documen tID}" /> CR LF   453      <wwfile s:Depends  path="{$Pa ramBehavio rsFile/@pa th}" check sum="{$Par amBehavior sFile/@che cksum}" gr oupID="{$P aramBehavi orsFile/@g roupID}" d ocumentID= "{$ParamBe haviorsFil e/@documen tID}" /> CR LF
454     </wwfile s:File> CR LF   454     </wwfile s:File> CR LF
455    </xsl:tem plate> CR LF   455    </xsl:tem plate> CR LF
456   CR LF   456   CR LF
457   CR LF   457   CR LF
458    <xsl:temp late name= "FullSize- PostScript "> CR LF   458    <xsl:temp late name= "FullSize- PostScript "> CR LF
459     <xsl:par am name="P aramDocume ntFile" /> CR LF   459     <xsl:par am name="P aramDocume ntFile" /> CR LF
460     <xsl:par am name="P aramBehavi orsFile" / > CR LF   460     <xsl:par am name="P aramBehavi orsFile" / > CR LF
461     <xsl:par am name="P aramSplits File" /> CR LF   461     <xsl:par am name="P aramSplits File" /> CR LF
462     <xsl:par am name="P aramDocume ntFrame" / > CR LF   462     <xsl:par am name="P aramDocume ntFrame" / > CR LF
463     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF   463     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF
464     <xsl:par am name="P aramSplitF rame" /> CR LF   464     <xsl:par am name="P aramSplitF rame" /> CR LF
465     <xsl:par am name="P aramContex tRule" /> CR LF   465     <xsl:par am name="P aramContex tRule" /> CR LF
466   CR LF   466   CR LF
467     <!-- Gen erate Post Script --> CR LF   467     <!-- Gen erate Post Script --> CR LF
468     <!--                       --> CR LF   468     <!--                       --> CR LF
469     <xsl:var iable name ="VarPostS criptPath"  select="w wfilesyste m:Combine( wwprojext: GetDocumen tDataDirec toryPath($ ParamSplit Frame/@doc umentID),  concat(tra nslate($Pa rameterTyp e, ':', '_ '), '_', $ ParamSplit Frame/@id,  '.ps'))"  /> CR LF   469     <xsl:var iable name ="VarPostS criptPath"  select="w wfilesyste m:Combine( wwprojext: GetDocumen tDataDirec toryPath($ ParamSplit Frame/@doc umentID),  concat(tra nslate($Pa rameterTyp e, ':', '_ '), '_', $ ParamSplit Frame/@id,  '.ps'))"  /> CR LF
470     <xsl:var iable name ="VarPostS criptUpToD ate" selec t="wwfiles ext:UpToDa te($VarPos tScriptPat h, '', $Pa ramSplitFr ame/@group ID, $Param SplitFrame /@document ID, $Globa lActionChe cksum)" /> CR LF   470     <xsl:var iable name ="VarPostS criptUpToD ate" selec t="wwfiles ext:UpToDa te($VarPos tScriptPat h, '', $Pa ramSplitFr ame/@group ID, $Param SplitFrame /@document ID, $Globa lActionChe cksum)" /> CR LF
471     <xsl:if  test="not( $VarPostSc riptUpToDa te)"> CR LF   471     <xsl:if  test="not( $VarPostSc riptUpToDa te)"> CR LF
472      <xsl:va riable nam e="VarIgno reResult"  select="ww adapter:Ge neratePost ScriptForI mage($Para mDocumentF rame, $Var PostScript Path)" /> CR LF   472      <xsl:va riable nam e="VarIgno reResult"  select="ww adapter:Ge neratePost ScriptForI mage($Para mDocumentF rame, $Var PostScript Path)" /> CR LF
473     </xsl:if > CR LF   473     </xsl:if > CR LF
474   CR LF   474   CR LF
475     <!-- Dep endency in fo --> CR LF   475     <!-- Dep endency in fo --> CR LF
476     <!--                   --> CR LF   476     <!--                   --> CR LF
477     <xsl:var iable name ="VarPostS criptCheck sum" selec t="wwfiles ystem:GetC hecksum($V arPostScri ptPath)" / > CR LF   477     <xsl:var iable name ="VarPostS criptCheck sum" selec t="wwfiles ystem:GetC hecksum($V arPostScri ptPath)" / > CR LF
478     <wwfiles :File path ="{$VarPos tScriptPat h}" type=" $Parameter PostScript Type" chec ksum="{$Va rPostScrip tChecksum} " projectc hecksum=""  groupID=" {$ParamSpl itFrame/@g roupID}" d ocumentID= "{$ParamSp litFrame/@ documentID }" actionc hecksum="{ $GlobalAct ionChecksu m}"> CR LF   478     <wwfiles :File path ="{$VarPos tScriptPat h}" type=" $Parameter PostScript Type" chec ksum="{$Va rPostScrip tChecksum} " projectc hecksum=""  groupID=" {$ParamSpl itFrame/@g roupID}" d ocumentID= "{$ParamSp litFrame/@ documentID }" actionc hecksum="{ $GlobalAct ionChecksu m}"> CR LF
479      <wwfile s:Depends  path="{$Pa ramDocumen tFile/@pat h}" checks um="{$Para mDocumentF ile/@check sum}" grou pID="{$Par amDocument File/@grou pID}" docu mentID="{$ ParamDocum entFile/@d ocumentID} " /> CR LF   479      <wwfile s:Depends  path="{$Pa ramDocumen tFile/@pat h}" checks um="{$Para mDocumentF ile/@check sum}" grou pID="{$Par amDocument File/@grou pID}" docu mentID="{$ ParamDocum entFile/@d ocumentID} " /> CR LF
480     </wwfile s:File> CR LF   480     </wwfile s:File> CR LF
481   CR LF   481   CR LF
482     <!-- Abo rted? --> CR LF   482     <!-- Abo rted? --> CR LF
483     <!--           --> CR LF   483     <!--           --> CR LF
484     <xsl:if  test="not( wwprogress :Abort())" > CR LF   484     <xsl:if  test="not( wwprogress :Abort())" > CR LF
485      <!-- Ge t image-sc ale marker  --> CR LF   485      <!-- Ge t image-sc ale marker  --> CR LF
486      <!--                           --> CR LF   486      <!--                           --> CR LF
487      <xsl:va riable nam e="VarImag eScale"> CR LF   487      <xsl:va riable nam e="VarImag eScale"> CR LF
488       <xsl:c all-templa te name="I mages-Imag eScaleMark erValue"> CR LF   488       <xsl:c all-templa te name="I mages-Imag eScaleMark erValue"> CR LF
489        <xsl: with-param  name="Par amFrameBeh avior" sel ect="$Para mBehaviors Frame" /> CR LF   489        <xsl: with-param  name="Par amFrameBeh avior" sel ect="$Para mBehaviors Frame" /> CR LF
490       </xsl: call-templ ate> CR LF   490       </xsl: call-templ ate> CR LF
491      </xsl:v ariable> CR LF   491      </xsl:v ariable> CR LF
492   CR LF   492   CR LF
493      <!-- Ge t graphic  options -- > CR LF   493      <!-- Ge t graphic  options -- > CR LF
494      <!--                       -- > CR LF   494      <!--                       -- > CR LF
495      <xsl:va riable nam e="VarScal eOption" s elect="$Pa ramContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 's cale']/@Va lue" /> CR LF   495      <xsl:va riable nam e="VarScal eOption" s elect="$Pa ramContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 's cale']/@Va lue" /> CR LF
496      <xsl:va riable nam e="VarMaxW idthOption "> CR LF   496      <xsl:va riable nam e="VarMaxW idthOption "> CR LF
497       <xsl:c all-templa te name="I mages-MaxS izeOption" > CR LF   497       <xsl:c all-templa te name="I mages-MaxS izeOption" > CR LF
498        <xsl: with-param  name="Par amMaxSizeO ptionValue " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'max-widt h']/@Value " /> CR LF   498        <xsl: with-param  name="Par amMaxSizeO ptionValue " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'max-widt h']/@Value " /> CR LF
499       </xsl: call-templ ate> CR LF   499       </xsl: call-templ ate> CR LF
500      </xsl:v ariable> CR LF   500      </xsl:v ariable> CR LF
501      <xsl:va riable nam e="VarMaxH eightOptio n"> CR LF   501      <xsl:va riable nam e="VarMaxH eightOptio n"> CR LF
502       <xsl:c all-templa te name="I mages-MaxS izeOption" > CR LF   502       <xsl:c all-templa te name="I mages-MaxS izeOption" > CR LF
503        <xsl: with-param  name="Par amMaxSizeO ptionValue " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'max-heig ht']/@Valu e" /> CR LF   503        <xsl: with-param  name="Par amMaxSizeO ptionValue " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'max-heig ht']/@Valu e" /> CR LF
504       </xsl: call-templ ate> CR LF   504       </xsl: call-templ ate> CR LF
505      </xsl:v ariable> CR LF   505      </xsl:v ariable> CR LF
506   CR LF   506   CR LF
507      <!-- Ge nerate ima ge --> CR LF   507      <!-- Ge nerate ima ge --> CR LF
508      <!--                  --> CR LF   508      <!--                  --> CR LF
509      <xsl:va riable nam e="VarImag eUpToDate"  select="w wfilesext: UpToDate($ ParamSplit Frame/@pat h, concat( $GlobalPro ject/wwpro ject:Proje ct/@Change ID, ':', $ VarImageSc ale, ':',  $VarScaleO ption, ':' , $VarMaxW idthOption , ':', $Va rMaxHeight Option), $ ParamSplit Frame/@gro upID, $Par amSplitFra me/@docume ntID, $Glo balActionC hecksum)"  /> CR LF   509      <xsl:va riable nam e="VarImag eUpToDate"  select="w wfilesext: UpToDate($ ParamSplit Frame/@pat h, concat( $GlobalPro ject/wwpro ject:Proje ct/@Change ID, ':', $ VarImageSc ale, ':',  $VarScaleO ption, ':' , $VarMaxW idthOption , ':', $Va rMaxHeight Option), $ ParamSplit Frame/@gro upID, $Par amSplitFra me/@docume ntID, $Glo balActionC hecksum)"  /> CR LF
510      <xsl:if  test="not ($VarPostS criptUpToD ate) or no t($VarImag eUpToDate) "> CR LF   510      <xsl:if  test="not ($VarPostS criptUpToD ate) or no t($VarImag eUpToDate) "> CR LF
511       <!-- R asterize - -> CR LF   511       <!-- R asterize - -> CR LF
512       <!--            - -> CR LF   512       <!--            - -> CR LF
513       <xsl:v ariable na me="VarDoc umentFrame Width" sel ect="wwuni ts:Numeric Prefix($Pa ramDocumen tFrame/wwd oc:Attribu te[@name =  'width']/ @value)" / > CR LF   513       <xsl:v ariable na me="VarDoc umentFrame Width" sel ect="wwuni ts:Numeric Prefix($Pa ramDocumen tFrame/wwd oc:Attribu te[@name =  'width']/ @value)" / > CR LF
514       <xsl:v ariable na me="VarDoc umentFrame Height" se lect="wwun its:Numeri cPrefix($P aramDocume ntFrame/ww doc:Attrib ute[@name  = 'height' ]/@value)"  /> CR LF   514       <xsl:v ariable na me="VarDoc umentFrame Height" se lect="wwun its:Numeri cPrefix($P aramDocume ntFrame/ww doc:Attrib ute[@name  = 'height' ]/@value)"  /> CR LF
515       <xsl:i f test="($ VarDocumen tFrameWidt h &gt; 0)  and ($VarD ocumentFra meHeight & gt; 0)"> CR LF   515       <xsl:i f test="($ VarDocumen tFrameWidt h &gt; 0)  and ($VarD ocumentFra meHeight & gt; 0)"> CR LF
516        <!--  Render DPI  --> CR LF   516        <!--  Render DPI  --> CR LF
517        <!--              --> CR LF   517        <!--              --> CR LF
518        <xsl: variable n ame="VarRe nderDPI"> CR LF   518        <xsl: variable n ame="VarRe nderDPI"> CR LF
519         <xsl :variable  name="VarR enderDPIOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'rend er-dpi']/@ Value" /> CR LF   519         <xsl :variable  name="VarR enderDPIOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'rend er-dpi']/@ Value" /> CR LF
520         <xsl :choose> CR LF   520         <xsl :choose> CR LF
521          <xs l:when tes t="string- length($Va rRenderDPI Option) &g t; 0"> CR LF   521          <xs l:when tes t="string- length($Va rRenderDPI Option) &g t; 0"> CR LF
522           <x sl:value-o f select=" $VarRender DPIOption"  /> CR LF   522           <x sl:value-o f select=" $VarRender DPIOption"  /> CR LF
523          </x sl:when> CR LF   523          </x sl:when> CR LF
524   CR LF   524   CR LF
525          <xs l:otherwis e> CR LF   525          <xs l:otherwis e> CR LF
526           <x sl:value-o f select=" 96" /> CR LF   526           <x sl:value-o f select=" 96" /> CR LF
527          </x sl:otherwi se> CR LF   527          </x sl:otherwi se> CR LF
528         </xs l:choose> CR LF   528         </xs l:choose> CR LF
529        </xsl :variable> CR LF   529        </xsl :variable> CR LF
530   CR LF   530   CR LF
531        <!--  Width/Heig ht --> CR LF   531        <!--  Width/Heig ht --> CR LF
532        <!--                --> CR LF   532        <!--                --> CR LF
533        <xsl: variable n ame="VarWi dth" selec t="wwunits :Convert($ VarDocumen tFrameWidt h, 'points ', 'inches ') * $VarR enderDPI"  /> CR LF   533        <xsl: variable n ame="VarWi dth" selec t="wwunits :Convert($ VarDocumen tFrameWidt h, 'points ', 'inches ') * $VarR enderDPI"  /> CR LF
534        <xsl: variable n ame="VarHe ight" sele ct="wwunit s:Convert( $VarDocume ntFrameHei ght, 'poin ts', 'inch es') * $Va rRenderDPI " /> CR LF   534        <xsl: variable n ame="VarHe ight" sele ct="wwunit s:Convert( $VarDocume ntFrameHei ght, 'poin ts', 'inch es') * $Va rRenderDPI " /> CR LF
535   CR LF   535   CR LF
536        <!--  Format --> CR LF   536        <!--  Format --> CR LF
537        <!--         --> CR LF   537        <!--         --> CR LF
538        <xsl: variable n ame="VarFo rmat"> CR LF   538        <xsl: variable n ame="VarFo rmat"> CR LF
539         <xsl :variable  name="VarF ormatOptio n" select= "$ParamCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'format' ]/@Value"  /> CR LF   539         <xsl :variable  name="VarF ormatOptio n" select= "$ParamCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'format' ]/@Value"  /> CR LF
540         <xsl :choose> CR LF   540         <xsl :choose> CR LF
541          <xs l:when tes t="string- length($Va rFormatOpt ion) &gt;  0"> CR LF   541          <xs l:when tes t="string- length($Va rFormatOpt ion) &gt;  0"> CR LF
542           <x sl:value-o f select=" $VarFormat Option" /> CR LF   542           <x sl:value-o f select=" $VarFormat Option" /> CR LF
543          </x sl:when> CR LF   543          </x sl:when> CR LF
544   CR LF   544   CR LF
545          <xs l:otherwis e> CR LF   545          <xs l:otherwis e> CR LF
546           <x sl:value-o f select=" $Parameter DefaultFor mat" /> CR LF   546           <x sl:value-o f select=" $Parameter DefaultFor mat" /> CR LF
547          </x sl:otherwi se> CR LF   547          </x sl:otherwi se> CR LF
548         </xs l:choose> CR LF   548         </xs l:choose> CR LF
549        </xsl :variable> CR LF   549        </xsl :variable> CR LF
550   CR LF   550   CR LF
551        <!--  Color Dept h --> CR LF   551        <!--  Color Dept h --> CR LF
552        <!--               --> CR LF   552        <!--               --> CR LF
553        <xsl: variable n ame="VarCo lorDepth"> CR LF   553        <xsl: variable n ame="VarCo lorDepth"> CR LF
554         <xsl :variable  name="VarC olorDepthO ption" sel ect="$Para mContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'col or-depth'] /@Value" / > CR LF   554         <xsl :variable  name="VarC olorDepthO ption" sel ect="$Para mContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'col or-depth'] /@Value" / > CR LF
555         <xsl :choose> CR LF   555         <xsl :choose> CR LF
556          <xs l:when tes t="number( $VarColorD epthOption ) &gt; 0"> CR LF   556          <xs l:when tes t="number( $VarColorD epthOption ) &gt; 0"> CR LF
557           <x sl:value-o f select=" $VarColorD epthOption " /> CR LF   557           <x sl:value-o f select=" $VarColorD epthOption " /> CR LF
558          </x sl:when> CR LF   558          </x sl:when> CR LF
559   CR LF   559   CR LF
560          <xs l:otherwis e> CR LF   560          <xs l:otherwis e> CR LF
561           <x sl:value-o f select=" 256" /> CR LF   561           <x sl:value-o f select=" 256" /> CR LF
562          </x sl:otherwi se> CR LF   562          </x sl:otherwi se> CR LF
563         </xs l:choose> CR LF   563         </xs l:choose> CR LF
564        </xsl :variable> CR LF   564        </xsl :variable> CR LF
565   CR LF   565   CR LF
566        <!--  Grayscale  --> CR LF   566        <!--  Grayscale  --> CR LF
567        <!--             --> CR LF   567        <!--             --> CR LF
568        <xsl: variable n ame="VarGr ayscaleOpt ion" selec t="$ParamC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'grays cale']/@Va lue" /> CR LF   568        <xsl: variable n ame="VarGr ayscaleOpt ion" selec t="$ParamC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'grays cale']/@Va lue" /> CR LF
569        <xsl: variable n ame="VarGr ayscale" s elect="$Va rGrayscale Option = ' true'" /> CR LF   569        <xsl: variable n ame="VarGr ayscale" s elect="$Va rGrayscale Option = ' true'" /> CR LF
570   CR LF   570   CR LF
571        <!--  Transparen t --> CR LF   571        <!--  Transparen t --> CR LF
572        <!--               --> CR LF   572        <!--               --> CR LF
573        <xsl: variable n ame="VarTr ansparentO ption" sel ect="$Para mContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'tra nsparent'] /@Value" / > CR LF   573        <xsl: variable n ame="VarTr ansparentO ption" sel ect="$Para mContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'tra nsparent'] /@Value" / > CR LF
574        <xsl: variable n ame="VarTr ansparent"  select="$ VarTranspa rentOption  = 'true'"  /> CR LF   574        <xsl: variable n ame="VarTr ansparent"  select="$ VarTranspa rentOption  = 'true'"  /> CR LF
575   CR LF   575   CR LF
576        <!--  Interlaced  (for GIFs ) --> CR LF   576        <!--  Interlaced  (for GIFs ) --> CR LF
577        <!--                          --> CR LF   577        <!--                          --> CR LF
578        <xsl: variable n ame="VarIn terlacedOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'inte rlaced']/@ Value" /> CR LF   578        <xsl: variable n ame="VarIn terlacedOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'inte rlaced']/@ Value" /> CR LF
579        <xsl: variable n ame="VarIn terlaced"  select="$V arInterlac edOption =  'true'" / > CR LF   579        <xsl: variable n ame="VarIn terlaced"  select="$V arInterlac edOption =  'true'" / > CR LF
580   CR LF   580   CR LF
581        <!--  Quality (f or JPEGs)  --> CR LF   581        <!--  Quality (f or JPEGs)  --> CR LF
582        <!--                        --> CR LF   582        <!--                        --> CR LF
583        <xsl: variable n ame="VarQu ality"> CR LF   583        <xsl: variable n ame="VarQu ality"> CR LF
584         <xsl :variable  name="VarQ ualityOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name  = 'qualit y']/@Value " /> CR LF   584         <xsl :variable  name="VarQ ualityOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name  = 'qualit y']/@Value " /> CR LF
585   CR LF   585   CR LF
586         <xsl :choose> CR LF   586         <xsl :choose> CR LF
587          <xs l:when tes t="number( $VarQualit yOption) & gt; 0"> CR LF   587          <xs l:when tes t="number( $VarQualit yOption) & gt; 0"> CR LF
588           <x sl:value-o f select=" $VarQualit yOption" / > CR LF   588           <x sl:value-o f select=" $VarQualit yOption" / > CR LF
589          </x sl:when> CR LF   589          </x sl:when> CR LF
590   CR LF   590   CR LF
591          <xs l:otherwis e> CR LF   591          <xs l:otherwis e> CR LF
592           <x sl:value-o f select=" 75" /> CR LF   592           <x sl:value-o f select=" 75" /> CR LF
593          </x sl:otherwi se> CR LF   593          </x sl:otherwi se> CR LF
594         </xs l:choose> CR LF   594         </xs l:choose> CR LF
595        </xsl :variable> CR LF   595        </xsl :variable> CR LF
596   CR LF   596   CR LF
597        <!--  Determine  scaling ra tio --> CR LF   597        <!--  Determine  scaling ra tio --> CR LF
598        <!--                            --> CR LF   598        <!--                            --> CR LF
599        <xsl: variable n ame="VarUp ScalingRat io"> CR LF   599        <xsl: variable n ame="VarUp ScalingRat io"> CR LF
600         <xsl :choose> CR LF   600         <xsl :choose> CR LF
601          <!- - Use imag e-scale ma rkers if d efined --> CR LF   601          <!- - Use imag e-scale ma rkers if d efined --> CR LF
602          <!- -                                       --> CR LF   602          <!- -                                       --> CR LF
603          <xs l:when tes t="string- length($Va rImageScal e) &gt; 0" > CR LF   603          <xs l:when tes t="string- length($Va rImageScal e) &gt; 0" > CR LF
604           <x sl:value-o f select=" $VarImageS cale div 1 00.0" /> CR LF   604           <x sl:value-o f select=" $VarImageS cale div 1 00.0" /> CR LF
605          </x sl:when> CR LF   605          </x sl:when> CR LF
606   CR LF   606   CR LF
607          <!- - Scale -- > CR LF   607          <!- - Scale -- > CR LF
608          <!- -       -- > CR LF   608          <!- -       -- > CR LF
609          <xs l:when tes t="(string -length($V arScaleOpt ion) &gt;  0) and ($V arScaleOpt ion != 'no ne') and ( number($Va rScaleOpti on) &gt; 0 )"> CR LF   609          <xs l:when tes t="(string -length($V arScaleOpt ion) &gt;  0) and ($V arScaleOpt ion != 'no ne') and ( number($Va rScaleOpti on) &gt; 0 )"> CR LF
610           <x sl:value-o f select=" $VarScaleO ption div  100.0" /> CR LF   610           <x sl:value-o f select=" $VarScaleO ption div  100.0" /> CR LF
611          </x sl:when> CR LF   611          </x sl:when> CR LF
612   CR LF   612   CR LF
613          <xs l:otherwis e> CR LF   613          <xs l:otherwis e> CR LF
614           <x sl:value-o f select=" 1.0" /> CR LF   614           <x sl:value-o f select=" 1.0" /> CR LF
615          </x sl:otherwi se> CR LF   615          </x sl:otherwi se> CR LF
616         </xs l:choose> CR LF   616         </xs l:choose> CR LF
617        </xsl :variable> CR LF   617        </xsl :variable> CR LF
618   CR LF   618   CR LF
619        <!--  Record ups caling par ameters -- > CR LF   619        <!--  Record ups caling par ameters -- > CR LF
620        <!--                                -- > CR LF   620        <!--                                -- > CR LF
621        <xsl: variable n ame="VarSc aledRender DPI"> CR LF   621        <xsl: variable n ame="VarSc aledRender DPI"> CR LF
622         <xsl :choose> CR LF   622         <xsl :choose> CR LF
623          <xs l:when tes t="$VarUpS calingRati o &gt; 1.0 "> CR LF   623          <xs l:when tes t="$VarUpS calingRati o &gt; 1.0 "> CR LF
624           <x sl:value-o f select=" round($Var RenderDPI  * $VarUpSc alingRatio )" /> CR LF   624           <x sl:value-o f select=" round($Var RenderDPI  * $VarUpSc alingRatio )" /> CR LF
625          </x sl:when> CR LF   625          </x sl:when> CR LF
626   CR LF   626   CR LF
627          <xs l:otherwis e> CR LF   627          <xs l:otherwis e> CR LF
628           <x sl:value-o f select=" $VarRender DPI" /> CR LF   628           <x sl:value-o f select=" $VarRender DPI" /> CR LF
629          </x sl:otherwi se> CR LF   629          </x sl:otherwi se> CR LF
630         </xs l:choose> CR LF   630         </xs l:choose> CR LF
631        </xsl :variable> CR LF   631        </xsl :variable> CR LF
632        <xsl: variable n ame="VarSc aledWidth" > CR LF   632        <xsl: variable n ame="VarSc aledWidth" > CR LF
633         <xsl :choose> CR LF   633         <xsl :choose> CR LF
634          <xs l:when tes t="$VarUpS calingRati o &gt; 1.0 "> CR LF   634          <xs l:when tes t="$VarUpS calingRati o &gt; 1.0 "> CR LF
635           <x sl:value-o f select=" ceiling($V arWidth *  $VarUpScal ingRatio)"  /> CR LF   635           <x sl:value-o f select=" ceiling($V arWidth *  $VarUpScal ingRatio)"  /> CR LF
636          </x sl:when> CR LF   636          </x sl:when> CR LF
637   CR LF   637   CR LF
638          <xs l:otherwis e> CR LF   638          <xs l:otherwis e> CR LF
639           <x sl:value-o f select=" ceiling($V arWidth)"  /> CR LF   639           <x sl:value-o f select=" ceiling($V arWidth)"  /> CR LF
640          </x sl:otherwi se> CR LF   640          </x sl:otherwi se> CR LF
641         </xs l:choose> CR LF   641         </xs l:choose> CR LF
642        </xsl :variable> CR LF   642        </xsl :variable> CR LF
643        <xsl: variable n ame="VarSc aledHeight "> CR LF   643        <xsl: variable n ame="VarSc aledHeight "> CR LF
644         <xsl :choose> CR LF   644         <xsl :choose> CR LF
645          <xs l:when tes t="$VarUpS calingRati o &gt; 1.0 "> CR LF   645          <xs l:when tes t="$VarUpS calingRati o &gt; 1.0 "> CR LF
646           <x sl:value-o f select=" ceiling($V arHeight *  $VarUpSca lingRatio) " /> CR LF   646           <x sl:value-o f select=" ceiling($V arHeight *  $VarUpSca lingRatio) " /> CR LF
647          </x sl:when> CR LF   647          </x sl:when> CR LF
648   CR LF   648   CR LF
649          <xs l:otherwis e> CR LF   649          <xs l:otherwis e> CR LF
650           <x sl:value-o f select=" ceiling($V arHeight)"  /> CR LF   650           <x sl:value-o f select=" ceiling($V arHeight)"  /> CR LF
651          </x sl:otherwi se> CR LF   651          </x sl:otherwi se> CR LF
652         </xs l:choose> CR LF   652         </xs l:choose> CR LF
653        </xsl :variable> CR LF   653        </xsl :variable> CR LF
654   CR LF   654   CR LF
655        <!--  Rasterize  PostScript  --> CR LF   655        <!--  Rasterize  PostScript  --> CR LF
656        <!--                         --> CR LF   656        <!--                         --> CR LF
657        <xsl: variable n ame="VarAd apterName"  select="$ ParamDocum entFrame/w wdoc:Facet s/wwdoc:Fa cet[@type  = 'documen t']/wwdoc: Attribute[ @name = 'a dapter']/@ value" /> CR LF   657        <xsl: variable n ame="VarAd apterName"  select="$ ParamDocum entFrame/w wdoc:Facet s/wwdoc:Fa cet[@type  = 'documen t']/wwdoc: Attribute[ @name = 'a dapter']/@ value" /> CR LF
658        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Ras terizePost Script($Va rPostScrip tPath, $Va rScaledRen derDPI, $V arScaledRe nderDPI, $ VarScaledW idth, $Var ScaledHeig ht, $VarFo rmat, $Var ColorDepth , $VarGray scale, $Va rTranspare nt, $VarIn terlaced,  $VarQualit y, $ParamS plitFrame/ @path)" /> CR LF   658        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Ras terizePost Script($Va rPostScrip tPath, $Va rScaledRen derDPI, $V arScaledRe nderDPI, $ VarScaledW idth, $Var ScaledHeig ht, $VarFo rmat, $Var ColorDepth , $VarGray scale, $Va rTranspare nt, $VarIn terlaced,  $VarQualit y, $ParamS plitFrame/ @path)" /> CR LF
659        <xsl: if test="( number($Va rImageInfo /@width) & gt; 0) and  (number($ VarImageIn fo/@height ) &gt; 0)" > CR LF   659        <xsl: if test="( number($Va rImageInfo /@width) & gt; 0) and  (number($ VarImageIn fo/@height ) &gt; 0)" > CR LF
660         <!--  Determine  downscali ng ratio - -> CR LF   660         <!--  Determine  downscali ng ratio - -> CR LF
661         <!--                                - -> CR LF   661         <!--                                - -> CR LF
662         <xsl :variable  name="VarD ownScaling Ratio"> CR LF   662         <xsl :variable  name="VarD ownScaling Ratio"> CR LF
663          <xs l:choose> CR LF   663          <xs l:choose> CR LF
664           <! -- Use ima ge-scale m arkers if  defined -- > CR LF   664           <! -- Use ima ge-scale m arkers if  defined -- > CR LF
665           <! --                                       -- > CR LF   665           <! --                                       -- > CR LF
666           <x sl:when te st="string -length($V arImageSca le) &gt; 0 "> CR LF   666           <x sl:when te st="string -length($V arImageSca le) &gt; 0 "> CR LF
667            < xsl:value- of select= "$VarImage Scale div  100.0" /> CR LF   667            < xsl:value- of select= "$VarImage Scale div  100.0" /> CR LF
668           </ xsl:when> CR LF   668           </ xsl:when> CR LF
669   CR LF   669   CR LF
670           <! -- Use gra phic optio ns --> CR LF   670           <! -- Use gra phic optio ns --> CR LF
671           <! --                       --> CR LF   671           <! --                       --> CR LF
672           <x sl:otherwi se> CR LF   672           <x sl:otherwi se> CR LF
673            < xsl:choose > CR LF   673            < xsl:choose > CR LF
674              <!-- Max W idth/Heigh t --> CR LF   674              <!-- Max W idth/Heigh t --> CR LF
675              <!--                    --> CR LF   675              <!--                    --> CR LF
676              <xsl:when  test="($Va rMaxWidthO ption &gt;  0) or ($V arMaxHeigh tOption &g t; 0)"> CR LF   676              <xsl:when  test="($Va rMaxWidthO ption &gt;  0) or ($V arMaxHeigh tOption &g t; 0)"> CR LF
677               <!-- Dete rmine scal ing ratio  --> CR LF   677               <!-- Dete rmine scal ing ratio  --> CR LF
678               <!--                            --> CR LF   678               <!--                            --> CR LF
679               <xsl:vari able name= "VarWidthR atio" sele ct="$VarMa xWidthOpti on div $Va rImageInfo /@width" / > CR LF   679               <xsl:vari able name= "VarWidthR atio" sele ct="$VarMa xWidthOpti on div $Va rImageInfo /@width" / > CR LF
680               <xsl:vari able name= "VarHeight Ratio" sel ect="$VarM axHeightOp tion div $ VarImageIn fo/@height " /> CR LF   680               <xsl:vari able name= "VarHeight Ratio" sel ect="$VarM axHeightOp tion div $ VarImageIn fo/@height " /> CR LF
681               <xsl:choo se> CR LF   681               <xsl:choo se> CR LF
682                <xsl:whe n test="(( $VarWidthR atio &gt;  0) and ($V arWidthRat io &lt; $V arHeightRa tio)) or ( $VarHeight Ratio = 0) "> CR LF   682                <xsl:whe n test="(( $VarWidthR atio &gt;  0) and ($V arWidthRat io &lt; $V arHeightRa tio)) or ( $VarHeight Ratio = 0) "> CR LF
683                 <xsl:va lue-of sel ect="$VarW idthRatio"  /> CR LF   683                 <xsl:va lue-of sel ect="$VarW idthRatio"  /> CR LF
684                </xsl:wh en> CR LF   684                </xsl:wh en> CR LF
685   CR LF   685   CR LF
686                <xsl:oth erwise> CR LF   686                <xsl:oth erwise> CR LF
687                 <xsl:va lue-of sel ect="$VarH eightRatio " /> CR LF   687                 <xsl:va lue-of sel ect="$VarH eightRatio " /> CR LF
688                </xsl:ot herwise> CR LF   688                </xsl:ot herwise> CR LF
689               </xsl:cho ose> CR LF   689               </xsl:cho ose> CR LF
690              </xsl:when > CR LF   690              </xsl:when > CR LF
691   CR LF   691   CR LF
692              <!-- Scale  --> CR LF   692              <!-- Scale  --> CR LF
693              <!--        --> CR LF   693              <!--        --> CR LF
694              <xsl:when  test="(str ing-length ($VarScale Option) &g t; 0) and  ($VarScale Option !=  'none') an d (number( $VarScaleO ption) &gt ; 0)"> CR LF   694              <xsl:when  test="(str ing-length ($VarScale Option) &g t; 0) and  ($VarScale Option !=  'none') an d (number( $VarScaleO ption) &gt ; 0)"> CR LF
695               <xsl:valu e-of selec t="$VarSca leOption d iv 100.0"  /> CR LF   695               <xsl:valu e-of selec t="$VarSca leOption d iv 100.0"  /> CR LF
696              </xsl:when > CR LF   696              </xsl:when > CR LF
697   CR LF   697   CR LF
698              <xsl:other wise> CR LF   698              <xsl:other wise> CR LF
699               <xsl:valu e-of selec t="1.0" /> CR LF   699               <xsl:valu e-of selec t="1.0" /> CR LF
700              </xsl:othe rwise> CR LF   700              </xsl:othe rwise> CR LF
701            < /xsl:choos e> CR LF   701            < /xsl:choos e> CR LF
702           </ xsl:otherw ise> CR LF   702           </ xsl:otherw ise> CR LF
703          </x sl:choose> CR LF   703          </x sl:choose> CR LF
704         </xs l:variable > CR LF   704         </xs l:variable > CR LF
705   CR LF   705   CR LF
706         <!--  Need to r esize? --> CR LF   706         <!--  Need to r esize? --> CR LF
707         <!--                   --> CR LF   707         <!--                   --> CR LF
708         <xsl :if test=" ($VarDownS calingRati o &gt; 0.0 ) and ($Va rDownScali ngRatio &l t; 1.0)"> CR LF   708         <xsl :if test=" ($VarDownS calingRati o &gt; 0.0 ) and ($Va rDownScali ngRatio &l t; 1.0)"> CR LF
709          <xs l:variable  name="Var ResizeWidt h" select= "ceiling($ VarImageIn fo/@width  * $VarDown ScalingRat io)" /> CR LF   709          <xs l:variable  name="Var ResizeWidt h" select= "ceiling($ VarImageIn fo/@width  * $VarDown ScalingRat io)" /> CR LF
710          <xs l:variable  name="Var ResizeHeig ht" select ="ceiling( $VarImageI nfo/@heigh t * $VarDo wnScalingR atio)" /> CR LF   710          <xs l:variable  name="Var ResizeHeig ht" select ="ceiling( $VarImageI nfo/@heigh t * $VarDo wnScalingR atio)" /> CR LF
711   CR LF   711   CR LF
712          <xs l:variable  name="Var Transform"  select="w wimaging:T ransform($ ParamSplit Frame/@pat h, $VarIma geInfo/@fo rmat, $Var ResizeWidt h, $VarRes izeHeight,  $ParamSpl itFrame/@p ath)" /> CR LF   712          <xs l:variable  name="Var Transform"  select="w wimaging:T ransform($ ParamSplit Frame/@pat h, $VarIma geInfo/@fo rmat, $Var ResizeWidt h, $VarRes izeHeight,  $ParamSpl itFrame/@p ath)" /> CR LF
713         </xs l:if> CR LF   713         </xs l:if> CR LF
714        </xsl :if> CR LF   714        </xsl :if> CR LF
715       </xsl: if> CR LF   715       </xsl: if> CR LF
716      </xsl:i f> CR LF   716      </xsl:i f> CR LF
717   CR LF   717   CR LF
718      <!-- De pendency i nfo --> CR LF   718      <!-- De pendency i nfo --> CR LF
719      <!--                   --> CR LF   719      <!--                   --> CR LF
720      <wwfile s:File pat h="{$Param SplitFrame /@path}" t ype="{$Par ameterType }" checksu m="{wwfile system:Get Checksum($ ParamSplit Frame/@pat h)}" proje ctchecksum ="{concat( $GlobalPro ject/wwpro ject:Proje ct/@Change ID, ':', $ VarImageSc ale, ':',  $VarScaleO ption, ':' , $VarMaxW idthOption , ':', $Va rMaxHeight Option)}"  groupID="{ $ParamSpli tFrame/@gr oupID}" do cumentID=" {$ParamSpl itFrame/@d ocumentID} " actionch ecksum="{$ GlobalActi onChecksum }" categor y="{$Param eterCatego ry}" use=" {$Paramete rUse}" dep loy="{$Par ameterDepl oy}"> CR LF   720      <wwfile s:File pat h="{$Param SplitFrame /@path}" t ype="{$Par ameterType }" checksu m="{wwfile system:Get Checksum($ ParamSplit Frame/@pat h)}" proje ctchecksum ="{concat( $GlobalPro ject/wwpro ject:Proje ct/@Change ID, ':', $ VarImageSc ale, ':',  $VarScaleO ption, ':' , $VarMaxW idthOption , ':', $Va rMaxHeight Option)}"  groupID="{ $ParamSpli tFrame/@gr oupID}" do cumentID=" {$ParamSpl itFrame/@d ocumentID} " actionch ecksum="{$ GlobalActi onChecksum }" categor y="{$Param eterCatego ry}" use=" {$Paramete rUse}" dep loy="{$Par ameterDepl oy}"> CR LF
721       <wwfil es:Depends  path="{$V arPostScri ptPath}" c hecksum="{ $VarPostSc riptChecks um}" group ID="{$Para mSplitFram e/@groupID }" documen tID="{$Par amSplitFra me/@docume ntID}" /> CR LF   721       <wwfil es:Depends  path="{$V arPostScri ptPath}" c hecksum="{ $VarPostSc riptChecks um}" group ID="{$Para mSplitFram e/@groupID }" documen tID="{$Par amSplitFra me/@docume ntID}" /> CR LF
722       <wwfil es:Depends  path="{$P aramBehavi orsFile/@p ath}" chec ksum="{$Pa ramBehavio rsFile/@ch ecksum}" g roupID="{$ ParamBehav iorsFile/@ groupID}"  documentID ="{$ParamB ehaviorsFi le/@docume ntID}" /> CR LF   722       <wwfil es:Depends  path="{$P aramBehavi orsFile/@p ath}" chec ksum="{$Pa ramBehavio rsFile/@ch ecksum}" g roupID="{$ ParamBehav iorsFile/@ groupID}"  documentID ="{$ParamB ehaviorsFi le/@docume ntID}" /> CR LF
723      </wwfil es:File> CR LF   723      </wwfil es:File> CR LF
724     </xsl:if > CR LF   724     </xsl:if > CR LF
725    </xsl:tem plate> CR LF   725    </xsl:tem plate> CR LF
726   CR LF   726   CR LF
727   CR LF   727   CR LF
728    <xsl:temp late name= "Thumbnail "> CR LF   728    <xsl:temp late name= "Thumbnail "> CR LF
729     <xsl:par am name="P aramDocume ntFrame" / > CR LF   729     <xsl:par am name="P aramDocume ntFrame" / > CR LF
730     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF   730     <xsl:par am name="P aramBehavi orsFrame"  /> CR LF
731     <xsl:par am name="P aramSplitF rame" /> CR LF   731     <xsl:par am name="P aramSplitF rame" /> CR LF
732     <xsl:par am name="P aramContex tRule" /> CR LF   732     <xsl:par am name="P aramContex tRule" /> CR LF
733   CR LF   733   CR LF
734     <!-- Det ermine thu mbnail wid th/height  limits --> CR LF   734     <!-- Det ermine thu mbnail wid th/height  limits --> CR LF
735     <!--                                             --> CR LF   735     <!--                                             --> CR LF
736     <xsl:var iable name ="VarThumb nailWidthO ption"> CR LF   736     <xsl:var iable name ="VarThumb nailWidthO ption"> CR LF
737      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF   737      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF
738       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'thumbnail -width']/@ Value" /> CR LF   738       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'thumbnail -width']/@ Value" /> CR LF
739      </xsl:c all-templa te> CR LF   739      </xsl:c all-templa te> CR LF
740     </xsl:va riable> CR LF   740     </xsl:va riable> CR LF
    741   CR LF
741     <xsl:var iable name ="VarThumb nailHeight Option"> CR LF   742     <xsl:var iable name ="VarThumb nailHeight Option"> CR LF
742      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF   743      <xsl:ca ll-templat e name="Im ages-MaxSi zeOption"> CR LF
743       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'thumbnail -height']/ @Value" /> CR LF   744       <xsl:w ith-param  name="Para mMaxSizeOp tionValue"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'thumbnail -height']/ @Value" /> CR LF
744      </xsl:c all-templa te> CR LF   745      </xsl:c all-templa te> CR LF
745     </xsl:va riable> CR LF   746     </xsl:va riable> CR LF
    747   CR LF
746     <xsl:if  test="($Va rThumbnail WidthOptio n &gt; 0)  or ($VarTh umbnailHei ghtOption  &gt; 0)"> CR LF   748     <xsl:if  test="($Va rThumbnail WidthOptio n &gt; 0)  or ($VarTh umbnailHei ghtOption  &gt; 0)"> CR LF
747      <!-- De termine so urce image  path --> CR LF   749      <!-- De termine so urce image  path --> CR LF
748      <!--                                --> CR LF   750      <!--                                --> CR LF
749      <xsl:va riable nam e="VarThum bnailSourc ePath"> CR LF   751      <xsl:va riable nam e="VarThum bnailSourc ePath"> CR LF
750       <xsl:v ariable na me="VarByR eference"  select="$P aramSplitF rame/@byre f = string (true())"  /> CR LF   752       <xsl:v ariable na me="VarByR eference"  select="$P aramSplitF rame/@byre f = string (true())"  /> CR LF
751       <xsl:c hoose> CR LF   753       <xsl:c hoose> CR LF
752        <!--  Thumbnails  may not h ave been c opied yet  --> CR LF   754        <!--  Thumbnails  may not h ave been c opied yet  --> CR LF
753        <!--                                              --> CR LF   755        <!--                                              --> CR LF
754        <xsl: when test= "$VarByRef erence"> CR LF   756        <xsl: when test= "$VarByRef erence"> CR LF
755         <xsl :value-of  select="$P aramSplitF rame/@sour ce" /> CR LF   757         <xsl :value-of  select="$P aramSplitF rame/@sour ce" /> CR LF
756        </xsl :when> CR LF   758        </xsl :when> CR LF
757   CR LF   759   CR LF
758        <!--  Image exis ts because  it was ju st generat ed --> CR LF   760        <!--  Image exis ts because  it was ju st generat ed --> CR LF
759        <!--                                                 --> CR LF   761        <!--                                                 --> CR LF
760        <xsl: otherwise> CR LF   762        <xsl: otherwise> CR LF
761         <xsl :value-of  select="$P aramSplitF rame/@path " /> CR LF   763         <xsl :value-of  select="$P aramSplitF rame/@path " /> CR LF
762        </xsl :otherwise > CR LF   764        </xsl :otherwise > CR LF
763       </xsl: choose> CR LF   765       </xsl: choose> CR LF
764      </xsl:v ariable> CR LF   766      </xsl:v ariable> CR LF
765   CR LF   767   CR LF
766      <!-- Ge t thumbnai l source i mage info  --> CR LF   768      <!-- Ge t thumbnai l source i mage info  --> CR LF
767      <!--                                     --> CR LF   769      <!--                                     --> CR LF
768      <xsl:va riable nam e="VarThum bnailSourc eImageInfo " select=" wwimaging: GetInfo($V arThumbnai lSourcePat h)" /> CR LF   770      <xsl:va riable nam e="VarThum bnailSourc eImageInfo " select=" wwimaging: GetInfo($V arThumbnai lSourcePat h)" /> CR LF
769   CR LF   771   CR LF
770      <!-- Ra ster image  format? - -> CR LF   772      <!-- Ra ster image  format? - -> CR LF
771      <!--                        - -> CR LF   773      <!--                        - -> CR LF
772      <xsl:va riable nam e="VarRast erImageFor matAsText" > CR LF   774      <xsl:va riable nam e="VarRast erImageFor matAsText" > CR LF
773       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF   775       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF
774        <xsl: with-param  name="Par amImageInf o" select= "$VarThumb nailSource ImageInfo"  /> CR LF   776        <xsl: with-param  name="Par amImageInf o" select= "$VarThumb nailSource ImageInfo"  /> CR LF
775       </xsl: call-templ ate> CR LF   777       </xsl: call-templ ate> CR LF
776      </xsl:v ariable> CR LF   778      </xsl:v ariable> CR LF
777      <xsl:va riable nam e="VarRast erImageFor mat" selec t="$VarRas terImageFo rmatAsText  = string( true())" / > CR LF   779      <xsl:va riable nam e="VarRast erImageFor mat" selec t="$VarRas terImageFo rmatAsText  = string( true())" / > CR LF
778   CR LF   780   CR LF
779      <!-- On ly process  raster im ages --> CR LF   781      <!-- On ly process  raster im ages --> CR LF
780      <!--                               --> CR LF   782      <!--                               --> CR LF
781      <xsl:if  test="$Va rRasterIma geFormat"> CR LF   783      <xsl:if  test="$Va rRasterIma geFormat"> CR LF
782       <!-- D etermine s caling rat io --> CR LF   784       <!-- D etermine s caling rat io --> CR LF
783       <!--                            --> CR LF   785       <!--                            --> CR LF
784       <xsl:v ariable na me="VarSca lingRatio" > CR LF   786       <xsl:v ariable na me="VarSca lingRatio" > CR LF
785        <xsl: variable n ame="VarWi dthRatio"  select="$V arThumbnai lWidthOpti on div $Va rThumbnail SourceImag eInfo/@wid th" /> CR LF   787        <xsl: variable n ame="VarWi dthRatio"  select="$V arThumbnai lWidthOpti on div $Va rThumbnail SourceImag eInfo/@wid th" /> CR LF
786        <xsl: variable n ame="VarHe ightRatio"  select="$ VarThumbna ilHeightOp tion div $ VarThumbna ilSourceIm ageInfo/@h eight" /> CR LF   788        <xsl: variable n ame="VarHe ightRatio"  select="$ VarThumbna ilHeightOp tion div $ VarThumbna ilSourceIm ageInfo/@h eight" /> CR LF
    789   CR LF
    790        <xsl: choose> CR LF
    791         <xsl :when test ="($VarWid thRatio &g t; 0) and  ($VarHeigh tRatio &gt ; 0)"> CR LF
787        <xsl: choose> CR LF   792          <xs l:choose> CR LF
788          <xsl:when  test=" ($VarWidth Ratio &gt;  0) and ( $VarWidthR atio &lt;  $VarHeight Ratio ) "> CR LF   793            <xsl:when  test="
$VarWidthR atio &lt;  $VarHeight Ratio
"> CR LF
789          <xs l:value-of  select="$ VarWidthRa tio" /> CR LF   794            < xsl:value- of select= "$VarWidth Ratio" /> CR LF
790         </xs l:when> CR LF   795           </ xsl:when> CR LF
791   CR LF   796   CR LF
792          <xsl:when  test="$Var He i gh t
Ratio &gt;  0"> CR LF
  797           <x sl:otherwi se> CR LF
    798            < xsl:value- of select= "$VarHeigh tRatio" /> CR LF
    799           </ xsl:otherw ise> CR LF
    800          </x sl:choose> CR LF
    801         </xs l:when> CR LF
    802   CR LF
    803          <xsl:when  test="$Var W i d t h Ratio &gt;  0"> CR LF
793          <xs l:value-of  select="$ VarWidthRa tio" /> CR LF   804          <xs l:value-of  select="$ VarWidthRa tio" /> CR LF
794         </xs l:when> CR LF   805         </xs l:when> CR LF
795   CR LF   806   CR LF
    807         <xsl :when test ="$VarHeig htRatio &g t; 0"> CR LF
    808          <xs l:value-of  select="$ VarHeightR atio" /> CR LF
    809         </xs l:when> CR LF
    810   CR LF
796         <xsl :otherwise > CR LF   811         <xsl :otherwise > CR LF
797          <xs l:value-of  select="1 .0" /> CR LF   812          <xs l:value-of  select="1 .0" /> CR LF
798         </xs l:otherwis e> CR LF   813         </xs l:otherwis e> CR LF
799        </xsl :choose> CR LF   814        </xsl :choose> CR LF
800       </xsl: variable> CR LF   815       </xsl: variable> CR LF
801   CR LF   816   CR LF
802       <!-- N eed thumbn ail? --> CR LF   817       <!-- N eed thumbn ail? --> CR LF
803       <!--                   --> CR LF   818       <!--                   --> CR LF
804       <xsl:i f test="($ VarScaling Ratio &gt;  0.0) and  ($VarScali ngRatio &l t; 1.0)"> CR LF   819       <xsl:i f test="($ VarScaling Ratio &gt;  0.0) and  ($VarScali ngRatio &l t; 1.0)"> CR LF
805        <!--  Thumbnail  up-to-date ? --> CR LF   820        <!--  Thumbnail  up-to-date ? --> CR LF
806        <!--                          --> CR LF   821        <!--                          --> CR LF
807        <xsl: variable n ame="VarTh umbnailPat h" select= "$ParamSpl itFrame/ww splits:Thu mbnail/@pa th" /> CR LF   822        <xsl: variable n ame="VarTh umbnailPat h" select= "$ParamSpl itFrame/ww splits:Thu mbnail/@pa th" /> CR LF
808        <xsl: variable n ame="VarTh umbnailUpT oDate" sel ect="wwfil esext:UpTo Date($VarT humbnailPa th, $Globa lProject/w wproject:P roject/@Ch angeID, $P aramSplitF rame/@grou pID, $Para mSplitFram e/@documen tID, $Glob alActionCh ecksum)" / > CR LF   823        <xsl: variable n ame="VarTh umbnailUpT oDate" sel ect="wwfil esext:UpTo Date($VarT humbnailPa th, $Globa lProject/w wproject:P roject/@Ch angeID, $P aramSplitF rame/@grou pID, $Para mSplitFram e/@documen tID, $Glob alActionCh ecksum)" / > CR LF
809        <xsl: if test="n ot($VarThu mbnailUpTo Date)"> CR LF   824        <xsl: if test="n ot($VarThu mbnailUpTo Date)"> CR LF
810         <xsl :variable  name="VarR esizeWidth " select=" ceiling($V arThumbnai lSourceIma geInfo/@wi dth * $Var ScalingRat io)" /> CR LF   825         <xsl :variable  name="VarR esizeWidth " select=" ceiling($V arThumbnai lSourceIma geInfo/@wi dth * $Var ScalingRat io)" /> CR LF
811         <xsl :variable  name="VarR esizeHeigh t" select= "ceiling($ VarThumbna ilSourceIm ageInfo/@h eight * $V arScalingR atio)" /> CR LF   826         <xsl :variable  name="VarR esizeHeigh t" select= "ceiling($ VarThumbna ilSourceIm ageInfo/@h eight * $V arScalingR atio)" /> CR LF
812   CR LF   827   CR LF
813         <xsl :variable  name="VarT ransform"  select="ww imaging:Tr ansform($V arThumbnai lSourcePat h, $VarThu mbnailSour ceImageInf o/@format,  $VarResiz eWidth, $V arResizeHe ight, $Var ThumbnailP ath)" /> CR LF   828         <xsl :variable  name="VarT ransform"  select="ww imaging:Tr ansform($V arThumbnai lSourcePat h, $VarThu mbnailSour ceImageInf o/@format,  $VarResiz eWidth, $V arResizeHe ight, $Var ThumbnailP ath)" /> CR LF
814        </xsl :if> CR LF   829        </xsl :if> CR LF
815   CR LF   830   CR LF
816        <!--  Track thum bnail file  --> CR LF   831        <!--  Track thum bnail file  --> CR LF
817        <!--                         --> CR LF   832        <!--                         --> CR LF
818        <wwfi les:File p ath="{$Var ThumbnailP ath}" type ="{$Parame terThumbna ilType}" c hecksum="{ wwfilesyst em:GetChec ksum($VarT humbnailPa th)}" proj ectchecksu m="{$Globa lProject/w wproject:P roject/@Ch angeID}" g roupID="{$ ParamSplit Frame/@gro upID}" doc umentID="{ $ParamSpli tFrame/@do cumentID}"  actionche cksum="{$G lobalActio nChecksum} " category ="" use=""  deploy="{ $Parameter Deploy}"> CR LF   833        <wwfi les:File p ath="{$Var ThumbnailP ath}" type ="{$Parame terThumbna ilType}" c hecksum="{ wwfilesyst em:GetChec ksum($VarT humbnailPa th)}" proj ectchecksu m="{$Globa lProject/w wproject:P roject/@Ch angeID}" g roupID="{$ ParamSplit Frame/@gro upID}" doc umentID="{ $ParamSpli tFrame/@do cumentID}"  actionche cksum="{$G lobalActio nChecksum} " category ="" use=""  deploy="{ $Parameter Deploy}"> CR LF
819         <wwf iles:Depen ds path="{ $VarThumbn ailSourceP ath}" chec ksum="{wwf ilesystem: GetChecksu m($VarThum bnailSourc ePath)}" g roupID="{$ ParamSplit Frame/@gro upID}" doc umentID="{ $ParamSpli tFrame/@do cumentID}"  /> CR LF   834         <wwf iles:Depen ds path="{ $VarThumbn ailSourceP ath}" chec ksum="{wwf ilesystem: GetChecksu m($VarThum bnailSourc ePath)}" g roupID="{$ ParamSplit Frame/@gro upID}" doc umentID="{ $ParamSpli tFrame/@do cumentID}"  /> CR LF
820        </wwf iles:File> CR LF   835        </wwf iles:File> CR LF
821       </xsl: if> CR LF   836       </xsl: if> CR LF
822      </xsl:i f> CR LF   837      </xsl:i f> CR LF
823     </xsl:if > CR LF   838     </xsl:if > CR LF
824    </xsl:tem plate> CR LF   839    </xsl:tem plate> CR LF
825   </xsl:styl esheet> CR LF   840   </xsl:styl esheet> CR LF