116. Araxis Merge File Comparison Report

Produced by Araxis Merge on Thu Oct 16 22:30:09 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.

116.1 Files compared

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

116.2 Comparison summary

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

116.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

116.4 Active regular expressions

No regular expressions were active.

116.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:wwto c="urn:Web Works-Engi ne-TOC-Sch ema"
        7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"
        8                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
        9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
        10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
        11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
        12                                    xmlns:wwva rs="urn:We bWorks-Var iables-Sch ema"
        13                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
        14                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema"
        15                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"
        16                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
        17                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
        18                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
        19                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
        20                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
        21                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
        22                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
        23                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
        24                                    exclude-re sult-prefi xes="xsl m sxsl wwtoc  wwlinks w wmode wwfi les wwdoc  wwsplits w wvars wwpr oject wwpa ge wwlocal e wwprogre ss wwlog w wfilesyste m wwuri ww string wwf ilesext ww projext ww exsldoc"
        25   >
        26    <xsl:para m name="Gl obalInput"  />
        27    <xsl:para m name="Gl obalPipeli neName" />
        28    <xsl:para m name="Gl obalProjec t" />
        29    <xsl:para m name="Gl obalFiles"  />
        30    <xsl:para m name="Pa rameterDep endsType"  />
        31    <xsl:para m name="Pa rameterSpl itsType" / >
        32    <xsl:para m name="Pa rameterTyp e" />
        33    <xsl:para m name="Pa rameterLoc aleType" / >
        34    <xsl:para m name="Pa rameterPro jectVariab lesType" / >
        35    <xsl:para m name="Pa rameterPag eTemplateU RI" />
        36    <xsl:para m name="Pa rameterTOC SplitFileT ype" />
        37    <xsl:para m name="Pa rameterInd exSplitFil eType" />
        38    <xsl:para m name="Pa rameterCat egory" />
        39    <xsl:para m name="Pa rameterUse " />
        40    <xsl:para m name="Pa rameterDep loy" />
        41  
        42  
        43    <xsl:outp ut encodin g="UTF-8"  indent="ye s" />
        44    <xsl:name space-alia s styleshe et-prefix= "wwwiki" r esult-pref ix="#defau lt" />
        45    <xsl:pres erve-space  elements= "*" />
        46  
        47  
        48    <xsl:incl ude href=" wwtransfor m:common/c ompanyinfo /companyin fo_content .xsl" />
        49    <xsl:incl ude href=" wwformat:T ransforms/ css_proper ties.xsl"  />
        50    <xsl:incl ude href=" wwtransfor m:common/v ariables/v ariables.x sl" />
        51    <xsl:incl ude href=" wwtransfor m:common/p ages/paget emplate.xs l" />
        52    <xsl:incl ude href=" wwtransfor m:uri/uri. xsl" />
        53    <xsl:incl ude href=" wwformat:T ransforms/ moinmoin.x sl" />
        54  
        55  
        56    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />
        57    <xsl:key  name="wwfi les-files- by-groupid -type" mat ch="wwfile s:File" us e="concat( @groupID,  ':', @type )" />
        58    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" />
        59  
        60  
        61    <xsl:vari able name= "GlobalAct ionChecksu m">
        62     <xsl:var iable name ="VarTrans formChecks ums">
        63      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />
        64      <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)))" / >
        65      <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')))"  />
        66      <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')))" / >
        67      <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')))" />
        68      <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' )))" />
        69      <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')))" / >
        70      <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')))" />
        71     </xsl:va riable>
        72     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />
        73    </xsl:var iable>
        74  
        75  
        76    <!-- Loca le -->
        77    <!--         -->
        78    <xsl:vari able name= "GlobalLoc alePath">
        79     <xsl:for -each sele ct="$Globa lFiles[1]" >
        80      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterLocale Type)[1]/@ path" />
        81     </xsl:fo r-each>
        82    </xsl:var iable>
        83    <xsl:vari able name= "GlobalLoc ale" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balLocaleP ath)" />
        84  
        85  
        86    <!-- Mapp ing Entry  Sets -->
        87    <!--                      -->
        88    <xsl:vari able name= "GlobalMap EntrySetsP ath" selec t="wwuri:A sFilePath( 'wwformat: Transforms /mapentrys ets.xml')"  />
        89    <xsl:vari able name= "GlobalMap EntrySets"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalM apEntrySet sPath)" />
        90  
        91  
        92    <!-- Page  Template  -->
        93    <!--                 -->
        94    <xsl:vari able name= "GlobalPag eTemplateP ath" selec t="wwuri:A sFilePath( $Parameter PageTempla teURI)" />
        95    <xsl:vari able name= "GlobalPag eTemplate"  select="w wexsldoc:L oadXMLWith outResolve r($GlobalP ageTemplat ePath)" />
        96  
        97  
        98    <!-- Proj ect variab les -->
        99    <!--                     -->
        100    <xsl:vari able name= "GlobalPro jectVariab lesPath">
        101     <xsl:for -each sele ct="$Globa lFiles[1]" >
        102      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterProjec tVariables Type)[1]/@ path" />
        103     </xsl:fo r-each>
        104    </xsl:var iable>
        105    <xsl:vari able name= "GlobalPro jectVariab les" selec t="wwexsld oc:LoadXML WithoutRes olver($Glo balProject VariablesP ath)" />
        106  
        107  
        108    <xsl:temp late match ="/">
        109     <wwfiles :Files ver sion="1.0" >
        110  
        111      <!-- Ge nerate TOC ? -->
        112      <!--                 -->
        113      <xsl:if  test="wwp rojext:Get FormatSett ing('toc-g enerate')  = 'true'">
        114       <!-- I terate inp ut documen ts -->
        115       <!--                            -->
        116       <xsl:f or-each se lect="$Glo balFiles[1 ]">
        117        <xsl: variable n ame="VarFi lesByType"  select="k ey('wwfile s-files-by -type', $P arameterDe pendsType) " />
        118  
        119        <xsl: value-of s elect="wwp rogress:St art(count( $VarFilesB yType))" / >
        120  
        121        <xsl: for-each s elect="$Va rFilesByTy pe">
        122         <xsl :value-of  select="ww progress:S tart(1)" / >
        123  
        124         <xsl :variable  name="VarF ilesDocume nt" select ="." />
        125  
        126         <!--  Load spli ts -->
        127         <!--               -->
        128         <xsl :variable  name="VarF ilesSplits " select=" key('wwfil es-files-b y-groupid- type', con cat($VarFi lesDocumen t/@groupID , ':', $Pa rameterSpl itsType))[ 1]" />
        129         <xsl :variable  name="VarS plits" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($V arFilesSpl its/@path) " />
        130  
        131         <xsl :for-each  select="$V arSplits[1 ]">
        132          <!- - Split -- >
        133          <!- -       -- >
        134          <xs l:variable  name="Var Split" sel ect="key(' wwsplits-f iles-by-gr oupid-type ', concat( $VarFilesD ocument/@g roupID, ': ', $Parame terTOCSpli tFileType) )[1]" />
        135  
        136          <!- - Transfor m -->
        137          <!- -            -->
        138          <xs l:variable  name="Var UpToDate"  select="ww filesext:U pToDate($V arSplit/@p ath, '', $ VarFilesDo cument/@gr oupID, $Va rFilesDocu ment/@docu mentID, $G lobalActio nChecksum) " />
        139          <xs l:if test= "not($VarU pToDate)">
        140           <x sl:variabl e name="Va rResultAsX ML">
        141            < !-- Load d ocument -- >
        142            < !--                -- >
        143            < xsl:variab le name="V arTOC" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($V arFilesDoc ument/@pat h)" />
        144  
        145            < xsl:call-t emplate na me="TableO fContents" >
        146              <xsl:with- param name ="ParamSpl its" selec t="$VarSpl its" />
        147              <xsl:with- param name ="ParamTOC " select=" $VarTOC" / >
        148              <xsl:with- param name ="ParamSpl it" select ="$VarSpli t" />
        149            < /xsl:call- template>
        150           </ xsl:variab le>
        151           <x sl:variabl e name="Va rResult" s elect="msx sl:node-se t($VarResu ltAsXML)"  />
        152           <x sl:variabl e name="Va rWriteResu lt" select ="wwexsldo c:Document ($VarResul t, $VarSpl it/@path,  wwprojext: GetFormatS etting('en coding'),  'text')" / >
        153          </x sl:if>
        154  
        155          <!- - Report F iles -->
        156          <!- -               -->
        157          <ww files:File  path="{$V arSplit/@p ath}" type ="{$Parame terType}"  checksum=" {wwfilesys tem:GetChe cksum($Var Split/@pat h)}" proje ctchecksum ="" groupI D="{$VarFi lesDocumen t/@groupID }" documen tID="{$Var FilesDocum ent/@docum entID}" ac tionchecks um="{$Glob alActionCh ecksum}" c ategory="{ $Parameter Category}"  use="{$Pa rameterUse }" deploy= "{$Paramet erDeploy}" >
        158           <w wfiles:Dep ends path= "{$GlobalL ocalePath} " checksum ="{wwfiles ystem:GetC hecksum($G lobalLocal ePath)}" g roupID=""  documentID ="" />
        159           <w wfiles:Dep ends path= "{$GlobalM apEntrySet sPath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lMapEntryS etsPath)}"  groupID=" " document ID="" />
        160           <w wfiles:Dep ends path= "{$GlobalP ageTemplat ePath}" ch ecksum="{w wfilesyste m:GetCheck sum($Globa lPageTempl atePath)}"  groupID=" " document ID="" />
        161           <w wfiles:Dep ends path= "{$GlobalP rojectVari ablesPath} " checksum ="{wwfiles ystem:GetC hecksum($G lobalProje ctVariable sPath)}" g roupID=""  documentID ="" />
        162           <w wfiles:Dep ends path= "{$VarFile sSplits/@p ath}" chec ksum="{$Va rFilesSpli ts/@checks um}" group ID="{$VarF ilesSplits /@groupID} " document ID="{$VarF ilesSplits /@document ID}" />
        163           <w wfiles:Dep ends path= "{$VarFile sDocument/ @path}" ch ecksum="{$ VarFilesDo cument/@ch ecksum}" g roupID="{$ VarFilesDo cument/@gr oupID}" do cumentID=" {$VarFiles Document/@ documentID }" />
        164          </w wfiles:Fil e>
        165         </xs l:for-each >
        166  
        167         <xsl :value-of  select="ww progress:E nd()" />
        168        </xsl :for-each>
        169  
        170        <xsl: value-of s elect="wwp rogress:En d()" />
        171       </xsl: for-each>
        172      </xsl:i f>
        173  
        174     </wwfile s:Files>
        175    </xsl:tem plate>
        176  
        177  
        178    <xsl:temp late name= "TableOfCo ntents">
        179     <xsl:par am name="P aramSplits " />
        180     <xsl:par am name="P aramTOC" / >
        181     <xsl:par am name="P aramSplit"  />
        182  
        183     <!-- Pag e Rule -->
        184     <!--            -->
        185     <xsl:var iable name ="VarPageR ule" selec t="wwproje xt:GetRule ('Page', $ ParamSplit /@stylenam e)" />
        186  
        187     <!-- CSS  Path -->
        188     <!--           -->
        189  
        190     <!-- Spl it files - ->
        191     <!--              - ->
        192     <xsl:for -each sele ct="$Param Splits[1]" >
        193      <!-- TO C -->
        194      <!--      -->
        195      <xsl:va riable nam e="VarTOCS plitFile"  select="ke y('wwsplit s-files-by -groupid-t ype', conc at($ParamS plit/@grou pID, ':',  $Parameter TOCSplitFi leType))[1 ]" />
        196  
        197      <!-- In dex -->
        198      <!--        -->
        199      <xsl:va riable nam e="VarInde xSplitFile " select=" key('wwspl its-files- by-groupid -type', co ncat($Para mSplit/@gr oupID, ':' , $Paramet erIndexSpl itFileType ))[1]" />
        200  
        201      <!-- Pr evious -->
        202      <!--           -->
        203      <xsl:va riable nam e="VarPoss iblePrevio usSplits"  select="$P aramSplit/ preceding- sibling::w wsplits:Sp lit[1]" />
        204      <xsl:va riable nam e="VarPrev iousSplit"  select="( $VarPossib lePrevious Splits[cou nt($VarPos siblePrevi ousSplits)  = 1] | $V arTOCSplit File[(coun t($VarPoss iblePrevio usSplits)  = 0) and ( count($Par amSplit |  $VarTOCSpl itFile) =  2)])" />
        205  
        206      <!-- Ne xt -->
        207      <!--       -->
        208      <xsl:va riable nam e="VarPoss ibleNextSp lits" sele ct="$Param Split/foll owing-sibl ing::wwspl its:Split[ 1]" />
        209      <xsl:va riable nam e="VarNext Split" sel ect="($Var PossibleNe xtSplits[c ount($VarP ossibleNex tSplits) =  1] | $Var IndexSplit File[(coun t($VarPoss ibleNextSp lits) = 0)  and (coun t($ParamSp lit | $Var IndexSplit File) = 2) ])" />
        210  
        211      <!-- Co nditions - ->
        212      <!--             - ->
        213      <xsl:va riable nam e="VarInit ialConditi onsAsXML">
        214       <!-- n avigation- top -->
        215       <!--                  -->
        216       <xsl:v ariable na me="VarNav igationTop GenerateOp tion" sele ct="$VarPa geRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'navigatio n-top-gene rate']/@Va lue" />
        217       <xsl:i f test="($ VarNavigat ionTopGene rateOption  = 'true')  or (strin g-length($ VarNavigat ionTopGene rateOption ) = 0)">
        218        <wwpa ge:Conditi on name="n avigation- top" />
        219       </xsl: if>
        220  
        221       <!-- n avigation- bottom -->
        222       <!--                     -->
        223       <xsl:v ariable na me="VarNav igationBot tomGenerat eOption" s elect="$Va rPageRule/ wwproject: Options/ww project:Op tion[@Name  = 'naviga tion-botto m-generate ']/@Value"  />
        224       <xsl:i f test="$V arNavigati onBottomGe nerateOpti on = 'true '">
        225        <wwpa ge:Conditi on name="n avigation- bottom" />
        226       </xsl: if>
        227  
        228       <!-- G enerate TO C? -->
        229       <!--                 -->
        230       <xsl:i f test="co unt($VarTO CSplitFile ) = 1">
        231        <xsl: choose>
        232         <xsl :when test ="count($P aramSplit  | $VarTOCS plitFile)  = 1">
        233          <!- - navigati on-toc-cur rent -->
        234          <!- -                          -->
        235          <ww page:Condi tion name= "navigatio n-toc-curr ent" />
        236         </xs l:when>
        237  
        238         <xsl :otherwise >
        239          <!- - navigati on-toc-not -current - ->
        240          <!- -                          -->
        241          <ww page:Condi tion name= "navigatio n-toc-not- current" / >
        242         </xs l:otherwis e>
        243        </xsl :choose>
        244       </xsl: if>
        245  
        246       <!-- n avigation- previous-e xists -->
        247       <!--                               -->
        248       <xsl:i f test="co unt($VarPr eviousSpli t) = 1">
        249        <wwpa ge:Conditi on name="n avigation- previous-e xists" />
        250       </xsl: if>
        251  
        252       <!-- n avigation- previous-n ot-exists  -->
        253       <!--                                    -->
        254       <xsl:i f test="co unt($VarPr eviousSpli t) = 0">
        255        <wwpa ge:Conditi on name="n avigation- previous-n ot-exists"  />
        256       </xsl: if>
        257  
        258       <!-- n avigation- next-exist s -->
        259       <!--                           -->
        260       <xsl:i f test="co unt($VarNe xtSplit) =  1">
        261        <wwpa ge:Conditi on name="n avigation- next-exist s" />
        262       </xsl: if>
        263  
        264       <!-- n avigation- next-not-e xists -->
        265       <!--                               -->
        266       <xsl:i f test="co unt($VarNe xtSplit) =  0">
        267        <wwpa ge:Conditi on name="n avigation- next-not-e xists" />
        268       </xsl: if>
        269  
        270       <!-- G enerate In dex? -->
        271       <!--                   -->
        272       <xsl:i f test="co unt($VarIn dexSplitFi le) = 1">
        273        <xsl: choose>
        274         <xsl :when test ="count($P aramSplit  | $VarInde xSplitFile ) = 1">
        275          <!- - navigati on-index-c urrent -->
        276          <!- -                          -->
        277          <ww page:Condi tion name= "navigatio n-index-cu rrent" />
        278         </xs l:when>
        279  
        280         <xsl :otherwise >
        281          <!- - navigati on-index-n ot-current  -->
        282          <!- -                          -->
        283          <ww page:Condi tion name= "navigatio n-index-no t-current"  />
        284         </xs l:otherwis e>
        285        </xsl :choose>
        286       </xsl: if>
        287  
        288       <!-- C ompany Inf o -->
        289       <!--                -->
        290       <xsl:c all-templa te name="C ompanyInfo -Condition s">
        291        <xsl: with-param  name="Par amPageRule " select=" $VarPageRu le" />
        292       </xsl: call-templ ate>
        293      </xsl:v ariable>
        294      <xsl:va riable nam e="VarInit ialConditi ons" selec t="msxsl:n ode-set($V arInitialC onditionsA sXML)" />
        295  
        296      <!-- Se t header/f ooter cond itions -->
        297      <!--                                 -->
        298      <xsl:va riable nam e="VarCond itionsAsXM L">
        299       <!-- C opy existi ng as is - ->
        300       <!--                       - ->
        301       <xsl:f or-each se lect="$Var InitialCon ditions/*" >
        302        <xsl: copy-of se lect="." / >
        303       </xsl: for-each>
        304  
        305       <xsl:f or-each se lect="$Var InitialCon ditions[1] ">
        306        <!--  header-exi sts -->
        307        <!--                 -->
        308        <xsl: variable n ame="VarHe aderExists " select=" count(key( 'wwpage-co nditions-b y-name', ' navigation -top') | k ey('wwpage -condition s-by-name' , 'breadcr umbs-top')  | key('ww page-condi tions-by-n ame', 'com pany-info- top')) &gt ; 0" />
        309        <xsl: if test="$ VarHeaderE xists">
        310         <wwp age:Condit ion name=" header-exi sts" />
        311        </xsl :if>
        312  
        313        <!--  footer-exi sts -->
        314        <!--                 -->
        315        <xsl: variable n ame="VarFo oterExists " select=" count(key( 'wwpage-co nditions-b y-name', ' navigation -bottom')  | key('wwp age-condit ions-by-na me', 'brea dcrumbs-bo ttom') | k ey('wwpage -condition s-by-name' , 'company -info-bott om')) &gt;  0" />
        316        <xsl: if test="$ VarFooterE xists">
        317         <wwp age:Condit ion name=" footer-exi sts" />
        318        </xsl :if>
        319  
        320        <!--  header-foo ter-exists  -->
        321        <!--                         -->
        322        <xsl: choose>
        323         <xsl :when test ="$VarHead erExists o r $VarFoot erExists">
        324          <ww page:Condi tion name= "header-fo oter-exist s" />
        325         </xs l:when>
        326  
        327         <xsl :otherwise >
        328          <ww page:Condi tion name= "header-fo oter-not-e xists" />
        329         </xs l:otherwis e>
        330        </xsl :choose>
        331       </xsl: for-each>
        332      </xsl:v ariable>
        333      <xsl:va riable nam e="VarCond itions" se lect="msxs l:node-set ($VarCondi tionsAsXML )" />
        334  
        335      <!-- Re placements  -->
        336      <!--                -->
        337      <xsl:va riable nam e="VarRepl acementsAs XML">
        338       <wwpag e:Replacem ent name=" title" val ue="{$Para mSplit/@ti tle}" />
        339       <wwpag e:Replacem ent name=" navigation -toc-title " value="{ $VarTOCSpl itFile/@ti tle}" />
        340       <wwpag e:Replacem ent name=" navigation -previous- title" val ue="{$Glob alLocale/w wlocale:Lo cale/wwloc ale:String s/wwlocale :String[@n ame = 'Pre vious']/@v alue}" />
        341       <wwpag e:Replacem ent name=" navigation -next-titl e" value=" {$GlobalLo cale/wwloc ale:Locale /wwlocale: Strings/ww locale:Str ing[@name  = 'Next']/ @value}" / >
        342       <wwpag e:Replacem ent name=" navigation -index-tit le" value= "{$VarInde xSplitFile /@title}"  />
        343  
        344       <wwpag e:Replacem ent name=" locale" va lue="{wwpr ojext:GetF ormatSetti ng('locale ')}" />
        345  
        346       <wwpag e:Replacem ent name=" navigation -top-style ">
        347        <xsl: attribute  name="valu e">
        348         <xsl :variable  name="VarA lignmentPr operty" se lect="$Var PageRule/w wproject:P roperties/ wwproject: Property[@ Name = 'na vigation-t op-alignme nt']/@Valu e" />
        349          <xs l:choose>
        350           <x sl:when te st="$VarAl ignmentPro perty = 'c enter'">
        351            < xsl:value- of select= "'margin-l eft: auto; '" />
        352            < xsl:value- of select= "' margin- right: aut o;'" />
        353           </ xsl:when>
        354  
        355           <x sl:when te st="$VarAl ignmentPro perty = 'r ight'">
        356            < xsl:value- of select= "'margin-l eft: auto; '" />
        357            < xsl:value- of select= "' margin- right: 0em ;'" />
        358           </ xsl:when>
        359  
        360           <x sl:otherwi se>
        361            < xsl:value- of select= "'margin-l eft: 0em;' " />
        362            < xsl:value- of select= "' margin- right: aut o;'" />
        363           </ xsl:otherw ise>
        364          </x sl:choose>
        365        </xsl :attribute >
        366       </wwpa ge:Replace ment>
        367  
        368       <wwpag e:Replacem ent name=" navigation -bottom-st yle">
        369        <xsl: attribute  name="valu e">
        370         <xsl :variable  name="VarA lignmentPr operty" se lect="$Var PageRule/w wproject:P roperties/ wwproject: Property[@ Name = 'na vigation-b ottom-alig nment']/@V alue" />
        371          <xs l:choose>
        372           <x sl:when te st="$VarAl ignmentPro perty = 'c enter'">
        373            < xsl:value- of select= "'margin-l eft: auto; '" />
        374            < xsl:value- of select= "' margin- right: aut o;'" />
        375           </ xsl:when>
        376  
        377           <x sl:when te st="$VarAl ignmentPro perty = 'l eft'">
        378            < xsl:value- of select= "'margin-l eft: 0em;' " />
        379            < xsl:value- of select= "' margin- right: aut o;'" />
        380           </ xsl:when>
        381  
        382           <x sl:otherwi se>
        383            < xsl:value- of select= "'margin-l eft: auto; '" />
        384            < xsl:value- of select= "' margin- right: 0em ;'" />
        385           </ xsl:otherw ise>
        386          </x sl:choose>
        387        </xsl :attribute >
        388       </wwpa ge:Replace ment>
        389  
        390       <xsl:i f test="co unt($VarTO CSplitFile ) = 1">
        391        <wwpa ge:Replace ment name= "navigatio n-toc-link ">
        392         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        393          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        394          <xs l:with-par am name="P aramTarget " select=" $VarTOCSpl itFile/@pa th" />
        395         </xs l:call-tem plate>
        396        </wwp age:Replac ement>
        397       </xsl: if>
        398       <xsl:i f test="co unt($VarPr eviousSpli t) = 1">
        399        <wwpa ge:Replace ment name= "navigatio n-previous -link">
        400         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        401          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        402          <xs l:with-par am name="P aramTarget " select=" $VarPrevio usSplit/@p ath" />
        403         </xs l:call-tem plate>
        404        </wwp age:Replac ement>
        405       </xsl: if>
        406       <xsl:i f test="co unt($VarNe xtSplit) =  1">
        407        <wwpa ge:Replace ment name= "navigatio n-next-lin k">
        408         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        409          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        410          <xs l:with-par am name="P aramTarget " select=" $VarNextSp lit/@path"  />
        411         </xs l:call-tem plate>
        412        </wwp age:Replac ement>
        413       </xsl: if>
        414       <xsl:i f test="co unt($VarIn dexSplitFi le) = 1">
        415        <wwpa ge:Replace ment name= "navigatio n-index-li nk">
        416         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        417          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        418          <xs l:with-par am name="P aramTarget " select=" $VarIndexS plitFile/@ path" />
        419         </xs l:call-tem plate>
        420        </wwp age:Replac ement>
        421       </xsl: if>
        422  
        423       <!-- C ompany Inf o -->
        424       <!--                -->
        425       <xsl:c all-templa te name="C ompanyInfo -Replaceme nts">
        426        <xsl: with-param  name="Par amPageRule " select=" $VarPageRu le" />
        427        <xsl: with-param  name="Par amPagePath " select=" $ParamSpli t/@path" / >
        428        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        429       </xsl: call-templ ate>
        430  
        431       <!-- C ontent -->
        432       <!--          -->
        433       <wwpag e:Replacem ent name=" content">
        434        <xsl: call-templ ate name=" Content-Co ntent">
        435         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        436         <xsl :with-para m name="Pa ramContent " select=" $ParamTOC"  />
        437        </xsl :call-temp late>
        438       </wwpa ge:Replace ment>
        439  
        440       <!-- V ariables - ->
        441       <!--            - ->
        442       <xsl:v ariable na me="VarPag eVariables AsXML">
        443        <xsl: for-each s elect="$Gl obalProjec tVariables [1]">
        444         <xsl :variable  name="VarV ariablesGr oup" selec t="key('ww vars-group s-by-group id', $Para mSplit/@gr oupID)[1]"  />
        445  
        446         <xsl :call-temp late name= "Variables -Filter-La st-Unique" >
        447          <xs l:with-par am name="P aramVariab les" selec t="$VarVar iablesGrou p//wwvars: Variable"  />
        448         </xs l:call-tem plate>
        449        </xsl :for-each>
        450       </xsl: variable>
        451       <xsl:v ariable na me="VarPag eVariables " select=" msxsl:node -set($VarP ageVariabl esAsXML)/w wvars:Vari able" />
        452       <xsl:c all-templa te name="V ariables-P age-String -Replaceme nts">
        453        <xsl: with-param  name="Par amVariable s" select= "$VarPageV ariables"  />
        454       </xsl: call-templ ate>
        455      </xsl:v ariable>
        456      <xsl:va riable nam e="VarRepl acements"  select="ms xsl:node-s et($VarRep lacementsA sXML)" />
        457  
        458      <!-- Ma p common c haracters  -->
        459      <!--                          -->
        460      <wwexsl doc:Mappin gContext>
        461       <xsl:c opy-of sel ect="$Glob alMapEntry Sets/wwexs ldoc:MapEn trySets/ww exsldoc:Ma pEntrySet[ @name = 'c ommon']/ww exsldoc:Ma pEntry" />
        462  
        463       <!-- W ikified gr oup name - ->
        464       <!--                       - ->
        465       <xsl:v ariable na me="VarWik ifiedGroup Name">
        466        <xsl: call-templ ate name=" MoinMoin-W ikifyPathC omponent">
        467         <xsl :with-para m name="Pa ramPathCom ponent" se lect="wwpr ojext:GetG roupName($ ParamSplit /@groupID) " />
        468        </xsl :call-temp late>
        469       </xsl: variable>
        470  
        471       <!-- I nvoke page  template  -->
        472       <!--                         -->
        473       <xsl:a pply-templ ates selec t="$Global PageTempla te" mode=" wwmode:pag etemplate" >
        474        <xsl: with-param  name="Par amOutputDi rectoryPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetTarge tOutputDir ectoryPath (), $VarWi kifiedGrou pName)" />
        475        <xsl: with-param  name="Par amOutputPa th" select ="$ParamSp lit/@path"  />
        476        <xsl: with-param  name="Par amConditio ns" select ="$VarCond itions" />
        477        <xsl: with-param  name="Par amReplacem ents" sele ct="$VarRe placements " />
        478       </xsl: apply-temp lates>
        479      </wwexs ldoc:Mappi ngContext>
        480     </xsl:fo r-each>
        481    </xsl:tem plate>
        482  
        483  
        484    <xsl:temp late name= "Content-C ontent">
        485     <xsl:par am name="P aramSplit"  />
        486     <xsl:par am name="P aramConten t" />
        487  
        488     <!-- Pro cess TOC - ->
        489     <!--              - ->
        490     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:t oc">
        491      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        492     </xsl:ap ply-templa tes>
        493    </xsl:tem plate>
        494  
        495  
        496    <!-- wwmo de:toc -->
        497    <!--             -->
        498  
        499    <xsl:temp late match ="/" mode= "wwmode:to c">
        500     <xsl:par am name="P aramSplit"  />
        501  
        502     <!-- Pro cess child ren -->
        503     <!--                    -->
        504     <xsl:app ly-templat es mode="w wmode:toc" >
        505      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        506     </xsl:ap ply-templa tes>
        507    </xsl:tem plate>
        508  
        509  
        510    <xsl:temp late match ="wwtoc:Ta bleOfConte nts" mode= "wwmode:to c">
        511     <xsl:par am name="P aramSplit"  />
        512  
        513     <!-- TOC  Title -->
        514     <!--            -->
        515     <xsl:tex t>= </xsl: text>
        516     <xsl:val ue-of sele ct="$Param Split/@tit le" />
        517     <xsl:tex t> =
        518  
        519   </xsl:text >
        520  
        521     <!-- Pro cess child ren -->
        522     <!--                    -->
        523     <xsl:app ly-templat es mode="w wmode:toc" >
        524      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        525     </xsl:ap ply-templa tes>
        526    </xsl:tem plate>
        527  
        528  
        529    <xsl:temp late match ="wwtoc:En try" mode= "wwmode:to c">
        530     <xsl:par am name="P aramSplit"  />
        531     <xsl:par am name="P aramEntry"  select=". " />
        532  
        533     <!-- Det ermine lev el -->
        534     <!--                   -->
        535     <xsl:var iable name ="VarLevel " select=" count($Par amEntry/an cestor-or- self::wwto c:Entry)"  />
        536  
        537     <!-- Emi t prefix - ->
        538     <!--              - ->
        539     <xsl:cal l-template  name="Spa ces">
        540      <xsl:wi th-param n ame="Param SpacesToEm it" select ="$VarLeve l" />
        541     </xsl:ca ll-templat e>
        542  
        543     <!-- Tex t -->
        544     <!--       -->
        545     <xsl:cho ose>
        546      <!-- Li nk defined ! -->
        547      <!--                 -->
        548      <xsl:wh en test="s tring-leng th($ParamE ntry/@path ) &gt; 0">
        549       <!-- L ink prefix  -->
        550       <!--               -->
        551       <xsl:t ext>[[</xs l:text>
        552       <xsl:c all-templa te name="M oinMoin-Re lativePage Link">
        553        <xsl: with-param  name="Par amSource"  select="$P aramSplit/ @path" />
        554        <xsl: with-param  name="Par amTarget"  select="$P aramEntry/ @path" />
        555       </xsl: call-templ ate>
        556       <xsl:i f test="$P aramEntry/ @first !=  'true'">
        557        <xsl: text>#</xs l:text>
        558        <xsl: value-of s elect="$Pa ramEntry/@ linkid" />
        559       </xsl: if>
        560       <xsl:t ext>|</xsl :text>
        561  
        562       <!-- T ext -->
        563       <!--       -->
        564       <xsl:c all-templa te name="P aragraph">
        565        <xsl: with-param  name="Par amParagrap h" select= "$ParamEnt ry/wwdoc:P aragraph"  />
        566       </xsl: call-templ ate>
        567  
        568       <!-- L ink suffix  -->
        569       <!--               -->
        570       <xsl:t ext>]]</xs l:text>
        571      </xsl:w hen>
        572  
        573      <!-- Mi ssing link ! -->
        574      <!--                 -->
        575      <xsl:ot herwise>
        576       <!-- C ollect up  text -->
        577       <!--                   -->
        578       <xsl:v ariable na me="VarPar agraphText ">
        579        <xsl: call-templ ate name=" Paragraph" >
        580         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamEn try/wwdoc: Paragraph"  />
        581        </xsl :call-temp late>
        582       </xsl: variable>
        583  
        584       <!-- E scape for  display -- >
        585       <!--                      -- >
        586       <xsl:c all-templa te name="M oinMoin-Es capeParagr aphText">
        587        <xsl: with-param  name="Par amText" se lect="$Var ParagraphT ext" />
        588       </xsl: call-templ ate>
        589      </xsl:o therwise>
        590     </xsl:ch oose>
        591  
        592     <!-- End  entry -->
        593     <!--            -->
        594     <xsl:tex t>
        595  
        596   </xsl:text >
        597  
        598     <!-- Pro cess child ren -->
        599     <!--                    -->
        600     <xsl:app ly-templat es mode="w wmode:toc" >
        601      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        602     </xsl:ap ply-templa tes>
        603    </xsl:tem plate>
        604  
        605  
        606    <xsl:temp late name= "Paragraph ">
        607     <xsl:par am name="P aramParagr aph" />
        608  
        609     <xsl:var iable name ="VarText" >
        610      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Num ber/wwdoc: Text | $Pa ramParagra ph/wwdoc:T extRun/wwd oc:Text">
        611       <xsl:v alue-of se lect="@val ue" />
        612      </xsl:f or-each>
        613     </xsl:va riable>
        614     <xsl:val ue-of sele ct="normal ize-space( $VarText)"  />
        615    </xsl:tem plate>
        616   </xsl:styl esheet>