110. Araxis Merge File Comparison Report

Produced by Araxis Merge on Thu Oct 16 22:30:08 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

110.1 Files compared

# Location File Last Modified
1 Thu Oct 16 22:30:08 2008 UTC
2 C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Wiki - MoinMoin\Transforms pages.xsl Mon Oct 13 05:51:50 2008 UTC

110.2 Comparison summary

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

110.3 Comparison options

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

110.4 Active regular expressions

No regular expressions were active.

110.5 Comparison detail

        1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
        2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Wiki-Page- Schema"
        3                                    xmlns:wwwi ki="urn:We bWorks-Wik i-Page-Sch ema"
        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"
        6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
        7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"
        8                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
        9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
        10                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
        11                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema"
        12                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"
        13                                    xmlns:wwva rs="urn:We bWorks-Var iables-Sch ema"
        14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema"
        15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
        16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema"
        17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"
        18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
        19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
        20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
        21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
        22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
        23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"
        24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
        25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
        26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"
        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"
        29   >
        30    <xsl:para m name="Gl obalInput"  />
        31    <xsl:para m name="Gl obalPipeli neName" />
        32    <xsl:para m name="Gl obalProjec t" />
        33    <xsl:para m name="Gl obalFiles"  />
        34    <xsl:para m name="Pa rameterDep endsType"  />
        35    <xsl:para m name="Pa rameterSpl itsType" / >
        36    <xsl:para m name="Pa rameterLin ksType" />
        37    <xsl:para m name="Pa rameterLoc aleType" / >
        38    <xsl:para m name="Pa rameterUIL ocaleType"  />
        39    <xsl:para m name="Pa rameterBeh aviorsType " />
        40    <xsl:para m name="Pa rameterPro jectVariab lesType" / >
        41    <xsl:para m name="Pa rameterPag eTemplateU RI" />
        42    <xsl:para m name="Pa rameterTOC DataType"  />
        43    <xsl:para m name="Pa rameterAll owBaggage"  />
        44    <xsl:para m name="Pa rameterAll owGroupToG roup" />
        45    <xsl:para m name="Pa rameterAll owURL" />
        46    <xsl:para m name="Pa rameterBag gageSplitF ileType" / >
        47    <xsl:para m name="Pa rameterTOC SplitFileT ype" />
        48    <xsl:para m name="Pa rameterInd exSplitFil eType" />
        49    <xsl:para m name="Pa rameterTyp e" />
        50    <xsl:para m name="Pa rameterCat egory" />
        51    <xsl:para m name="Pa rameterUse " />
        52    <xsl:para m name="Pa rameterDep loy" />
        53    <xsl:para m name="Pa rameterDoc umentPDFTy pe" />
        54    <xsl:para m name="Pa rameterGro upPDFType"  />
        55  
        56  
        57    <xsl:vari able name= "GlobalDef aultNamesp ace" selec t="'urn:We bWorks-Wik i-Page-Sch ema'" />
        58  
        59  
        60    <xsl:outp ut method= "xml" enco ding="UTF- 8" indent= "yes" />
        61    <xsl:name space-alia s styleshe et-prefix= "wwwiki" r esult-pref ix="#defau lt" />
        62    <xsl:pres erve-space  elements= "*" />
        63  
        64  
        65    <xsl:incl ude href=" wwtransfor m:common/a ccessibili ty/images. xsl"/>
        66    <xsl:incl ude href=" wwtransfor m:common/b ehaviors/o ptions.xsl "/>
        67    <xsl:incl ude href=" wwtransfor m:common/c ompanyinfo /companyin fo_content .xsl" />
        68    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  />
        69    <xsl:incl ude href=" wwtransfor m:common/l inks/resol ve.xsl" />
        70    <xsl:incl ude href=" wwtransfor m:common/p ages/pages .xsl" />
        71    <xsl:incl ude href=" wwtransfor m:common/p roject/con ditions.xs l" />
        72    <xsl:incl ude href=" wwtransfor m:common/p roject/pro perties.xs l" />
        73    <xsl:incl ude href=" wwtransfor m:common/t ables/tabl es.xsl" />
        74    <xsl:incl ude href=" wwtransfor m:common/v ariables/v ariables.x sl" />
        75    <xsl:incl ude href=" wwformat:T ransforms/ css_proper ties.xsl"  />
        76    <xsl:incl ude href=" wwtransfor m:common/p ages/paget emplate.xs l" />
        77    <xsl:incl ude href=" wwtransfor m:uri/uri. xsl" />
        78    <xsl:incl ude href=" wwformat:T ransforms/ moinmoin.x sl" />
        79    <xsl:incl ude href=" wwformat:T ransforms/ content.xs l" />
        80  
        81  
        82    <xsl:vari able name= "GlobalAct ionChecksu m">
        83     <xsl:var iable name ="VarTrans formChecks ums">
        84      <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(',', 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('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/behavi ors/option s.xsl'), ' :', wwfile system:Get Checksum(w wuri:AsFil ePath('wwt ransform:c ommon/beha viors/opti ons.xsl')) )" />
        88      <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')))"  />
        89      <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')))"  />
        90      <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' )))" />
        91      <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')))"  />
        92      <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' )))" />
        93      <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' )))" />
        94      <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' )))" />
        95      <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')))" />
        96      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/css_p roperties. xsl'), ':' , wwfilesy stem:GetCh ecksum(wwu ri:AsFileP ath('wwfor mat:Transf orms/css_p roperties. xsl')))" / >
        97      <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' )))" />
        98      <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')))" / >
        99      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/moinm oin.xsl'),  ':', wwfi lesystem:G etChecksum (wwuri:AsF ilePath('w wformat:Tr ansforms/m oinmoin.xs l')))" />
        100      <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 riable>
        102     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />
        103    </xsl:var iable>
        104  
        105  
        106    <!-- Loca le -->
        107    <!--         -->
        108    <xsl:vari able name= "GlobalLoc alePath">
        109     <xsl:for -each sele ct="$Globa lFiles[1]" >
        110      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterLocale Type)[1]/@ path" />
        111     </xsl:fo r-each>
        112    </xsl:var iable>
        113    <xsl:vari able name= "GlobalLoc ale" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balLocaleP ath)" />
        114  
        115  
        116    <!-- UI L ocale -->
        117    <!--            -->
        118    <xsl:vari able name= "GlobalUIL ocalePath" >
        119     <xsl:for -each sele ct="$Globa lFiles[1]" >
        120      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterUILoca leType)[1] /@path" />
        121     </xsl:fo r-each>
        122    </xsl:var iable>
        123    <xsl:vari able name= "GlobalUIL ocalePathC hecksum" s elect="wwf ilesystem: GetChecksu m($GlobalU ILocalePat h)" />
        124    <xsl:vari able name= "GlobalUIL ocale" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($G lobalUILoc alePath)"  />
        125  
        126  
        127    <!-- Mapp ing Entry  Sets -->
        128    <!--                      -->
        129    <xsl:vari able name= "GlobalMap EntrySetsP ath" selec t="wwuri:A sFilePath( 'wwformat: Transforms /mapentrys ets.xml')"  />
        130    <xsl:vari able name= "GlobalMap EntrySets"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalM apEntrySet sPath)" />
        131  
        132  
        133    <!-- Page  Template  -->
        134    <!--                 -->
        135    <xsl:vari able name= "GlobalPag eTemplateP ath" selec t="wwuri:A sFilePath( $Parameter PageTempla teURI)" />
        136    <xsl:vari able name= "GlobalPag eTemplate"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalP ageTemplat ePath)" />
        137  
        138  
        139    <!-- Proj ect variab les -->
        140    <!--                     -->
        141    <xsl:vari able name= "GlobalPro jectVariab lesPath">
        142     <xsl:for -each sele ct="$Globa lFiles[1]" >
        143      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterProjec tVariables Type)[1]/@ path" />
        144     </xsl:fo r-each>
        145    </xsl:var iable>
        146    <xsl:vari able name= "GlobalPro jectVariab les" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balProject VariablesP ath)" />
        147  
        148  
        149    <xsl:temp late match ="/">
        150     <wwfiles :Files ver sion="1.0" >
        151  
        152      <xsl:ca ll-templat e name="Do cumentsPag es">
        153       <xsl:w ith-param  name="Para mInput" se lect="$Glo balInput"  />
        154       <xsl:w ith-param  name="Para mProject"  select="$G lobalProje ct" />
        155       <xsl:w ith-param  name="Para mFiles" se lect="$Glo balFiles"  />
        156       <xsl:w ith-param  name="Para mLinksType " select=" $Parameter LinksType"  />
        157       <xsl:w ith-param  name="Para mDependsTy pe" select ="$Paramet erDependsT ype" />
        158       <xsl:w ith-param  name="Para mSplitsTyp e" select= "$Paramete rSplitsTyp e" />
        159       <xsl:w ith-param  name="Para mBehaviors Type" sele ct="$Param eterBehavi orsType" / >
        160       <xsl:w ith-param  name="Para mTOCDataTy pe" select ="$Paramet erTOCDataT ype" />
        161      </xsl:c all-templa te>
        162  
        163     </wwfile s:Files>
        164    </xsl:tem plate>
        165  
        166  
        167    <xsl:temp late name= "Page">
        168     <xsl:par am name="P aramFilesS plits" />
        169     <xsl:par am name="P aramSplits " />
        170     <xsl:par am name="P aramBehavi orsFile" / >
        171     <xsl:par am name="P aramBehavi ors" />
        172     <xsl:par am name="P aramLinks"  />
        173     <xsl:par am name="P aramTOCDat a" />
        174     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />
        175     <xsl:par am name="P aramFilesD ocumentNod e" />
        176     <xsl:par am name="P aramSplit"  />
        177     <xsl:par am name="P aramDocume nt" />
        178     <xsl:par am name="P aramConten t" />
        179  
        180     <!-- Out put -->
        181     <!--         -->
        182     <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)" />
        183     <xsl:if  test="not( $VarUpToDa te)">
        184      <xsl:va riable nam e="VarResu ltAsXML">
        185       <!-- W ikified gr oup name - ->
        186       <!--                       - ->
        187       <xsl:v ariable na me="VarWik ifiedGroup Name">
        188        <xsl: call-templ ate name=" MoinMoin-W ikifyPathC omponent">
        189         <xsl :with-para m name="Pa ramPathCom ponent" se lect="wwpr ojext:GetG roupName($ ParamSplit /@groupID) " />
        190        </xsl :call-temp late>
        191       </xsl: variable>
        192  
        193       <!-- O utput dire ctory path  -->
        194       <!--                          -->
        195       <xsl:v ariable na me="VarOut putDirecto ryPath" se lect="wwfi lesystem:C ombine(wwp rojext:Get TargetOutp utDirector yPath(), $ VarWikifie dGroupName )" />
        196  
        197       <!-- P age Rule - ->
        198       <!--            - ->
        199       <xsl:v ariable na me="VarPag eRule" sel ect="wwpro jext:GetRu le('Page',  $ParamSpl it/@stylen ame)" />
        200  
        201       <!-- S plit files  -->
        202       <!--               -->
        203       <xsl:f or-each se lect="$Par amSplits[1 ]">
        204        <!--  TOC -->
        205        <!--      -->
        206        <xsl: variable n ame="VarTO CSplitFile " select=" key('wwspl its-files- by-groupid -type', co ncat($Para mSplit/@gr oupID, ':' , $Paramet erTOCSplit FileType)) [1]" />
        207  
        208        <!--  Index -->
        209        <!--        -->
        210        <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]" / >
        211  
        212        <!--  Previous - ->
        213        <!--           - ->
        214        <xsl: variable n ame="VarPo ssiblePrev iousSplits " select=" $ParamSpli t/precedin g-sibling: :wwsplits: Split[1]"  />
        215        <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)])" />
        216  
        217        <!--  Next -->
        218        <!--       -->
        219        <xsl: variable n ame="VarPo ssibleNext Splits" se lect="$Par amSplit/fo llowing-si bling::wws plits:Spli t[1]" />
        220        <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)])" />
        221  
        222        <!--  PDF Link - ->
        223        <!--           - ->
        224        <xsl: variable n ame="VarPD FLinkPath" >
        225         <xsl :variable  name="VarD ocumentPDF Path">
        226          <xs l:if test= "wwprojext :GetFormat Setting('p df-per-doc ument') =  'true'">
        227           <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" / >
        228          </x sl:if>
        229         </xs l:variable >
        230         
        231         <xsl :variable  name="VarG roupPDFPat h">
        232          <xs l:if test= "wwprojext :GetFormat Setting('p df-per-gro up') = 'tr ue'">
        233           <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" />    
        234          </x sl:if>
        235         </xs l:variable >
        236  
        237         <xsl :choose>
        238          <xs l:when tes t="string- length($Va rDocumentP DFPath) &g t; 0">
        239           <x sl:value-o f select=" $VarDocume ntPDFPath"  />
        240          </x sl:when>
        241          <xs l:when tes t="string- length($Va rGroupPDFP ath) &gt;  0">
        242           <x sl:value-o f select=" $VarGroupP DFPath" />
        243          </x sl:when>
        244         </xs l:choose>
        245        </xsl :variable>
        246  
        247        <xsl: variable n ame="VarPD FLinkURI">
        248         <xsl :if test=" string-len gth($VarPD FLinkPath)  &gt; 0">
        249          <xs l:text>att achment:.. /</xsl:tex t>
        250          <xs l:value-of  select="w wuri:GetRe lativeTo($ VarPDFLink Path, $Par amSplit/@p ath)" />
        251         </xs l:if>
        252        </xsl :variable>
        253  
        254        <!--  Notes -->
        255        <!--        -->
        256        <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)]" / >
        257  
        258        <!--  Note numbe ring -->
        259        <!--                  -->
        260        <xsl: variable n ame="VarNo teNumberin gAsXML">
        261         <xsl :call-temp late name= "Notes-Num ber">
        262          <xs l:with-par am name="P aramNotes"  select="$ VarNotes"  />
        263         </xs l:call-tem plate>
        264        </xsl :variable>
        265        <xsl: variable n ame="VarNo teNumberin g" select= "msxsl:nod e-set($Var NoteNumber ingAsXML)"  />
        266  
        267        <!--  Cargo -->
        268        <!--        -->
        269        <xsl: variable n ame="VarCa rgo" selec t="$ParamB ehaviors |  $VarNoteN umbering"  />
        270  
        271        <!--  Conditions  -->
        272        <!--              -->
        273        <xsl: variable n ame="VarIn itialCondi tionsAsXML ">
        274         <!--  pdf-exist s -->
        275         <!--              -->
        276         <xsl :if test=" string-len gth($VarPD FLinkURI)  &gt; 0">
        277          <ww page:Condi tion name= "pdf-exist s" />
        278         </xs l:if>
        279         <xsl :if test=" string-len gth($VarPD FLinkURI)  = 0">
        280          <ww page:Condi tion name= "pdf-not-e xists" />
        281         </xs l:if>
        282  
        283         <!--  breadcrum bs-top -->
        284         <!--                   -->
        285         <xsl :variable  name="VarB readcrumbs TopGenerat eOption" s elect="$Va rPageRule/ wwproject: Options/ww project:Op tion[@Name  = 'breadc rumbs-top- generate'] /@Value" / >
        286         <xsl :if test=" ($VarBread crumbsTopG enerateOpt ion = 'tru e') or (st ring-lengt h($VarBrea dcrumbsTop GenerateOp tion) = 0) ">
        287          <ww page:Condi tion name= "breadcrum bs-top" />
        288         </xs l:if>
        289  
        290         <!--  breadcrum bs-bottom  -->
        291         <!--                       -->
        292         <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" />
        293         <xsl :if test=" $VarBreadc rumbsBotto mGenerateO ption = 't rue'">
        294          <ww page:Condi tion name= "breadcrum bs-bottom"  />
        295         </xs l:if>
        296  
        297         <!--  navigatio n-top -->
        298         <!--                  -->
        299         <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" />
        300         <xsl :if test=" ($VarNavig ationTopGe nerateOpti on = 'true ') or (str ing-length ($VarNavig ationTopGe nerateOpti on) = 0)">
        301          <ww page:Condi tion name= "navigatio n-top" />
        302         </xs l:if>
        303  
        304         <!--  navigatio n-bottom - ->
        305         <!--                     - ->
        306         <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" />
        307         <xsl :if test=" $VarNaviga tionBottom GenerateOp tion = 'tr ue'">
        308          <ww page:Condi tion name= "navigatio n-bottom"  />
        309         </xs l:if>
        310  
        311         <!--  Generate  TOC? -->
        312         <!--                 -->
        313         <xsl :if test=" count($Var TOCSplitFi le) = 1">
        314          <xs l:choose>
        315           <x sl:when te st="count( $ParamSpli t | $VarTO CSplitFile ) = 1">
        316            < !-- naviga tion-toc-c urrent -->
        317            < !--                          -->
        318            < wwpage:Con dition nam e="navigat ion-toc-cu rrent" />
        319           </ xsl:when>
        320  
        321           <x sl:otherwi se>
        322            < !-- naviga tion-toc-n ot-current  -->
        323            < !--                          -->
        324            < wwpage:Con dition nam e="navigat ion-toc-no t-current"  />
        325           </ xsl:otherw ise>
        326          </x sl:choose>
        327         </xs l:if>
        328  
        329         <!--  navigatio n-previous -exists -- >
        330         <!--                               -- >
        331         <xsl :if test=" count($Var PreviousSp lit) = 1">
        332          <ww page:Condi tion name= "navigatio n-previous -exists" / >
        333         </xs l:if>
        334  
        335         <!--  navigatio n-previous -not-exist s -->
        336         <!--                                    -->
        337         <xsl :if test=" count($Var PreviousSp lit) = 0">
        338          <ww page:Condi tion name= "navigatio n-previous -not-exist s" />
        339         </xs l:if>
        340  
        341         <!--  navigatio n-next-exi sts -->
        342         <!--                           -->
        343         <xsl :if test=" count($Var NextSplit)  = 1">
        344          <ww page:Condi tion name= "navigatio n-next-exi sts" />
        345         </xs l:if>
        346  
        347         <!--  navigatio n-next-not -exists -- >
        348         <!--                               -- >
        349         <xsl :if test=" count($Var NextSplit)  = 0">
        350          <ww page:Condi tion name= "navigatio n-next-not -exists" / >
        351         </xs l:if>
        352  
        353         <!--  Generate  Index? -->
        354         <!--                   -->
        355         <xsl :if test=" count($Var IndexSplit File) = 1" >
        356          <xs l:choose>
        357           <x sl:when te st="count( $ParamSpli t | $VarIn dexSplitFi le) = 1">
        358            < !-- naviga tion-index -current - ->
        359            < !--                          -->
        360            < wwpage:Con dition nam e="navigat ion-index- current" / >
        361           </ xsl:when>
        362  
        363           <x sl:otherwi se>
        364            < !-- naviga tion-index -not-curre nt -->
        365            < !--                          -->
        366            < wwpage:Con dition nam e="navigat ion-index- not-curren t" />
        367           </ xsl:otherw ise>
        368          </x sl:choose>
        369         </xs l:if>
        370  
        371         <!--  Company I nfo -->
        372         <!--                -->
        373         <xsl :call-temp late name= "CompanyIn fo-Conditi ons">
        374          <xs l:with-par am name="P aramPageRu le" select ="$VarPage Rule" />
        375         </xs l:call-tem plate>
        376        </xsl :variable>
        377        <xsl: variable n ame="VarIn itialCondi tions" sel ect="msxsl :node-set( $VarInitia lCondition sAsXML)" / >
        378  
        379        <!--  Set header /footer co nditions - ->
        380        <!--                                 - ->
        381        <xsl: variable n ame="VarCo nditionsAs XML">
        382         <!--  Copy exis ting as is  -->
        383         <!--                        -->
        384         <xsl :for-each  select="$V arInitialC onditions/ *">
        385          <xs l:copy-of  select="."  />
        386         </xs l:for-each >
        387  
        388         <xsl :for-each  select="$V arInitialC onditions[ 1]">
        389          <!- - header-e xists -->
        390          <!- -                -->
        391          <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" />
        392          <xs l:if test= "$VarHeade rExists">
        393           <w wpage:Cond ition name ="header-e xists" />
        394          </x sl:if>
        395  
        396          <!- - footer-e xists -->
        397          <!- -                -->
        398          <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" />
        399          <xs l:if test= "$VarFoote rExists">
        400           <w wpage:Cond ition name ="footer-e xists" />
        401          </x sl:if>
        402  
        403          <!- - header-f ooter-exis ts -->
        404          <!- -                        -->
        405          <xs l:choose>
        406           <x sl:when te st="$VarHe aderExists  or $VarFo oterExists ">
        407            < wwpage:Con dition nam e="header- footer-exi sts" />
        408           </ xsl:when>
        409  
        410           <x sl:otherwi se>
        411            < wwpage:Con dition nam e="header- footer-not -exists" / >
        412           </ xsl:otherw ise>
        413          </x sl:choose>
        414         </xs l:for-each >
        415        </xsl :variable>
        416        <xsl: variable n ame="VarCo nditions"  select="ms xsl:node-s et($VarCon ditionsAsX ML)" />
        417  
        418        <!--  Replacemen ts -->
        419        <!--                -->
        420        <xsl: variable n ame="VarRe placements AsXML">
        421         <xsl :if test=" string-len gth($VarPD FLinkURI)  &gt; 0">
        422           <w wpage:Repl acement na me="pdf-li nk" value= "{$VarPDFL inkURI}" / >
        423         </xs l:if>
        424         
        425         <wwp age:Replac ement name ="title" v alue="{$Pa ramSplit/@ title}" />
        426         <wwp age:Replac ement name ="navigati on-toc-tit le" value= "{$VarTOCS plitFile/@ title}" />
        427         <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}" / >
        428         <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}"  />
        429         <wwp age:Replac ement name ="navigati on-index-t itle" valu e="{$VarIn dexSplitFi le/@title} " />
        430  
        431         <wwp age:Replac ement name ="locale"  value="{ww projext:Ge tFormatSet ting('loca le')}" />
        432  
        433         <wwp age:Replac ement name ="navigati on-top-sty le">
        434          <xs l:attribut e name="va lue">
        435           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' navigation -top-align ment']/@Va lue" />
        436           <x sl:choose>
        437            < xsl:when t est="$VarA lignmentPr operty = ' center'">
        438              <xsl:value -of select ="'margin- left: auto ;'" />
        439              <xsl:value -of select ="' margin -right: au to;'" />
        440            < /xsl:when>
        441  
        442            < xsl:when t est="$VarA lignmentPr operty = ' right'">
        443              <xsl:value -of select ="'margin- left: auto ;'" />
        444              <xsl:value -of select ="' margin -right: 0e m;'" />
        445            < /xsl:when>
        446  
        447            < xsl:otherw ise>
        448              <xsl:value -of select ="'margin- left: 0em; '" />
        449              <xsl:value -of select ="' margin -right: au to;'" />
        450            < /xsl:other wise>
        451           </ xsl:choose >
        452          </x sl:attribu te>
        453         </ww page:Repla cement>
        454  
        455         <wwp age:Replac ement name ="navigati on-bottom- style">
        456          <xs l:attribut e name="va lue">
        457           <x sl:variabl e name="Va rAlignment Property"  select="$V arPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' navigation -bottom-al ignment']/ @Value" />
        458           <x sl:choose>
        459            < xsl:when t est="$VarA lignmentPr operty = ' center'">
        460              <xsl:value -of select ="'margin- left: auto ;'" />
        461              <xsl:value -of select ="' margin -right: au to;'" />
        462            < /xsl:when>
        463  
        464            < xsl:when t est="$VarA lignmentPr operty = ' left'">
        465              <xsl:value -of select ="'margin- left: 0em; '" />
        466              <xsl:value -of select ="' margin -right: au to;'" />
        467            < /xsl:when>
        468  
        469            < xsl:otherw ise>
        470              <xsl:value -of select ="'margin- left: auto ;'" />
        471              <xsl:value -of select ="' margin -right: 0e m;'" />
        472            < /xsl:other wise>
        473           </ xsl:choose >
        474          </x sl:attribu te>
        475         </ww page:Repla cement>
        476  
        477         <xsl :if test=" count($Var TOCSplitFi le) = 1">
        478          <ww page:Repla cement nam e="navigat ion-toc-li nk">
        479           <x sl:call-te mplate nam e="MoinMoi n-Relative PageLink">
        480            < xsl:with-p aram name= "ParamSour ce" select ="$ParamSp lit/@path"  />
        481            < xsl:with-p aram name= "ParamTarg et" select ="$VarTOCS plitFile/@ path" />
        482           </ xsl:call-t emplate>
        483          </w wpage:Repl acement>
        484         </xs l:if>
        485         <xsl :if test=" count($Var PreviousSp lit) = 1">
        486          <ww page:Repla cement nam e="navigat ion-previo us-link">
        487           <x sl:call-te mplate nam e="MoinMoi n-Relative PageLink">
        488            < xsl:with-p aram name= "ParamSour ce" select ="$ParamSp lit/@path"  />
        489            < xsl:with-p aram name= "ParamTarg et" select ="$VarPrev iousSplit/ @path" />
        490           </ xsl:call-t emplate>
        491          </w wpage:Repl acement>
        492         </xs l:if>
        493         <xsl :if test=" count($Var NextSplit)  = 1">
        494          <ww page:Repla cement nam e="navigat ion-next-l ink">
        495           <x sl:call-te mplate nam e="MoinMoi n-Relative PageLink">
        496            < xsl:with-p aram name= "ParamSour ce" select ="$ParamSp lit/@path"  />
        497            < xsl:with-p aram name= "ParamTarg et" select ="$VarNext Split/@pat h" />
        498           </ xsl:call-t emplate>
        499          </w wpage:Repl acement>
        500         </xs l:if>
        501         <xsl :if test=" count($Var IndexSplit File) = 1" >
        502          <ww page:Repla cement nam e="navigat ion-index- link">
        503           <x sl:call-te mplate nam e="MoinMoi n-Relative PageLink">
        504            < xsl:with-p aram name= "ParamSour ce" select ="$ParamSp lit/@path"  />
        505            < xsl:with-p aram name= "ParamTarg et" select ="$VarInde xSplitFile /@path" />
        506           </ xsl:call-t emplate>
        507          </w wpage:Repl acement>
        508         </xs l:if>
        509  
        510         <!--  Company I nfo -->
        511         <!--                -->
        512         <xsl :call-temp late name= "CompanyIn fo-Replace ments">
        513          <xs l:with-par am name="P aramPageRu le" select ="$VarPage Rule" />
        514          <xs l:with-par am name="P aramPagePa th" select ="$ParamSp lit/@path"  />
        515          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
        516         </xs l:call-tem plate>
        517  
        518         <!--  Breadcrum bs -->
        519         <!--               -->
        520         <wwp age:Replac ement name ="breadcru mbs">
        521          <xs l:call-tem plate name ="Breadcru mbs">
        522           <x sl:with-pa ram name=" ParamPageR ule" selec t="$VarPag eRule" />
        523           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        524           <x sl:with-pa ram name=" ParamBread crumbTOCEn try" selec t="$ParamB readcrumbT OCEntry" / >
        525          </x sl:call-te mplate>
        526         </ww page:Repla cement>
        527  
        528         <!--  Content - ->
        529         <!--          - ->
        530         <wwp age:Replac ement name ="content" >
        531          <xs l:call-tem plate name ="Content- Content">
        532           <x sl:with-pa ram name=" ParamConte nt" select ="$ParamCo ntent" />
        533           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
        534           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />
        535           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
        536           <x sl:with-pa ram name=" ParamTOCDa ta" select ="$ParamTO CData" />
        537           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        538          </x sl:call-te mplate>
        539          <xs l:call-tem plate name ="Content- Notes">
        540           <x sl:with-pa ram name=" ParamNotes " select=" $VarNotes"  />
        541           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
        542           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />
        543           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
        544           <x sl:with-pa ram name=" ParamTOCDa ta" select ="$ParamTO CData" />
        545           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        546          </x sl:call-te mplate>
        547         </ww page:Repla cement>
        548  
        549         <!--  Variables  -->
        550         <!--             -->
        551         <xsl :variable  name="VarS plitGlobal VariablesA sXML">
        552          <xs l:call-tem plate name ="Variable s-Globals- Split">
        553           <x sl:with-pa ram name=" ParamProje ctVariable s" select= "$GlobalPr ojectVaria bles" />
        554           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        555          </x sl:call-te mplate>
        556         </xs l:variable >
        557         <xsl :variable  name="VarS plitGlobal Variables"  select="m sxsl:node- set($VarSp litGlobalV ariablesAs XML)/wwvar s:Variable " />
        558         <xsl :call-temp late name= "Variables -Page-Stri ng-Replace ments">
        559          <xs l:with-par am name="P aramVariab les" selec t="$VarSpl itGlobalVa riables" / >
        560         </xs l:call-tem plate>
        561        </xsl :variable>
        562        <xsl: variable n ame="VarRe placements " select=" msxsl:node -set($VarR eplacement sAsXML)" / >
        563  
        564        <!--  Map common  character s -->
        565        <!--                          -->
        566        <wwex sldoc:Mapp ingContext >
        567         <xsl :copy-of s elect="$Gl obalMapEnt rySets/wwe xsldoc:Map EntrySets/ wwexsldoc: MapEntrySe t[@name =  'common']/ wwexsldoc: MapEntry"  />
        568  
        569         <!--  Invoke pa ge templat e -->
        570         <!--                         -->
        571         <xsl :apply-tem plates sel ect="$Glob alPageTemp late" mode ="wwmode:p agetemplat e">
        572          <xs l:with-par am name="P aramOutput DirectoryP ath" selec t="$VarOut putDirecto ryPath" />
        573          <xs l:with-par am name="P aramOutput Path" sele ct="$Param Split/@pat h" />
        574          <xs l:with-par am name="P aramCondit ions" sele ct="$VarCo nditions"  />
        575          <xs l:with-par am name="P aramReplac ements" se lect="$Var Replacemen ts" />
        576         </xs l:apply-te mplates>
        577        </wwe xsldoc:Map pingContex t>
        578       </xsl: for-each>
        579      </xsl:v ariable>
        580  
        581      <!-- Ab orted? -->
        582      <!--           -->
        583      <xsl:if  test="not (wwprogres s:Abort()) ">
        584       <xsl:v ariable na me="VarRes ult" selec t="msxsl:n ode-set($V arResultAs XML)" />
        585       <xsl:v ariable na me="VarWri teResult"  select="ww exsldoc:Do cument($Va rResult, $ ParamSplit /@path, ww projext:Ge tFormatSet ting('enco ding'), 't ext')" />
        586      </xsl:i f>
        587     </xsl:if >
        588  
        589     <!-- Abo rted? -->
        590     <!--           -->
        591     <xsl:if  test="not( wwprogress :Abort())" >
        592      <!-- Re cord files  -->
        593      <!--                -->
        594      <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 }">
        595       <wwfil es:Depends  path="{$G lobalLocal ePath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lLocalePat h)}" group ID="" docu mentID=""  />
        596       <wwfil es:Depends  path="{$G lobalUILoc alePath}"  checksum=" {wwfilesys tem:GetChe cksum($Glo balUILocal ePath)}" g roupID=""  documentID ="" />
        597       <wwfil es:Depends  path="{$G lobalMapEn trySetsPat h}" checks um="{wwfil esystem:Ge tChecksum( $GlobalMap EntrySetsP ath)}" gro upID="" do cumentID=" " />
        598       <wwfil es:Depends  path="{$G lobalPageT emplatePat h}" checks um="{wwfil esystem:Ge tChecksum( $GlobalPag eTemplateP ath)}" gro upID="" do cumentID=" " />
        599       <wwfil es:Depends  path="{$G lobalProje ctVariable sPath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lProjectVa riablesPat h)}" group ID="" docu mentID=""  />
        600       <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 }" />
        601       <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}" / >
        602       <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}" />
        603      </wwfil es:File>
        604     </xsl:if >
        605    </xsl:tem plate>
        606   </xsl:styl esheet>