4. Araxis Merge File Comparison Report

Produced by Araxis Merge on Sat May 2 08:30:07 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.

4.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.4\Formats\Dynamic HTML\Transforms pages.xsl Mon Jan 19 18:02:54 2009 UTC
2 C:\Documents and Settings\allums\Desktop\2009.1\Formats\Dynamic HTML\Transforms pages.xsl Sat May 2 06:55:58 2009 UTC

4.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 1376
Changed 0 0
Inserted 1 1
Removed 0 0

4.3 Comparison options

Whitespace Differences in whitespace are significant
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

4.4 Active regular expressions

Expression Description
\$(Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments

4.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?>   1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml"   2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml"
3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "   3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "
4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"   4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"   5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"   6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"   7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"
8                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"   8                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"   9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
10                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"   10                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
11                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema"   11                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema"
12                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"   12                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"
13                                    xmlns:wwva rs="urn:We bWorks-Var iables-Sch ema"   13                                    xmlns:wwva rs="urn:We bWorks-Var iables-Sch ema"
14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema"   14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema"
15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"   15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema"   16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema"
17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"   17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"
18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"   18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"   19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"   20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"   21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"   22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"   23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"
24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"   24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"   25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"   26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"
27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"   27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
28                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwfiles ww doc wwspli ts wwtoc w wbehaviors  wwvars ww notes wwpr oject wwpa ge wwlocal e wwprogre ss wwlog w wfilesyste m wwuri ww string wwu nits wwfil esext wwpr ojext wwim aging wwex sldoc"   28                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwfiles ww doc wwspli ts wwtoc w wbehaviors  wwvars ww notes wwpr oject wwpa ge wwlocal e wwprogre ss wwlog w wfilesyste m wwuri ww string wwu nits wwfil esext wwpr ojext wwim aging wwex sldoc"
29   >   29   >
30    <xsl:para m name="Gl obalInput"  />   30    <xsl:para m name="Gl obalInput"  />
31    <xsl:para m name="Gl obalPipeli neName" />   31    <xsl:para m name="Gl obalPipeli neName" />
32    <xsl:para m name="Gl obalProjec t" />   32    <xsl:para m name="Gl obalProjec t" />
33    <xsl:para m name="Gl obalFiles"  />   33    <xsl:para m name="Gl obalFiles"  />
34    <xsl:para m name="Pa rameterDep endsType"  />   34    <xsl:para m name="Pa rameterDep endsType"  />
35    <xsl:para m name="Pa rameterSpl itsType" / >   35    <xsl:para m name="Pa rameterSpl itsType" / >
36    <xsl:para m name="Pa rameterLin ksType" />   36    <xsl:para m name="Pa rameterLin ksType" />
37    <xsl:para m name="Pa rameterSty lesType" / >   37    <xsl:para m name="Pa rameterSty lesType" / >
38    <xsl:para m name="Pa rameterLoc aleType" / >   38    <xsl:para m name="Pa rameterLoc aleType" / >
39    <xsl:para m name="Pa rameterBeh aviorsType " />   39    <xsl:para m name="Pa rameterBeh aviorsType " />
40    <xsl:para m name="Pa rameterPro jectVariab lesType" / >   40    <xsl:para m name="Pa rameterPro jectVariab lesType" / >
41    <xsl:para m name="Pa rameterPag eTemplateU RI" />   41    <xsl:para m name="Pa rameterPag eTemplateU RI" />
42    <xsl:para m name="Pa rameterTOC DataType"  />   42    <xsl:para m name="Pa rameterTOC DataType"  />
43    <xsl:para m name="Pa rameterAll owBaggage"  />   43    <xsl:para m name="Pa rameterAll owBaggage"  />
44    <xsl:para m name="Pa rameterAll owGroupToG roup" />   44    <xsl:para m name="Pa rameterAll owGroupToG roup" />
45    <xsl:para m name="Pa rameterAll owURL" />   45    <xsl:para m name="Pa rameterAll owURL" />
46    <xsl:para m name="Pa rameterBag gageSplitF ileType" / >   46    <xsl:para m name="Pa rameterBag gageSplitF ileType" / >
47    <xsl:para m name="Pa rameterTOC SplitFileT ype" />   47    <xsl:para m name="Pa rameterTOC SplitFileT ype" />
48    <xsl:para m name="Pa rameterInd exSplitFil eType" />   48    <xsl:para m name="Pa rameterInd exSplitFil eType" />
49    <xsl:para m name="Pa rameterTyp e" />   49    <xsl:para m name="Pa rameterTyp e" />
50    <xsl:para m name="Pa rameterCat egory" />   50    <xsl:para m name="Pa rameterCat egory" />
51    <xsl:para m name="Pa rameterUse " />   51    <xsl:para m name="Pa rameterUse " />
52    <xsl:para m name="Pa rameterDep loy" />   52    <xsl:para m name="Pa rameterDep loy" />
53    <xsl:para m name="Pa rameterDoc umentPDFTy pe" />   53    <xsl:para m name="Pa rameterDoc umentPDFTy pe" />
54    <xsl:para m name="Pa rameterGro upPDFType"  />   54    <xsl:para m name="Pa rameterGro upPDFType"  />
55     55  
56     56  
57    <xsl:vari able name= "GlobalDef aultNamesp ace" selec t="'http:/ /www.w3.or g/1999/xht ml'" />   57    <xsl:vari able name= "GlobalDef aultNamesp ace" selec t="'http:/ /www.w3.or g/1999/xht ml'" />
58     58  
59     59  
60    <xsl:outp ut method= "xml" enco ding="UTF- 8" indent= "yes" />   60    <xsl:outp ut method= "xml" enco ding="UTF- 8" indent= "yes" />
61    <xsl:name space-alia s styleshe et-prefix= "html" res ult-prefix ="#default " />   61    <xsl:name space-alia s styleshe et-prefix= "html" res ult-prefix ="#default " />
62    <xsl:stri p-space el ements="*"  />   62    <xsl:stri p-space el ements="*"  />
63    <xsl:pres erve-space  elements= "html:scri pt" />   63    <xsl:pres erve-space  elements= "html:scri pt" />
64     64  
65     65  
66    <xsl:incl ude href=" wwtransfor m:common/a ccessibili ty/images. xsl"/>   66    <xsl:incl ude href=" wwtransfor m:common/a ccessibili ty/images. xsl"/>
67    <xsl:incl ude href=" wwtransfor m:common/a ccessibili ty/tables. xsl"/>   67    <xsl:incl ude href=" wwtransfor m:common/a ccessibili ty/tables. xsl"/>
68    <xsl:incl ude href=" wwtransfor m:common/b ehaviors/o ptions.xsl "/>   68    <xsl:incl ude href=" wwtransfor m:common/b ehaviors/o ptions.xsl "/>
69    <xsl:incl ude href=" wwtransfor m:common/c ompanyinfo /companyin fo_content .xsl" />   69    <xsl:incl ude href=" wwtransfor m:common/c ompanyinfo /companyin fo_content .xsl" />
70    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  />   70    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  />
71    <xsl:incl ude href=" wwtransfor m:common/l inks/resol ve.xsl" />   71    <xsl:incl ude href=" wwtransfor m:common/l inks/resol ve.xsl" />
72    <xsl:incl ude href=" wwtransfor m:common/p ages/pages .xsl" />   72    <xsl:incl ude href=" wwtransfor m:common/p ages/pages .xsl" />
73    <xsl:incl ude href=" wwtransfor m:common/p roject/con ditions.xs l" />   73    <xsl:incl ude href=" wwtransfor m:common/p roject/con ditions.xs l" />
74    <xsl:incl ude href=" wwtransfor m:common/p roject/pro perties.xs l" />   74    <xsl:incl ude href=" wwtransfor m:common/p roject/pro perties.xs l" />
75    <xsl:incl ude href=" wwtransfor m:common/t ables/tabl es.xsl" />   75    <xsl:incl ude href=" wwtransfor m:common/t ables/tabl es.xsl" />
76    <xsl:incl ude href=" wwtransfor m:common/v ariables/v ariables.x sl" />   76    <xsl:incl ude href=" wwtransfor m:common/v ariables/v ariables.x sl" />
77    <xsl:incl ude href=" wwtransfor m:html/css _propertie s.xsl" />   77    <xsl:incl ude href=" wwtransfor m:html/css _propertie s.xsl" />
78    <xsl:incl ude href=" wwtransfor m:common/p ages/paget emplate.xs l" />   78    <xsl:incl ude href=" wwtransfor m:common/p ages/paget emplate.xs l" />
79    <xsl:incl ude href=" wwtransfor m:uri/uri. xsl" />   79    <xsl:incl ude href=" wwtransfor m:uri/uri. xsl" />
80    <xsl:incl ude href=" wwformat:T ransforms/ content.xs l" />   80    <xsl:incl ude href=" wwformat:T ransforms/ content.xs l" />
81     81  
82     82  
83    <xsl:vari able name= "GlobalAct ionChecksu m">   83    <xsl:vari able name= "GlobalAct ionChecksu m">
84     <xsl:var iable name ="VarTrans formChecks ums">   84     <xsl:var iable name ="VarTrans formChecks ums">
85      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />   85      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />
86      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath($Param eterPageTe mplateURI) , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath($ ParameterP ageTemplat eURI)))" / >   86      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath($Param eterPageTe mplateURI) , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath($ ParameterP ageTemplat eURI)))" / >
87      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/access ibility/im ages.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwtransfor m:common/a ccessibili ty/images. xsl')))" / >   87      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/access ibility/im ages.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwtransfor m:common/a ccessibili ty/images. xsl')))" / >
88      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/access ibility/ta bles.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwtransfor m:common/a ccessibili ty/tables. xsl')))" / >   88      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/access ibility/ta bles.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwtransfor m:common/a ccessibili ty/tables. xsl')))" / >
89      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/behavi ors/option s.xsl'), ' :', wwfile system:Get Checksum(w wuri:AsFil ePath('wwt ransform:c ommon/beha viors/opti ons.xsl')) )" />   89      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/behavi ors/option s.xsl'), ' :', wwfile system:Get Checksum(w wuri:AsFil ePath('wwt ransform:c ommon/beha viors/opti ons.xsl')) )" />
90      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/compan yinfo/comp anyinfo_co ntent.xsl' ), ':', ww filesystem :GetChecks um(wwuri:A sFilePath( 'wwtransfo rm:common/ companyinf o/companyi nfo_conten t.xsl')))"  />   90      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/compan yinfo/comp anyinfo_co ntent.xsl' ), ':', ww filesystem :GetChecks um(wwuri:A sFilePath( 'wwtransfo rm:common/ companyinf o/companyi nfo_conten t.xsl')))"  />
91      <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')))"  />   91      <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')))"  />
92      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/links/ resolve.xs l'), ':',  wwfilesyst em:GetChec ksum(wwuri :AsFilePat h('wwtrans form:commo n/links/re solve.xsl' )))" />   92      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/links/ resolve.xs l'), ':',  wwfilesyst em:GetChec ksum(wwuri :AsFilePat h('wwtrans form:commo n/links/re solve.xsl' )))" />
93      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/pages/ pages.xsl' ), ':', ww filesystem :GetChecks um(wwuri:A sFilePath( 'wwtransfo rm:common/ pages/page s.xsl')))"  />   93      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/pages/ pages.xsl' ), ':', ww filesystem :GetChecks um(wwuri:A sFilePath( 'wwtransfo rm:common/ pages/page s.xsl')))"  />
94      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/projec t/conditio ns.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pro ject/condi tions.xsl' )))" />   94      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/projec t/conditio ns.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pro ject/condi tions.xsl' )))" />
95      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/projec t/properti es.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pro ject/prope rties.xsl' )))" />   95      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/projec t/properti es.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pro ject/prope rties.xsl' )))" />
96      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/tables /tables.xs l'), ':',  wwfilesyst em:GetChec ksum(wwuri :AsFilePat h('wwtrans form:commo n/tables/t ables.xsl' )))" />   96      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/tables /tables.xs l'), ':',  wwfilesyst em:GetChec ksum(wwuri :AsFilePat h('wwtrans form:commo n/tables/t ables.xsl' )))" />
97      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/variab les/variab les.xsl'),  ':', wwfi lesystem:G etChecksum (wwuri:AsF ilePath('w wtransform :common/va riables/va riables.xs l')))" />   97      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/variab les/variab les.xsl'),  ':', wwfi lesystem:G etChecksum (wwuri:AsF ilePath('w wtransform :common/va riables/va riables.xs l')))" />
98      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:htm l/css_prop erties.xsl '), ':', w wfilesyste m:GetCheck sum(wwuri: AsFilePath ('wwtransf orm:html/c ss_propert ies.xsl')) )" />   98      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:htm l/css_prop erties.xsl '), ':', w wfilesyste m:GetCheck sum(wwuri: AsFilePath ('wwtransf orm:html/c ss_propert ies.xsl')) )" />
99      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/pages/ pagetempla te.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pag es/pagetem plate.xsl' )))" />   99      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/pages/ pagetempla te.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pag es/pagetem plate.xsl' )))" />
100      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:uri /uri.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwtransfor m:uri/uri. xsl')))" / >   100      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:uri /uri.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwtransfor m:uri/uri. xsl')))" / >
101      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/conte nt.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww format:Tra nsforms/co ntent.xsl' )))" />   101      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/conte nt.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww format:Tra nsforms/co ntent.xsl' )))" />
102     </xsl:va riable>   102     </xsl:va riable>
103     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />   103     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />
104    </xsl:var iable>   104    </xsl:var iable>
105     105  
106     106  
107    <!-- Loca le -->   107    <!-- Loca le -->
108    <!--         -->   108    <!--         -->
109    <xsl:vari able name= "GlobalLoc alePath">   109    <xsl:vari able name= "GlobalLoc alePath">
110     <xsl:for -each sele ct="$Globa lFiles[1]" >   110     <xsl:for -each sele ct="$Globa lFiles[1]" >
111      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterLocale Type)[1]/@ path" />   111      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterLocale Type)[1]/@ path" />
112     </xsl:fo r-each>   112     </xsl:fo r-each>
113    </xsl:var iable>   113    </xsl:var iable>
114    <xsl:vari able name= "GlobalLoc ale" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balLocaleP ath)" />   114    <xsl:vari able name= "GlobalLoc ale" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balLocaleP ath)" />
115     115  
116     116  
117    <!-- Mapp ing Entry  Sets -->   117    <!-- Mapp ing Entry  Sets -->
118    <!--                      -->   118    <!--                      -->
119    <xsl:vari able name= "GlobalMap EntrySetsP ath" selec t="wwuri:A sFilePath( 'wwtransfo rm:html/ma pentrysets .xml')" />   119    <xsl:vari able name= "GlobalMap EntrySetsP ath" selec t="wwuri:A sFilePath( 'wwtransfo rm:html/ma pentrysets .xml')" />
120    <xsl:vari able name= "GlobalMap EntrySets"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalM apEntrySet sPath)" />   120    <xsl:vari able name= "GlobalMap EntrySets"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalM apEntrySet sPath)" />
121     121  
122     122  
123    <!-- Page  Template  -->   123    <!-- Page  Template  -->
124    <!--                 -->   124    <!--                 -->
125    <xsl:vari able name= "GlobalPag eTemplateP ath" selec t="wwuri:A sFilePath( $Parameter PageTempla teURI)" />   125    <xsl:vari able name= "GlobalPag eTemplateP ath" selec t="wwuri:A sFilePath( $Parameter PageTempla teURI)" />
126    <xsl:vari able name= "GlobalPag eTemplate"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalP ageTemplat ePath)" />   126    <xsl:vari able name= "GlobalPag eTemplate"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalP ageTemplat ePath)" />
127     127  
128     128  
129    <!-- Proj ect variab les -->   129    <!-- Proj ect variab les -->
130    <!--                     -->   130    <!--                     -->
131    <xsl:vari able name= "GlobalPro jectVariab lesPath">   131    <xsl:vari able name= "GlobalPro jectVariab lesPath">
132     <xsl:for -each sele ct="$Globa lFiles[1]" >   132     <xsl:for -each sele ct="$Globa lFiles[1]" >
133      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterProjec tVariables Type)[1]/@ path" />   133      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterProjec tVariables Type)[1]/@ path" />
134     </xsl:fo r-each>   134     </xsl:fo r-each>
135    </xsl:var iable>   135    </xsl:var iable>
136    <xsl:vari able name= "GlobalPro jectVariab les" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balProject VariablesP ath)" />   136    <xsl:vari able name= "GlobalPro jectVariab les" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balProject VariablesP ath)" />
137     137  
138     138  
139    <xsl:temp late match ="/">   139    <xsl:temp late match ="/">
140     <wwfiles :Files ver sion="1.0" >   140     <wwfiles :Files ver sion="1.0" >
141     141  
142      <xsl:ca ll-templat e name="Do cumentsPag es">   142      <xsl:ca ll-templat e name="Do cumentsPag es">
143       <xsl:w ith-param  name="Para mInput" se lect="$Glo balInput"  />   143       <xsl:w ith-param  name="Para mInput" se lect="$Glo balInput"  />
144       <xsl:w ith-param  name="Para mProject"  select="$G lobalProje ct" />   144       <xsl:w ith-param  name="Para mProject"  select="$G lobalProje ct" />
145       <xsl:w ith-param  name="Para mFiles" se lect="$Glo balFiles"  />   145       <xsl:w ith-param  name="Para mFiles" se lect="$Glo balFiles"  />
146       <xsl:w ith-param  name="Para mLinksType " select=" $Parameter LinksType"  />   146       <xsl:w ith-param  name="Para mLinksType " select=" $Parameter LinksType"  />
147       <xsl:w ith-param  name="Para mDependsTy pe" select ="$Paramet erDependsT ype" />   147       <xsl:w ith-param  name="Para mDependsTy pe" select ="$Paramet erDependsT ype" />
148       <xsl:w ith-param  name="Para mSplitsTyp e" select= "$Paramete rSplitsTyp e" />   148       <xsl:w ith-param  name="Para mSplitsTyp e" select= "$Paramete rSplitsTyp e" />
149       <xsl:w ith-param  name="Para mBehaviors Type" sele ct="$Param eterBehavi orsType" / >   149       <xsl:w ith-param  name="Para mBehaviors Type" sele ct="$Param eterBehavi orsType" / >
150       <xsl:w ith-param  name="Para mTOCDataTy pe" select ="$Paramet erTOCDataT ype" />   150       <xsl:w ith-param  name="Para mTOCDataTy pe" select ="$Paramet erTOCDataT ype" />
151      </xsl:c all-templa te>   151      </xsl:c all-templa te>
152     152  
153     </wwfile s:Files>   153     </wwfile s:Files>
154    </xsl:tem plate>   154    </xsl:tem plate>
155     155  
156     156  
157    <xsl:temp late name= "Page">   157    <xsl:temp late name= "Page">
158     <xsl:par am name="P aramFilesS plits" />   158     <xsl:par am name="P aramFilesS plits" />
159     <xsl:par am name="P aramSplits " />   159     <xsl:par am name="P aramSplits " />
160     <xsl:par am name="P aramBehavi orsFile" / >   160     <xsl:par am name="P aramBehavi orsFile" / >
161     <xsl:par am name="P aramBehavi ors" />   161     <xsl:par am name="P aramBehavi ors" />
162     <xsl:par am name="P aramLinks"  />   162     <xsl:par am name="P aramLinks"  />
163     <xsl:par am name="P aramTOCDat a" />   163     <xsl:par am name="P aramTOCDat a" />
164     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />   164     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />
165     <xsl:par am name="P aramFilesD ocumentNod e" />   165     <xsl:par am name="P aramFilesD ocumentNod e" />
166     <xsl:par am name="P aramSplit"  />   166     <xsl:par am name="P aramSplit"  />
167     <xsl:par am name="P aramDocume nt" />   167     <xsl:par am name="P aramDocume nt" />
168     <xsl:par am name="P aramConten t" />   168     <xsl:par am name="P aramConten t" />
169     169  
170     <!-- Out put -->   170     <!-- Out put -->
171     <!--         -->   171     <!--         -->
172     <xsl:var iable name ="VarUpToD ate" selec t="wwfiles ext:UpToDa te($ParamS plit/@path , $GlobalP roject/wwp roject:Pro ject/@Chan geID, $Par amSplit/@g roupID, $P aramSplit/ @documentI D, $Global ActionChec ksum)" />   172     <xsl:var iable name ="VarUpToD ate" selec t="wwfiles ext:UpToDa te($ParamS plit/@path , $GlobalP roject/wwp roject:Pro ject/@Chan geID, $Par amSplit/@g roupID, $P aramSplit/ @documentI D, $Global ActionChec ksum)" />
173     <xsl:if  test="not( $VarUpToDa te)">   173     <xsl:if  test="not( $VarUpToDa te)">
174      <xsl:va riable nam e="VarResu ltAsXML">   174      <xsl:va riable nam e="VarResu ltAsXML">
175       <!-- O utput dire ctory path  -->   175       <!-- O utput dire ctory path  -->
176       <!--                          -->   176       <!--                          -->
177       <xsl:v ariable na me="VarOut putDirecto ryPath" se lect="wwfi lesystem:C ombine(wwp rojext:Get TargetOutp utDirector yPath(), w wprojext:G etGroupNam e($ParamSp lit/@group ID))" />   177       <xsl:v ariable na me="VarOut putDirecto ryPath" se lect="wwfi lesystem:C ombine(wwp rojext:Get TargetOutp utDirector yPath(), w wprojext:G etGroupNam e($ParamSp lit/@group ID))" />
178     178  
179       <!-- P age Rule - ->   179       <!-- P age Rule - ->
180       <!--            - ->   180       <!--            - ->
181       <xsl:v ariable na me="VarPag eRule" sel ect="wwpro jext:GetRu le('Page',  $ParamSpl it/@stylen ame)" />   181       <xsl:v ariable na me="VarPag eRule" sel ect="wwpro jext:GetRu le('Page',  $ParamSpl it/@stylen ame)" />
182     182  
183       <!-- S plit files  -->   183       <!-- S plit files  -->
184       <!--               -->   184       <!--               -->
185       <xsl:f or-each se lect="$Par amSplits[1 ]">   185       <xsl:f or-each se lect="$Par amSplits[1 ]">
186        <!--  TOC -->   186        <!--  TOC -->
187        <!--      -->   187        <!--      -->
188        <xsl: variable n ame="VarTO CSplitFile " select=" key('wwspl its-files- by-groupid -type', co ncat($Para mSplit/@gr oupID, ':' , $Paramet erTOCSplit FileType)) [1]" />   188        <xsl: variable n ame="VarTO CSplitFile " select=" key('wwspl its-files- by-groupid -type', co ncat($Para mSplit/@gr oupID, ':' , $Paramet erTOCSplit FileType)) [1]" />
189     189  
190        <!--  Index -->   190        <!--  Index -->
191        <!--        -->   191        <!--        -->
192        <xsl: variable n ame="VarIn dexSplitFi le" select ="key('wws plits-file s-by-group id-type',  concat($Pa ramSplit/@ groupID, ' :', $Param eterIndexS plitFileTy pe))[1]" / >   192        <xsl: variable n ame="VarIn dexSplitFi le" select ="key('wws plits-file s-by-group id-type',  concat($Pa ramSplit/@ groupID, ' :', $Param eterIndexS plitFileTy pe))[1]" / >
193     193  
194        <!--  Previous - ->   194        <!--  Previous - ->
195        <!--           - ->   195        <!--           - ->
196        <xsl: variable n ame="VarPo ssiblePrev iousSplits " select=" $ParamSpli t/precedin g-sibling: :wwsplits: Split[1]"  />   196        <xsl: variable n ame="VarPo ssiblePrev iousSplits " select=" $ParamSpli t/precedin g-sibling: :wwsplits: Split[1]"  />
197        <xsl: variable n ame="VarPr eviousSpli t" select= "($VarPoss iblePrevio usSplits[c ount($VarP ossiblePre viousSplit s) = 1] |  $VarTOCSpl itFile[(co unt($VarPo ssiblePrev iousSplits ) = 0) and  (count($P aramSplit  | $VarTOCS plitFile)  = 2)])" />   197        <xsl: variable n ame="VarPr eviousSpli t" select= "($VarPoss iblePrevio usSplits[c ount($VarP ossiblePre viousSplit s) = 1] |  $VarTOCSpl itFile[(co unt($VarPo ssiblePrev iousSplits ) = 0) and  (count($P aramSplit  | $VarTOCS plitFile)  = 2)])" />
198     198  
199        <!--  Next -->   199        <!--  Next -->
200        <!--       -->   200        <!--       -->
201        <xsl: variable n ame="VarPo ssibleNext Splits" se lect="$Par amSplit/fo llowing-si bling::wws plits:Spli t[1]" />   201        <xsl: variable n ame="VarPo ssibleNext Splits" se lect="$Par amSplit/fo llowing-si bling::wws plits:Spli t[1]" />
202        <xsl: variable n ame="VarNe xtSplit" s elect="($V arPossible NextSplits [count($Va rPossibleN extSplits)  = 1] | $V arIndexSpl itFile[(co unt($VarPo ssibleNext Splits) =  0) and (co unt($Param Split | $V arIndexSpl itFile) =  2)])" />   202        <xsl: variable n ame="VarNe xtSplit" s elect="($V arPossible NextSplits [count($Va rPossibleN extSplits)  = 1] | $V arIndexSpl itFile[(co unt($VarPo ssibleNext Splits) =  0) and (co unt($Param Split | $V arIndexSpl itFile) =  2)])" />
203     203  
204        <!--  Skip Navig ation Link  -->   204        <!--  Skip Navig ation Link  -->
205        <!--                         -->   205        <!--                         -->
206        <xsl: variable n ame="VarSk ipNavigati onURI">   206        <xsl: variable n ame="VarSk ipNavigati onURI">
207         <xsl :if test=" wwprojext: GetFormatS etting('ac cessibilit y-skip-nav igation-li nk', 'fals e') = 'tru e'">   207         <xsl :if test=" wwprojext: GetFormatS etting('ac cessibilit y-skip-nav igation-li nk', 'fals e') = 'tru e'">
208          <xs l:text>#</ xsl:text>   208          <xs l:text>#</ xsl:text>
209          <xs l:value-of  select="$ ParamSplit /@id" />   209          <xs l:value-of  select="$ ParamSplit /@id" />
210         </xs l:if>   210         </xs l:if>
211        </xsl :variable>   211        </xsl :variable>
212     212  
213        <!--  PDF Link - ->   213        <!--  PDF Link - ->
214        <!--           - ->   214        <!--           - ->
215        <xsl: variable n ame="VarPD FLinkPath" >   215        <xsl: variable n ame="VarPD FLinkPath" >
216         <xsl :variable  name="VarD ocumentPDF Path">   216         <xsl :variable  name="VarD ocumentPDF Path">
217          <xs l:if test= "wwprojext :GetFormat Setting('p df-per-doc ument', 'f alse') = ' true'">   217          <xs l:if test= "wwprojext :GetFormat Setting('p df-per-doc ument', 'f alse') = ' true'">
218           <x sl:value-o f select=" $GlobalFil es[1]/wwfi les:Files/ wwfiles:Fi le[@docume ntID = $Pa ramFilesDo cumentNode /@document ID and @ty pe = $Para meterDocum entPDFType ]/@path" / >   218           <x sl:value-o f select=" $GlobalFil es[1]/wwfi les:Files/ wwfiles:Fi le[@docume ntID = $Pa ramFilesDo cumentNode /@document ID and @ty pe = $Para meterDocum entPDFType ]/@path" / >
219          </x sl:if>   219          </x sl:if>
220         </xs l:variable >   220         </xs l:variable >
221            221         
222         <xsl :variable  name="VarG roupPDFPat h">   222         <xsl :variable  name="VarG roupPDFPat h">
223          <xs l:if test= "wwprojext :GetFormat Setting('p df-per-gro up', 'fals e') = 'tru e'">   223          <xs l:if test= "wwprojext :GetFormat Setting('p df-per-gro up', 'fals e') = 'tru e'">
224           <x sl:value-o f select=" $GlobalFil es[1]/wwfi les:Files/ wwfiles:Fi le[@groupI D = $Param Split/@gro upID and @ type = $Pa rameterGro upPDFType] /@path" />       224           <x sl:value-o f select=" $GlobalFil es[1]/wwfi les:Files/ wwfiles:Fi le[@groupI D = $Param Split/@gro upID and @ type = $Pa rameterGro upPDFType] /@path" />    
225          </x sl:if>   225          </x sl:if>
226         </xs l:variable >   226         </xs l:variable >
227     227  
228         <xsl :choose>   228         <xsl :choose>
229          <xs l:when tes t="string- length($Va rDocumentP DFPath) &g t; 0">   229          <xs l:when tes t="string- length($Va rDocumentP DFPath) &g t; 0">
230           <x sl:value-o f select=" $VarDocume ntPDFPath"  />   230           <x sl:value-o f select=" $VarDocume ntPDFPath"  />
231          </x sl:when>   231          </x sl:when>
232          <xs l:when tes t="string- length($Va rGroupPDFP ath) &gt;  0">   232          <xs l:when tes t="string- length($Va rGroupPDFP ath) &gt;  0">
233           <x sl:value-o f select=" $VarGroupP DFPath" />   233           <x sl:value-o f select=" $VarGroupP DFPath" />
234          </x sl:when>   234          </x sl:when>
235         </xs l:choose>   235         </xs l:choose>
236        </xsl :variable>   236        </xsl :variable>
237     237  
238        <xsl: variable n ame="VarPD FLinkURI">   238        <xsl: variable n ame="VarPD FLinkURI">
239         <xsl :if test=" string-len gth($VarPD FLinkPath)  &gt; 0">   239         <xsl :if test=" string-len gth($VarPD FLinkPath)  &gt; 0">
240          <xs l:value-of  select="w wuri:GetRe lativeTo($ VarPDFLink Path, $Par amSplit/@p ath)" />   240          <xs l:value-of  select="w wuri:GetRe lativeTo($ VarPDFLink Path, $Par amSplit/@p ath)" />
241         </xs l:if>   241         </xs l:if>
242        </xsl :variable>   242        </xsl :variable>
243     243  
244        <!--  Notes -->   244        <!--  Notes -->
245        <!--        -->   245        <!--        -->
246        <xsl: variable n ame="VarNo tes" selec t="$ParamC ontent//ww doc:Note[n ot(ancesto r::wwdoc:T able) and  not(ancest or::wwdoc: Frame)]" / >   246        <xsl: variable n ame="VarNo tes" selec t="$ParamC ontent//ww doc:Note[n ot(ancesto r::wwdoc:T able) and  not(ancest or::wwdoc: Frame)]" / >
247     247  
248        <!--  Note numbe ring -->   248        <!--  Note numbe ring -->
249        <!--                  -->   249        <!--                  -->
250        <xsl: variable n ame="VarNo teNumberin gAsXML">   250        <xsl: variable n ame="VarNo teNumberin gAsXML">
251         <xsl :call-temp late name= "Notes-Num ber">   251         <xsl :call-temp late name= "Notes-Num ber">
252          <xs l:with-par am name="P aramNotes"  select="$ VarNotes"  />   252          <xs l:with-par am name="P aramNotes"  select="$ VarNotes"  />
253         </xs l:call-tem plate>   253         </xs l:call-tem plate>
254        </xsl :variable>   254        </xsl :variable>
255        <xsl: variable n ame="VarNo teNumberin g" select= "msxsl:nod e-set($Var NoteNumber ingAsXML)"  />   255        <xsl: variable n ame="VarNo teNumberin g" select= "msxsl:nod e-set($Var NoteNumber ingAsXML)"  />
256     256  
257        <!--  Cargo -->   257        <!--  Cargo -->
258        <!--        -->   258        <!--        -->
259        <xsl: variable n ame="VarCa rgo" selec t="$ParamB ehaviors |  $VarNoteN umbering"  />   259        <xsl: variable n ame="VarCa rgo" selec t="$ParamB ehaviors |  $VarNoteN umbering"  />
260     260  
261        <!--  Conditions  -->   261        <!--  Conditions  -->
262        <!--              -->   262        <!--              -->
263        <xsl: variable n ame="VarIn itialCondi tionsAsXML ">   263        <xsl: variable n ame="VarIn itialCondi tionsAsXML ">
264         <!--  catalog-c ss -->   264         <!--  catalog-c ss -->
265         <!--               -->   265         <!--               -->
266         <wwp age:Condit ion name=" catalog-cs s" />   266         <wwp age:Condit ion name=" catalog-cs s" />
267     267  
268         <!--  document- css -->   268         <!--  document- css -->
269         <!--                -->   269         <!--                -->
270         <xsl :if test=" string-len gth($VarPa geRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'document- css']/@Val ue) &gt; 0 ">   270         <xsl :if test=" string-len gth($VarPa geRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'document- css']/@Val ue) &gt; 0 ">
271          <ww page:Condi tion name= "document- css" />   271          <ww page:Condi tion name= "document- css" />
272         </xs l:if>   272         </xs l:if>
273     273  
274         <!--  skip-navi gation -->   274         <!--  skip-navi gation -->
275         <!--                   -->   275         <!--                   -->
276         <xsl :if test=" string-len gth($VarSk ipNavigati onURI) &gt ; 0">   276         <xsl :if test=" string-len gth($VarSk ipNavigati onURI) &gt ; 0">
277          <ww page:Condi tion name= "skip-navi gation" />   277          <ww page:Condi tion name= "skip-navi gation" />
278         </xs l:if>   278         </xs l:if>
279     279  
280         <!--  pdf-exist s -->   280         <!--  pdf-exist s -->
281         <!--              -->   281         <!--              -->
282         <xsl :if test=" string-len gth($VarPD FLinkURI)  &gt; 0">   282         <xsl :if test=" string-len gth($VarPD FLinkURI)  &gt; 0">
283          <ww page:Condi tion name= "pdf-exist s" />   283          <ww page:Condi tion name= "pdf-exist s" />
284         </xs l:if>   284         </xs l:if>
285         <xsl :if test=" string-len gth($VarPD FLinkURI)  = 0">   285         <xsl :if test=" string-len gth($VarPD FLinkURI)  = 0">
286          <ww page:Condi tion name= "pdf-not-e xists" />   286          <ww page:Condi tion name= "pdf-not-e xists" />
287         </xs l:if>   287         </xs l:if>
288     288  
289         <!--  breadcrum bs-top -->   289         <!--  breadcrum bs-top -->
290         <!--                   -->   290         <!--                   -->
291         <xsl :variable  name="VarB readcrumbs TopGenerat eOption" s elect="$Va rPageRule/ wwproject: Options/ww project:Op tion[@Name  = 'breadc rumbs-top- generate'] /@Value" / >   291         <xsl :variable  name="VarB readcrumbs TopGenerat eOption" s elect="$Va rPageRule/ wwproject: Options/ww project:Op tion[@Name  = 'breadc rumbs-top- generate'] /@Value" / >
292         <xsl :if test=" ($VarBread crumbsTopG enerateOpt ion = 'tru e') or (st ring-lengt h($VarBrea dcrumbsTop GenerateOp tion) = 0) ">   292         <xsl :if test=" ($VarBread crumbsTopG enerateOpt ion = 'tru e') or (st ring-lengt h($VarBrea dcrumbsTop GenerateOp tion) = 0) ">
293          <ww page:Condi tion name= "breadcrum bs-top" />   293          <ww page:Condi tion name= "breadcrum bs-top" />
294         </xs l:if>   294         </xs l:if>
295     295  
296         <!--  breadcrum bs-bottom  -->   296         <!--  breadcrum bs-bottom  -->
297         <!--                       -->   297         <!--                       -->
298         <xsl :variable  name="VarB readcrumbs BottomGene rateOption " select=" $VarPageRu le/wwproje ct:Options /wwproject :Option[@N ame = 'bre adcrumbs-b ottom-gene rate']/@Va lue" />   298         <xsl :variable  name="VarB readcrumbs BottomGene rateOption " select=" $VarPageRu le/wwproje ct:Options /wwproject :Option[@N ame = 'bre adcrumbs-b ottom-gene rate']/@Va lue" />
299         <xsl :if test=" $VarBreadc rumbsBotto mGenerateO ption = 't rue'">   299         <xsl :if test=" $VarBreadc rumbsBotto mGenerateO ption = 't rue'">
300          <ww page:Condi tion name= "breadcrum bs-bottom"  />   300          <ww page:Condi tion name= "breadcrum bs-bottom"  />
301         </xs l:if>   301         </xs l:if>
302     302  
303         <!--  navigatio n-top -->   303         <!--  navigatio n-top -->
304         <!--                  -->   304         <!--                  -->
305         <xsl :variable  name="VarN avigationT opGenerate Option" se lect="$Var PageRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'navigat ion-top-ge nerate']/@ Value" />   305         <xsl :variable  name="VarN avigationT opGenerate Option" se lect="$Var PageRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'navigat ion-top-ge nerate']/@ Value" />
306         <xsl :if test=" ($VarNavig ationTopGe nerateOpti on = 'true ') or (str ing-length ($VarNavig ationTopGe nerateOpti on) = 0)">   306         <xsl :if test=" ($VarNavig ationTopGe nerateOpti on = 'true ') or (str ing-length ($VarNavig ationTopGe nerateOpti on) = 0)">
307          <ww page:Condi tion name= "navigatio n-top" />   307          <ww page:Condi tion name= "navigatio n-top" />
308         </xs l:if>   308         </xs l:if>
309     309  
310         <!--  navigatio n-bottom - ->   310         <!--  navigatio n-bottom - ->
311         <!--                     - ->   311         <!--                     - ->
312         <xsl :variable  name="VarN avigationB ottomGener ateOption"  select="$ VarPageRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'navi gation-bot tom-genera te']/@Valu e" />   312         <xsl :variable  name="VarN avigationB ottomGener ateOption"  select="$ VarPageRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'navi gation-bot tom-genera te']/@Valu e" />
313         <xsl :if test=" $VarNaviga tionBottom GenerateOp tion = 'tr ue'">   313         <xsl :if test=" $VarNaviga tionBottom GenerateOp tion = 'tr ue'">
314          <ww page:Condi tion name= "navigatio n-bottom"  />   314          <ww page:Condi tion name= "navigatio n-bottom"  />
315         </xs l:if>   315         </xs l:if>
316     316  
317         <!--  Generate  TOC? -->   317         <!--  Generate  TOC? -->
318         <!--                 -->   318         <!--                 -->
319         <xsl :if test=" count($Var TOCSplitFi le) = 1">   319         <xsl :if test=" count($Var TOCSplitFi le) = 1">
320          <xs l:choose>   320          <xs l:choose>
321           <x sl:when te st="count( $ParamSpli t | $VarTO CSplitFile ) = 1">   321           <x sl:when te st="count( $ParamSpli t | $VarTO CSplitFile ) = 1">
322            < !-- naviga tion-toc-c urrent -->   322            < !-- naviga tion-toc-c urrent -->
323            < !--                          -->   323            < !--                          -->
324            < wwpage:Con dition nam e="navigat ion-toc-cu rrent" />   324            < wwpage:Con dition nam e="navigat ion-toc-cu rrent" />
325           </ xsl:when>   325           </ xsl:when>
326     326  
327           <x sl:otherwi se>   327           <x sl:otherwi se>
328            < !-- naviga tion-toc-n ot-current  -->   328            < !-- naviga tion-toc-n ot-current  -->
329            < !--                          -->   329            < !--                          -->
330            < wwpage:Con dition nam e="navigat ion-toc-no t-current"  />   330            < wwpage:Con dition nam e="navigat ion-toc-no t-current"  />
331           </ xsl:otherw ise>   331           </ xsl:otherw ise>
332          </x sl:choose>   332          </x sl:choose>
333         </xs l:if>   333         </xs l:if>
334     334  
335         <!--  navigatio n-previous -exists -- >   335         <!--  navigatio n-previous -exists -- >
336         <!--                               -- >   336         <!--                               -- >
337         <xsl :if test=" count($Var PreviousSp lit) = 1">   337         <xsl :if test=" count($Var PreviousSp lit) = 1">
338          <ww page:Condi tion name= "navigatio n-previous -exists" / >   338          <ww page:Condi tion name= "navigatio n-previous -exists" / >
339         </xs l:if>   339         </xs l:if>
340     340  
341         <!--  navigatio n-previous -not-exist s -->   341         <!--  navigatio n-previous -not-exist s -->
342         <!--                                    -->   342         <!--                                    -->
343         <xsl :if test=" count($Var PreviousSp lit) = 0">   343         <xsl :if test=" count($Var PreviousSp lit) = 0">
344          <ww page:Condi tion name= "navigatio n-previous -not-exist s" />   344          <ww page:Condi tion name= "navigatio n-previous -not-exist s" />
345         </xs l:if>   345         </xs l:if>
346     346  
347         <!--  navigatio n-next-exi sts -->   347         <!--  navigatio n-next-exi sts -->
348         <!--                           -->   348         <!--                           -->
349         <xsl :if test=" count($Var NextSplit)  = 1">   349         <xsl :if test=" count($Var NextSplit)  = 1">
350          <ww page:Condi tion name= "navigatio n-next-exi sts" />   350          <ww page:Condi tion name= "navigatio n-next-exi sts" />
351         </xs l:if>   351         </xs l:if>
352     352  
353         <!--  navigatio n-next-not -exists -- >   353         <!--  navigatio n-next-not -exists -- >
354         <!--                               -- >   354         <!--                               -- >
355         <xsl :if test=" count($Var NextSplit)  = 0">   355         <xsl :if test=" count($Var NextSplit)  = 0">
356          <ww page:Condi tion name= "navigatio n-next-not -exists" / >   356          <ww page:Condi tion name= "navigatio n-next-not -exists" / >
357         </xs l:if>   357         </xs l:if>
358     358  
359         <!--  Generate  Index? -->   359         <!--  Generate  Index? -->
360         <!--                   -->   360         <!--                   -->
361         <xsl :if test=" count($Var IndexSplit File) = 1" >   361         <xsl :if test=" count($Var IndexSplit File) = 1" >
362          <xs l:choose>   362          <xs l:choose>
363           <x sl:when te st="count( $ParamSpli t | $VarIn dexSplitFi le) = 1">   363           <x sl:when te st="count( $ParamSpli t | $VarIn dexSplitFi le) = 1">
364            < !-- naviga tion-index -current - ->   364            < !-- naviga tion-index -current - ->
365            < !--                          -->   365            < !--                          -->
366            < wwpage:Con dition nam e="navigat ion-index- current" / >   366            < wwpage:Con dition nam e="navigat ion-index- current" / >
367           </ xsl:when>   367           </ xsl:when>
368     368  
369           <x sl:otherwi se>   369           <x sl:otherwi se>
370            < !-- naviga tion-index -not-curre nt -->   370            < !-- naviga tion-index -not-curre nt -->
371            < !--                          -->   371            < !--                          -->
372            < wwpage:Con dition nam e="navigat ion-index- not-curren t" />   372            < wwpage:Con dition nam e="navigat ion-index- not-curren t" />
373           </ xsl:otherw ise>   373           </ xsl:otherw ise>
374          </x sl:choose>   374          </x sl:choose>
375         </xs l:if>   375         </xs l:if>
376     376  
377         <!--  Company I nfo -->   377         <!--  Company I nfo -->
378         <!--                -->   378         <!--                -->
379         <xsl :call-temp late name= "CompanyIn fo-Conditi ons">   379         <xsl :call-temp late name= "CompanyIn fo-Conditi ons">
380          <xs l:with-par am name="P aramPageRu le" select ="$VarPage Rule" />   380          <xs l:with-par am name="P aramPageRu le" select ="$VarPage Rule" />
381         </xs l:call-tem plate>   381         </xs l:call-tem plate>
382        </xsl :variable>   382        </xsl :variable>
383        <xsl: variable n ame="VarIn itialCondi tions" sel ect="msxsl :node-set( $VarInitia lCondition sAsXML)" / >   383        <xsl: variable n ame="VarIn itialCondi tions" sel ect="msxsl :node-set( $VarInitia lCondition sAsXML)" / >
384     384  
385        <!--  Set header /footer co nditions - ->   385        <!--  Set header /footer co nditions - ->
386        <!--                                 - ->   386        <!--                                 - ->
387        <xsl: variable n ame="VarCo nditionsAs XML">   387        <xsl: variable n ame="VarCo nditionsAs XML">
388         <!--  Copy exis ting as is  -->   388         <!--  Copy exis ting as is  -->
389         <!--                        -->   389         <!--                        -->
390         <xsl :for-each  select="$V arInitialC onditions/ *">   390         <xsl :for-each  select="$V arInitialC onditions/ *">
391          <xs l:copy-of  select="."  />   391          <xs l:copy-of  select="."  />
392         </xs l:for-each >   392         </xs l:for-each >
393     393  
394         <xsl :for-each  select="$V arInitialC onditions[ 1]">   394         <xsl :for-each  select="$V arInitialC onditions[ 1]">
395          <!- - header-e xists -->   395          <!- - header-e xists -->
396          <!- -                -->   396          <!- -                -->
397          <xs l:variable  name="Var HeaderExis ts" select ="count(ke y('wwpage- conditions -by-name',  'navigati on-top') |  key('wwpa ge-conditi ons-by-nam e', 'bread crumbs-top ') | key(' wwpage-con ditions-by -name', 'c ompany-inf o-top')) & gt; 0" />   397          <xs l:variable  name="Var HeaderExis ts" select ="count(ke y('wwpage- conditions -by-name',  'navigati on-top') |  key('wwpa ge-conditi ons-by-nam e', 'bread crumbs-top ') | key(' wwpage-con ditions-by -name', 'c ompany-inf o-top')) & gt; 0" />
398          <xs l:if test= "$VarHeade rExists">   398          <xs l:if test= "$VarHeade rExists">
399           <w wpage:Cond ition name ="header-e xists" />   399           <w wpage:Cond ition name ="header-e xists" />
400          </x sl:if>   400          </x sl:if>
401     401  
402          <!- - footer-e xists -->   402          <!- - footer-e xists -->
403          <!- -                -->   403          <!- -                -->
404          <xs l:variable  name="Var FooterExis ts" select ="count(ke y('wwpage- conditions -by-name',  'navigati on-bottom' ) | key('w wpage-cond itions-by- name', 'br eadcrumbs- bottom') |  key('wwpa ge-conditi ons-by-nam e', 'compa ny-info-bo ttom')) &g t; 0" />   404          <xs l:variable  name="Var FooterExis ts" select ="count(ke y('wwpage- conditions -by-name',  'navigati on-bottom' ) | key('w wpage-cond itions-by- name', 'br eadcrumbs- bottom') |  key('wwpa ge-conditi ons-by-nam e', 'compa ny-info-bo ttom')) &g t; 0" />
405          <xs l:if test= "$VarFoote rExists">   405          <xs l:if test= "$VarFoote rExists">
406           <w wpage:Cond ition name ="footer-e xists" />   406           <w wpage:Cond ition name ="footer-e xists" />
407          </x sl:if>   407          </x sl:if>
408     408  
409          <!- - header-f ooter-exis ts -->   409          <!- - header-f ooter-exis ts -->
410          <!- -                        -->   410          <!- -                        -->
411          <xs l:choose>   411          <xs l:choose>
412           <x sl:when te st="$VarHe aderExists  or $VarFo oterExists ">   412           <x sl:when te st="$VarHe aderExists  or $VarFo oterExists ">
413            < wwpage:Con dition nam e="header- footer-exi sts" />   413            < wwpage:Con dition nam e="header- footer-exi sts" />
414           </ xsl:when>   414           </ xsl:when>
415     415  
416           <x sl:otherwi se>   416           <x sl:otherwi se>
417            < wwpage:Con dition nam e="header- footer-not -exists" / >   417            < wwpage:Con dition nam e="header- footer-not -exists" / >
418           </ xsl:otherw ise>   418           </ xsl:otherw ise>
419          </x sl:choose>   419          </x sl:choose>
420         </xs l:for-each >   420         </xs l:for-each >
421        </xsl :variable>   421        </xsl :variable>
422        <xsl: variable n ame="VarCo nditions"  select="ms xsl:node-s et($VarCon ditionsAsX ML)" />   422        <xsl: variable n ame="VarCo nditions"  select="ms xsl:node-s et($VarCon ditionsAsX ML)" />
423     423  
424        <!--  Replacemen ts -->   424        <!--  Replacemen ts -->
425        <!--                -->   425        <!--                -->
426        <xsl: variable n ame="VarRe placements AsXML">   426        <xsl: variable n ame="VarRe placements AsXML">
427         <xsl :variable  name="VarR elativeRoo tURIWithDu mmyCompone nt" select ="wwuri:Ge tRelativeT o(wwfilesy stem:Combi ne($VarOut putDirecto ryPath, 'd ummy.compo nent'), $P aramSplit/ @path)" />   427         <xsl :variable  name="VarR elativeRoo tURIWithDu mmyCompone nt" select ="wwuri:Ge tRelativeT o(wwfilesy stem:Combi ne($VarOut putDirecto ryPath, 'd ummy.compo nent'), $P aramSplit/ @path)" />
428         <xsl :variable  name="VarR elativeRoo tURI">   428         <xsl :variable  name="VarR elativeRoo tURI">
429          <xs l:variable  name="Var StringLeng thDifferen ce" select ="string-l ength($Var RelativeRo otURIWithD ummyCompon ent) - str ing-length ('dummy.co mponent')"  />   429          <xs l:variable  name="Var StringLeng thDifferen ce" select ="string-l ength($Var RelativeRo otURIWithD ummyCompon ent) - str ing-length ('dummy.co mponent')"  />
430          <xs l:choose>   430          <xs l:choose>
431           <x sl:when te st="$VarSt ringLength Difference  &lt;= 0">   431           <x sl:when te st="$VarSt ringLength Difference  &lt;= 0">
432            < xsl:value- of select= "''" />   432            < xsl:value- of select= "''" />
433           </ xsl:when>   433           </ xsl:when>
434     434  
435           <x sl:otherwi se>   435           <x sl:otherwi se>
436            < xsl:value- of select= "substring ($VarRelat iveRootURI WithDummyC omponent,  1, $VarStr ingLengthD ifference) " />   436            < xsl:value- of select= "substring ($VarRelat iveRootURI WithDummyC omponent,  1, $VarStr ingLengthD ifference) " />
437           </ xsl:otherw ise>   437           </ xsl:otherw ise>
438          </x sl:choose>   438          </x sl:choose>
439         </xs l:variable >   439         </xs l:variable >
440     440  
441         <!--  webworks- root -->   441         <!--  webworks- root -->
442         <!--                 -->   442         <!--                 -->
443         <wwp age:Replac ement name ="webworks -root">   443         <wwp age:Replac ement name ="webworks -root">
444          <xs l:comment>   444          <xs l:comment>
445           <x sl:text>   445           <x sl:text>
446   </xsl:text >   446   </xsl:text >
447           <x sl:text>         var   WebWorksR ootPath =  &quot;</xs l:text>   447           <x sl:text>         var   WebWorksR ootPath =  &quot;</xs l:text>
448           <x sl:value-o f select=" $VarRelati veRootURI"  />   448           <x sl:value-o f select=" $VarRelati veRootURI"  />
449           <x sl:text>&q uot;;   449           <x sl:text>&q uot;;
450   </xsl:text >   450   </xsl:text >
451           <x sl:text>       // </x sl:text>   451           <x sl:text>       // </x sl:text>
452          </x sl:comment >   452          </x sl:comment >
453         </ww page:Repla cement>   453         </ww page:Repla cement>
454     454  
455         <!--  body-clas s -->   455         <!--  body-clas s -->
456         <!--              -->   456         <!--              -->
457         <wwp age:Replac ement name ="body-cla ss">   457         <wwp age:Replac ement name ="body-cla ss">
458          <xs l:attribut e name="va lue">   458          <xs l:attribut e name="va lue">
459           <! -- Additio nal CSS cl asses -->   459           <! -- Additio nal CSS cl asses -->
460           <! --                          -->   460           <! --                          -->
461           <x sl:variabl e name="Va rAdditiona lCSSClasse sOption" s elect="nor malize-spa ce($VarPag eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' additional -css-class es']/@Valu e)" />   461           <x sl:variabl e name="Va rAdditiona lCSSClasse sOption" s elect="nor malize-spa ce($VarPag eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' additional -css-class es']/@Valu e)" />
462           <x sl:value-o f select=" $VarAdditi onalCSSCla ssesOption " />   462           <x sl:value-o f select=" $VarAdditi onalCSSCla ssesOption " />
463          </x sl:attribu te>   463          </x sl:attribu te>
464         </ww page:Repla cement>   464         </ww page:Repla cement>
465     465  
466         <!--  body-styl e -->   466         <!--  body-styl e -->
467         <!--              -->   467         <!--              -->
468         <wwp age:Replac ement name ="body-sty le">   468         <wwp age:Replac ement name ="body-sty le">
469          <xs l:attribut e name="va lue">   469          <xs l:attribut e name="va lue">
470           <! -- CSS pro perties -- >   470           <! -- CSS pro perties -- >
471           <! --                 -- >   471           <! --                 -- >
472           <x sl:variabl e name="Va rCSSProper tiesAsXML" >   472           <x sl:variabl e name="Va rCSSProper tiesAsXML" >
473            < xsl:call-t emplate na me="CSS-Tr anslatePro jectProper ties">   473            < xsl:call-t emplate na me="CSS-Tr anslatePro jectProper ties">
474              <xsl:with- param name ="ParamPro perties" s elect="$Va rPageRule/ wwproject: Properties /wwproject :Property"  />   474              <xsl:with- param name ="ParamPro perties" s elect="$Va rPageRule/ wwproject: Properties /wwproject :Property"  />
475              <xsl:with- param name ="ParamFro mAbsoluteU RI" select ="$ParamSp lit/@path"  />   475              <xsl:with- param name ="ParamFro mAbsoluteU RI" select ="$ParamSp lit/@path"  />
476              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   476              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
477            < /xsl:call- template>   477            < /xsl:call- template>
478           </ xsl:variab le>   478           </ xsl:variab le>
479           <x sl:variabl e name="Va rCSSProper ties" sele ct="msxsl: node-set($ VarCSSProp ertiesAsXM L)/wwproje ct:Propert y" />   479           <x sl:variabl e name="Va rCSSProper ties" sele ct="msxsl: node-set($ VarCSSProp ertiesAsXM L)/wwproje ct:Propert y" />
480     480  
481           <x sl:call-te mplate nam e="CSS-Inl inePropert ies">   481           <x sl:call-te mplate nam e="CSS-Inl inePropert ies">
482            < xsl:with-p aram name= "ParamProp erties" se lect="$Var CSSPropert ies[string -length(@V alue) &gt;  0]" />   482            < xsl:with-p aram name= "ParamProp erties" se lect="$Var CSSPropert ies[string -length(@V alue) &gt;  0]" />
483           </ xsl:call-t emplate>   483           </ xsl:call-t emplate>
484          </x sl:attribu te>   484          </x sl:attribu te>
485         </ww page:Repla cement>   485         </ww page:Repla cement>
486     486  
487         <xsl :if test=" string-len gth($VarPD FLinkURI)  &gt; 0">   487         <xsl :if test=" string-len gth($VarPD FLinkURI)  &gt; 0">
488           <w wpage:Repl acement na me="pdf-li nk" value= "{$VarPDFL inkURI}" / >   488           <w wpage:Repl acement na me="pdf-li nk" value= "{$VarPDFL inkURI}" / >
489         </xs l:if>   489         </xs l:if>
490            490         
491         <wwp age:Replac ement name ="skip-nav igation-ur i" value=" {$VarSkipN avigationU RI}" />   491         <wwp age:Replac ement name ="skip-nav igation-ur i" value=" {$VarSkipN avigationU RI}" />
492         <wwp age:Replac ement name ="title" v alue="{$Pa ramSplit/@ title}" />   492         <wwp age:Replac ement name ="title" v alue="{$Pa ramSplit/@ title}" />
493         <wwp age:Replac ement name ="navigati on-toc-tit le" value= "{$VarTOCS plitFile/@ title}" />   493         <wwp age:Replac ement name ="navigati on-toc-tit le" value= "{$VarTOCS plitFile/@ title}" />
494         <wwp age:Replac ement name ="navigati on-previou s-title" v alue="{$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'P revious']/ @value}" / >   494         <wwp age:Replac ement name ="navigati on-previou s-title" v alue="{$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'P revious']/ @value}" / >
495         <wwp age:Replac ement name ="navigati on-next-ti tle" value ="{$Global Locale/wwl ocale:Loca le/wwlocal e:Strings/ wwlocale:S tring[@nam e = 'Next' ]/@value}"  />   495         <wwp age:Replac ement name ="navigati on-next-ti tle" value ="{$Global Locale/wwl ocale:Loca le/wwlocal e:Strings/ wwlocale:S tring[@nam e = 'Next' ]/@value}"  />
496         <wwp age:Replac ement name ="navigati on-index-t itle" valu e="{$VarIn dexSplitFi le/@title} " />   496         <wwp age:Replac ement name ="navigati on-index-t itle" valu e="{$VarIn dexSplitFi le/@title} " />
        497         <wwp age:Replac ement name ="navigati on-pdf-tit le" value= "{$GlobalL ocale/wwlo cale:Local e/wwlocale :Strings/w wlocale:St ring[@name  = 'PDF']/ @value}" / >
497     498  
498         <wwp age:Replac ement name ="catalog- css">   499         <wwp age:Replac ement name ="catalog- css">
499          <xs l:attribut e name="va lue">   500          <xs l:attribut e name="va lue">
500           <x sl:for-eac h select=" $GlobalFil es[1]">   501           <x sl:for-eac h select=" $GlobalFil es[1]">
501            < xsl:variab le name="V arCSSPath"  select="k ey('wwfile s-files-by -documenti d', $Param FilesDocum entNode/@d ocumentID) [@type = $ ParameterS tylesType] /@path" />   502            < xsl:variab le name="V arCSSPath"  select="k ey('wwfile s-files-by -documenti d', $Param FilesDocum entNode/@d ocumentID) [@type = $ ParameterS tylesType] /@path" />
502            < xsl:value- of select= "wwuri:Get RelativeTo ($VarCSSPa th, $Param Split/@pat h)" />   503            < xsl:value- of select= "wwuri:Get RelativeTo ($VarCSSPa th, $Param Split/@pat h)" />
503           </ xsl:for-ea ch>   504           </ xsl:for-ea ch>
504          </x sl:attribu te>   505          </x sl:attribu te>
505         </ww page:Repla cement>   506         </ww page:Repla cement>
506     507  
507         <wwp age:Replac ement name ="document -css">   508         <wwp age:Replac ement name ="document -css">
508          <xs l:attribut e name="va lue">   509          <xs l:attribut e name="va lue">
509           <x sl:call-te mplate nam e="URI-Res olveProjec tFileURI">   510           <x sl:call-te mplate nam e="URI-Res olveProjec tFileURI">
510            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  />   511            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  />
511            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />   512            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />
512            < xsl:with-p aram name= "ParamURI"  select="$ VarPageRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'docu ment-css'] /@Value" / >   513            < xsl:with-p aram name= "ParamURI"  select="$ VarPageRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'docu ment-css'] /@Value" / >
513           </ xsl:call-t emplate>   514           </ xsl:call-t emplate>
514          </x sl:attribu te>   515          </x sl:attribu te>
515         </ww page:Repla cement>   516         </ww page:Repla cement>
516     517  
517         <wwp age:Replac ement name ="locale"  value="{ww projext:Ge tFormatSet ting('loca le', 'en') }" />   518         <wwp age:Replac ement name ="locale"  value="{ww projext:Ge tFormatSet ting('loca le', 'en') }" />
518         <wwp age:Replac ement name ="content- type" valu e="{concat ('text/htm l;charset= ', wwproje xt:GetForm atSetting( 'encoding' , 'utf-8') )}" />   519         <wwp age:Replac ement name ="content- type" valu e="{concat ('text/htm l;charset= ', wwproje xt:GetForm atSetting( 'encoding' , 'utf-8') )}" />
519     520  
520         <wwp age:Replac ement name ="breadcru mbs-top-st yle">   521         <wwp age:Replac ement name ="breadcru mbs-top-st yle">
521          <xs l:attribut e name="va lue">   522          <xs l:attribut e name="va lue">
522           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-top-alig nment']/@V alue" />   523           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-top-alig nment']/@V alue" />
523           <x sl:choose>   524           <x sl:choose>
524            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">   525            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">
525              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />   526              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />
526            < /xsl:when>   527            < /xsl:when>
527     528  
528            < xsl:otherw ise>   529            < xsl:otherw ise>
529              <xsl:value -of select ="'text-al ign: left; '" />   530              <xsl:value -of select ="'text-al ign: left; '" />
530            < /xsl:other wise>   531            < /xsl:other wise>
531           </ xsl:choose >   532           </ xsl:choose >
532          </x sl:attribu te>   533          </x sl:attribu te>
533         </ww page:Repla cement>   534         </ww page:Repla cement>
534     535  
535         <wwp age:Replac ement name ="breadcru mbs-bottom -style">   536         <wwp age:Replac ement name ="breadcru mbs-bottom -style">
536          <xs l:attribut e name="va lue">   537          <xs l:attribut e name="va lue">
537           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-bottom-a lignment'] /@Value" / >   538           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-bottom-a lignment'] /@Value" / >
538           <x sl:choose>   539           <x sl:choose>
539            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">   540            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">
540              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />   541              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />
541            < /xsl:when>   542            < /xsl:when>
542     543  
543            < xsl:otherw ise>   544            < xsl:otherw ise>
544              <xsl:value -of select ="'text-al ign: left; '" />   545              <xsl:value -of select ="'text-al ign: left; '" />
545            < /xsl:other wise>   546            < /xsl:other wise>
546           </ xsl:choose >   547           </ xsl:choose >
547          </x sl:attribu te>   548          </x sl:attribu te>
548         </ww page:Repla cement>   549         </ww page:Repla cement>
549     550  
550         <wwp age:Replac ement name ="navigati on-top-sty le">   551         <wwp age:Replac ement name ="navigati on-top-sty le">
551          <xs l:attribut e name="va lue">   552          <xs l:attribut e name="va lue">
552           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' navigation -top-align ment']/@Va lue" />   553           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' navigation -top-align ment']/@Va lue" />
553           <x sl:choose>   554           <x sl:choose>
554            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">   555            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">
555              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />   556              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />
556            < /xsl:when>   557            < /xsl:when>
557     558  
558            < xsl:otherw ise>   559            < xsl:otherw ise>
559              <xsl:value -of select ="'text-al ign: left; '" />   560              <xsl:value -of select ="'text-al ign: left; '" />
560            < /xsl:other wise>   561            < /xsl:other wise>
561           </ xsl:choose >   562           </ xsl:choose >
562          </x sl:attribu te>   563          </x sl:attribu te>
563         </ww page:Repla cement>   564         </ww page:Repla cement>
564     565  
565         <wwp age:Replac ement name ="navigati on-bottom- style">   566         <wwp age:Replac ement name ="navigati on-bottom- style">
566          <xs l:attribut e name="va lue">   567          <xs l:attribut e name="va lue">
567           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' navigation -bottom-al ignment']/ @Value" />   568           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' navigation -bottom-al ignment']/ @Value" />
568           <x sl:choose>   569           <x sl:choose>
569            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">   570            < xsl:when t est="strin g-length($ VarAlignme ntProperty ) &gt; 0">
570              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />   571              <xsl:value -of select ="concat(' text-align : ', $VarA lignmentPr operty, '; ')" />
571            < /xsl:when>   572            < /xsl:when>
572     573  
573            < xsl:otherw ise>   574            < xsl:otherw ise>
574              <xsl:value -of select ="'text-al ign: left; '" />   575              <xsl:value -of select ="'text-al ign: left; '" />
575            < /xsl:other wise>   576            < /xsl:other wise>
576           </ xsl:choose >   577           </ xsl:choose >
577          </x sl:attribu te>   578          </x sl:attribu te>
578         </ww page:Repla cement>   579         </ww page:Repla cement>
579     580  
580         <xsl :if test=" count($Var TOCSplitFi le) = 1">   581         <xsl :if test=" count($Var TOCSplitFi le) = 1">
581          <ww page:Repla cement nam e="navigat ion-toc-li nk" value= "{wwuri:Ge tRelativeT o($VarTOCS plitFile/@ path, $Par amSplit/@p ath)}" />   582          <ww page:Repla cement nam e="navigat ion-toc-li nk" value= "{wwuri:Ge tRelativeT o($VarTOCS plitFile/@ path, $Par amSplit/@p ath)}" />
582         </xs l:if>   583         </xs l:if>
583         <xsl :if test=" count($Var PreviousSp lit) = 1">   584         <xsl :if test=" count($Var PreviousSp lit) = 1">
584          <ww page:Repla cement nam e="navigat ion-previo us-link" v alue="{wwu ri:GetRela tiveTo($Va rPreviousS plit/@path , $ParamSp lit/@path) }" />   585          <ww page:Repla cement nam e="navigat ion-previo us-link" v alue="{wwu ri:GetRela tiveTo($Va rPreviousS plit/@path , $ParamSp lit/@path) }" />
585         </xs l:if>   586         </xs l:if>
586         <xsl :if test=" count($Var NextSplit)  = 1">   587         <xsl :if test=" count($Var NextSplit)  = 1">
587          <ww page:Repla cement nam e="navigat ion-next-l ink" value ="{wwuri:G etRelative To($VarNex tSplit/@pa th, $Param Split/@pat h)}" />   588          <ww page:Repla cement nam e="navigat ion-next-l ink" value ="{wwuri:G etRelative To($VarNex tSplit/@pa th, $Param Split/@pat h)}" />
588         </xs l:if>   589         </xs l:if>
589         <xsl :if test=" count($Var IndexSplit File) = 1" >   590         <xsl :if test=" count($Var IndexSplit File) = 1" >
590          <ww page:Repla cement nam e="navigat ion-index- link" valu e="{wwuri: GetRelativ eTo($VarIn dexSplitFi le/@path,  $ParamSpli t/@path)}"  />   591          <ww page:Repla cement nam e="navigat ion-index- link" valu e="{wwuri: GetRelativ eTo($VarIn dexSplitFi le/@path,  $ParamSpli t/@path)}"  />
591         </xs l:if>   592         </xs l:if>
592     593  
593         <!--  Company I nfo -->   594         <!--  Company I nfo -->
594         <!--                -->   595         <!--                -->
595         <xsl :call-temp late name= "CompanyIn fo-Replace ments">   596         <xsl :call-temp late name= "CompanyIn fo-Replace ments">
596          <xs l:with-par am name="P aramPageRu le" select ="$VarPage Rule" />   597          <xs l:with-par am name="P aramPageRu le" select ="$VarPage Rule" />
597          <xs l:with-par am name="P aramPagePa th" select ="$ParamSp lit/@path"  />   598          <xs l:with-par am name="P aramPagePa th" select ="$ParamSp lit/@path"  />
598          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   599          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
599         </xs l:call-tem plate>   600         </xs l:call-tem plate>
600     601  
601         <!--  Breadcrum bs -->   602         <!--  Breadcrum bs -->
602         <!--               -->   603         <!--               -->
603         <wwp age:Replac ement name ="breadcru mbs">   604         <wwp age:Replac ement name ="breadcru mbs">
604          <xs l:call-tem plate name ="Breadcru mbs">   605          <xs l:call-tem plate name ="Breadcru mbs">
605           <x sl:with-pa ram name=" ParamPageR ule" selec t="$VarPag eRule" />   606           <x sl:with-pa ram name=" ParamPageR ule" selec t="$VarPag eRule" />
606           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   607           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
607           <x sl:with-pa ram name=" ParamBread crumbTOCEn try" selec t="$ParamB readcrumbT OCEntry" / >   608           <x sl:with-pa ram name=" ParamBread crumbTOCEn try" selec t="$ParamB readcrumbT OCEntry" / >
608          </x sl:call-te mplate>   609          </x sl:call-te mplate>
609         </ww page:Repla cement>   610         </ww page:Repla cement>
610     611  
611         <!--  Content - ->   612         <!--  Content - ->
612         <!--          - ->   613         <!--          - ->
613         <wwp age:Replac ement name ="content" >   614         <wwp age:Replac ement name ="content" >
614          <xs l:call-tem plate name ="Content- Content">   615          <xs l:call-tem plate name ="Content- Content">
615           <x sl:with-pa ram name=" ParamConte nt" select ="$ParamCo ntent" />   616           <x sl:with-pa ram name=" ParamConte nt" select ="$ParamCo ntent" />
616           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   617           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
617           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />   618           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />
618           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   619           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
619           <x sl:with-pa ram name=" ParamTOCDa ta" select ="$ParamTO CData" />   620           <x sl:with-pa ram name=" ParamTOCDa ta" select ="$ParamTO CData" />
620           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   621           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
621          </x sl:call-te mplate>   622          </x sl:call-te mplate>
622          <xs l:call-tem plate name ="Content- Notes">   623          <xs l:call-tem plate name ="Content- Notes">
623           <x sl:with-pa ram name=" ParamNotes " select=" $VarNotes"  />   624           <x sl:with-pa ram name=" ParamNotes " select=" $VarNotes"  />
624           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   625           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
625           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />   626           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />
626           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   627           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
627           <x sl:with-pa ram name=" ParamTOCDa ta" select ="$ParamTO CData" />   628           <x sl:with-pa ram name=" ParamTOCDa ta" select ="$ParamTO CData" />
628           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   629           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
629          </x sl:call-te mplate>   630          </x sl:call-te mplate>
630         </ww page:Repla cement>   631         </ww page:Repla cement>
631     632  
632         <!--  Variables  -->   633         <!--  Variables  -->
633         <!--             -->   634         <!--             -->
634         <xsl :variable  name="VarS plitGlobal VariablesA sXML">   635         <xsl :variable  name="VarS plitGlobal VariablesA sXML">
635          <xs l:call-tem plate name ="Variable s-Globals- Split">   636          <xs l:call-tem plate name ="Variable s-Globals- Split">
636           <x sl:with-pa ram name=" ParamProje ctVariable s" select= "$GlobalPr ojectVaria bles" />   637           <x sl:with-pa ram name=" ParamProje ctVariable s" select= "$GlobalPr ojectVaria bles" />
637           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   638           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
638          </x sl:call-te mplate>   639          </x sl:call-te mplate>
639         </xs l:variable >   640         </xs l:variable >
640         <xsl :variable  name="VarS plitGlobal Variables"  select="m sxsl:node- set($VarSp litGlobalV ariablesAs XML)/wwvar s:Variable " />   641         <xsl :variable  name="VarS plitGlobal Variables"  select="m sxsl:node- set($VarSp litGlobalV ariablesAs XML)/wwvar s:Variable " />
641         <xsl :call-temp late name= "Variables -Page-Stri ng-Replace ments">   642         <xsl :call-temp late name= "Variables -Page-Stri ng-Replace ments">
642          <xs l:with-par am name="P aramVariab les" selec t="$VarSpl itGlobalVa riables" / >   643          <xs l:with-par am name="P aramVariab les" selec t="$VarSpl itGlobalVa riables" / >
643         </xs l:call-tem plate>   644         </xs l:call-tem plate>
644        </xsl :variable>   645        </xsl :variable>
645        <xsl: variable n ame="VarRe placements " select=" msxsl:node -set($VarR eplacement sAsXML)" / >   646        <xsl: variable n ame="VarRe placements " select=" msxsl:node -set($VarR eplacement sAsXML)" / >
646     647  
647        <!--  Map common  character s -->   648        <!--  Map common  character s -->
648        <!--                          -->   649        <!--                          -->
649        <wwex sldoc:Mapp ingContext >   650        <wwex sldoc:Mapp ingContext >
650         <xsl :copy-of s elect="$Gl obalMapEnt rySets/wwe xsldoc:Map EntrySets/ wwexsldoc: MapEntrySe t[@name =  'common']/ wwexsldoc: MapEntry"  />   651         <xsl :copy-of s elect="$Gl obalMapEnt rySets/wwe xsldoc:Map EntrySets/ wwexsldoc: MapEntrySe t[@name =  'common']/ wwexsldoc: MapEntry"  />
651     652  
652         <!--  Invoke pa ge templat e -->   653         <!--  Invoke pa ge templat e -->
653         <!--                         -->   654         <!--                         -->
654         <xsl :apply-tem plates sel ect="$Glob alPageTemp late" mode ="wwmode:p agetemplat e">   655         <xsl :apply-tem plates sel ect="$Glob alPageTemp late" mode ="wwmode:p agetemplat e">
655          <xs l:with-par am name="P aramOutput DirectoryP ath" selec t="$VarOut putDirecto ryPath" />   656          <xs l:with-par am name="P aramOutput DirectoryP ath" selec t="$VarOut putDirecto ryPath" />
656          <xs l:with-par am name="P aramOutput Path" sele ct="$Param Split/@pat h" />   657          <xs l:with-par am name="P aramOutput Path" sele ct="$Param Split/@pat h" />
657          <xs l:with-par am name="P aramCondit ions" sele ct="$VarCo nditions"  />   658          <xs l:with-par am name="P aramCondit ions" sele ct="$VarCo nditions"  />
658          <xs l:with-par am name="P aramReplac ements" se lect="$Var Replacemen ts" />   659          <xs l:with-par am name="P aramReplac ements" se lect="$Var Replacemen ts" />
659         </xs l:apply-te mplates>   660         </xs l:apply-te mplates>
660        </wwe xsldoc:Map pingContex t>   661        </wwe xsldoc:Map pingContex t>
661       </xsl: for-each>   662       </xsl: for-each>
662      </xsl:v ariable>   663      </xsl:v ariable>
663     664  
664      <!-- Ab orted? -->   665      <!-- Ab orted? -->
665      <!--           -->   666      <!--           -->
666      <xsl:if  test="not (wwprogres s:Abort()) ">   667      <xsl:if  test="not (wwprogres s:Abort()) ">
667       <xsl:v ariable na me="VarRes ult" selec t="msxsl:n ode-set($V arResultAs XML)" />   668       <xsl:v ariable na me="VarRes ult" selec t="msxsl:n ode-set($V arResultAs XML)" />
668       <xsl:v ariable na me="VarWri teResult"  select="ww exsldoc:Do cument($Va rResult, $ ParamSplit /@path, ww projext:Ge tFormatSet ting('enco ding', 'ut f-8'), 'xh tml', '1.0 ', 'yes',  'no', 'no' , '-//W3C/ /DTD XHTML  1.0 Trans itional//E N', 'http: //www.w3.o rg/TR/xhtm l1/DTD/xht ml1-transi tional.dtd ')" />   669       <xsl:v ariable na me="VarWri teResult"  select="ww exsldoc:Do cument($Va rResult, $ ParamSplit /@path, ww projext:Ge tFormatSet ting('enco ding', 'ut f-8'), 'xh tml', '1.0 ', 'yes',  'no', 'no' , '-//W3C/ /DTD XHTML  1.0 Trans itional//E N', 'http: //www.w3.o rg/TR/xhtm l1/DTD/xht ml1-transi tional.dtd ')" />
669      </xsl:i f>   670      </xsl:i f>
670     </xsl:if >   671     </xsl:if >
671     672  
672     <!-- Abo rted? -->   673     <!-- Abo rted? -->
673     <!--           -->   674     <!--           -->
674     <xsl:if  test="not( wwprogress :Abort())" >   675     <xsl:if  test="not( wwprogress :Abort())" >
675      <!-- Re cord files  -->   676      <!-- Re cord files  -->
676      <!--                -->   677      <!--                -->
677      <wwfile s:File pat h="{$Param Split/@pat h}" type=" {$Paramete rType}" ch ecksum="{w wfilesyste m:GetCheck sum($Param Split/@pat h)}" proje ctchecksum ="{$Global Project/ww project:Pr oject/@Cha ngeID}" gr oupID="{$P aramSplit/ @groupID}"  documentI D="{$Param Split/@doc umentID}"  actionchec ksum="{$Gl obalAction Checksum}"  category= "{$Paramet erCategory }" use="{$ ParameterU se}" deplo y="{$Param eterDeploy }">   678      <wwfile s:File pat h="{$Param Split/@pat h}" type=" {$Paramete rType}" ch ecksum="{w wfilesyste m:GetCheck sum($Param Split/@pat h)}" proje ctchecksum ="{$Global Project/ww project:Pr oject/@Cha ngeID}" gr oupID="{$P aramSplit/ @groupID}"  documentI D="{$Param Split/@doc umentID}"  actionchec ksum="{$Gl obalAction Checksum}"  category= "{$Paramet erCategory }" use="{$ ParameterU se}" deplo y="{$Param eterDeploy }">
678       <wwfil es:Depends  path="{$G lobalLocal ePath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lLocalePat h)}" group ID="" docu mentID=""  />   679       <wwfil es:Depends  path="{$G lobalLocal ePath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lLocalePat h)}" group ID="" docu mentID=""  />
679       <wwfil es:Depends  path="{$G lobalMapEn trySetsPat h}" checks um="{wwfil esystem:Ge tChecksum( $GlobalMap EntrySetsP ath)}" gro upID="" do cumentID=" " />   680       <wwfil es:Depends  path="{$G lobalMapEn trySetsPat h}" checks um="{wwfil esystem:Ge tChecksum( $GlobalMap EntrySetsP ath)}" gro upID="" do cumentID=" " />
680       <wwfil es:Depends  path="{$G lobalPageT emplatePat h}" checks um="{wwfil esystem:Ge tChecksum( $GlobalPag eTemplateP ath)}" gro upID="" do cumentID=" " />   681       <wwfil es:Depends  path="{$G lobalPageT emplatePat h}" checks um="{wwfil esystem:Ge tChecksum( $GlobalPag eTemplateP ath)}" gro upID="" do cumentID=" " />
681       <wwfil es:Depends  path="{$G lobalProje ctVariable sPath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lProjectVa riablesPat h)}" group ID="" docu mentID=""  />   682       <wwfil es:Depends  path="{$G lobalProje ctVariable sPath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lProjectVa riablesPat h)}" group ID="" docu mentID=""  />
682       <wwfil es:Depends  path="{$P aramFilesD ocumentNod e/@path}"  checksum=" {$ParamFil esDocument Node/@chec ksum}" gro upID="{$Pa ramFilesDo cumentNode /@groupID} " document ID="{$Para mFilesDocu mentNode/@ documentID }" />   683       <wwfil es:Depends  path="{$P aramFilesD ocumentNod e/@path}"  checksum=" {$ParamFil esDocument Node/@chec ksum}" gro upID="{$Pa ramFilesDo cumentNode /@groupID} " document ID="{$Para mFilesDocu mentNode/@ documentID }" />
683       <wwfil es:Depends  path="{$P aramFilesS plits/@pat h}" checks um="{$Para mFilesSpli ts/@checks um}" group ID="{$Para mFilesSpli ts/@groupI D}" docume ntID="{$Pa ramFilesSp lits/@docu mentID}" / >   684       <wwfil es:Depends  path="{$P aramFilesS plits/@pat h}" checks um="{$Para mFilesSpli ts/@checks um}" group ID="{$Para mFilesSpli ts/@groupI D}" docume ntID="{$Pa ramFilesSp lits/@docu mentID}" / >
684       <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}" />   685       <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}" />
685      </wwfil es:File>   686      </wwfil es:File>
686     </xsl:if >   687     </xsl:if >
687    </xsl:tem plate>   688    </xsl:tem plate>
688   </xsl:styl esheet>   689   </xsl:styl esheet>