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

105.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 index.xsl Mon Oct 13 05:51:50 2008 UTC

105.2 Comparison summary

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

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

105.4 Active regular expressions

No regular expressions were active.

105.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:wwin dex="urn:W ebWorks-In dex-Schema "
        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 wwind ex wwlinks  wwmode ww files wwdo c wwsplits  wwvars ww project ww page wwloc ale wwprog ress wwlog  wwfilesys tem wwuri  wwstring w wfilesext  wwprojext  wwexsldoc"
        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 Ind ex? -->
        112      <!--                   -->
        113      <xsl:if  test="wwp rojext:Get FormatSett ing('index -generate' ) = '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 terIndexSp litFileTyp e))[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 arIndex" s elect="wwe xsldoc:Loa dXMLWithou tResolver( $VarFilesD ocument/@p ath)" />
        144  
        145            < xsl:call-t emplate na me="Index" >
        146              <xsl:with- param name ="ParamSpl its" selec t="$VarSpl its" />
        147              <xsl:with- param name ="ParamInd ex" select ="$VarInde x" />
        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= "Index">
        179     <xsl:par am name="P aramSplits " />
        180     <xsl:par am name="P aramIndex"  />
        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     <!-- Spl it files - ->
        188     <!--              - ->
        189     <xsl:for -each sele ct="$Param Splits[1]" >
        190      <!-- TO C -->
        191      <!--      -->
        192      <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 ]" />
        193  
        194      <!-- In dex -->
        195      <!--        -->
        196      <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]" />
        197  
        198      <!-- Pr evious -->
        199      <!--           -->
        200      <xsl:va riable nam e="VarPoss iblePrevio usSplits"  select="$P aramSplit/ preceding- sibling::w wsplits:Sp lit[1]" />
        201      <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)])" />
        202  
        203      <!-- Ne xt -->
        204      <!--       -->
        205      <xsl:va riable nam e="VarPoss ibleNextSp lits" sele ct="$Param Split/foll owing-sibl ing::wwspl its:Split[ 1]" />
        206      <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) ])" />
        207  
        208      <!-- Co nditions - ->
        209      <!--             - ->
        210      <xsl:va riable nam e="VarInit ialConditi onsAsXML">
        211       <!-- n avigation- top -->
        212       <!--                  -->
        213       <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" />
        214       <xsl:i f test="($ VarNavigat ionTopGene rateOption  = 'true')  or (strin g-length($ VarNavigat ionTopGene rateOption ) = 0)">
        215        <wwpa ge:Conditi on name="n avigation- top" />
        216       </xsl: if>
        217  
        218       <!-- n avigation- bottom -->
        219       <!--                     -->
        220       <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"  />
        221       <xsl:i f test="$V arNavigati onBottomGe nerateOpti on = 'true '">
        222        <wwpa ge:Conditi on name="n avigation- bottom" />
        223       </xsl: if>
        224  
        225       <!-- G enerate TO C? -->
        226       <!--                 -->
        227       <xsl:i f test="co unt($VarTO CSplitFile ) = 1">
        228        <xsl: choose>
        229         <xsl :when test ="count($P aramSplit  | $VarTOCS plitFile)  = 1">
        230          <!- - navigati on-toc-cur rent -->
        231          <!- -                          -->
        232          <ww page:Condi tion name= "navigatio n-toc-curr ent" />
        233         </xs l:when>
        234  
        235         <xsl :otherwise >
        236          <!- - navigati on-toc-not -current - ->
        237          <!- -                          -->
        238          <ww page:Condi tion name= "navigatio n-toc-not- current" / >
        239         </xs l:otherwis e>
        240        </xsl :choose>
        241       </xsl: if>
        242  
        243       <!-- n avigation- previous-e xists -->
        244       <!--                               -->
        245       <xsl:i f test="co unt($VarPr eviousSpli t) = 1">
        246        <wwpa ge:Conditi on name="n avigation- previous-e xists" />
        247       </xsl: if>
        248  
        249       <!-- n avigation- previous-n ot-exists  -->
        250       <!--                                    -->
        251       <xsl:i f test="co unt($VarPr eviousSpli t) = 0">
        252        <wwpa ge:Conditi on name="n avigation- previous-n ot-exists"  />
        253       </xsl: if>
        254  
        255       <!-- n avigation- next-exist s -->
        256       <!--                           -->
        257       <xsl:i f test="co unt($VarNe xtSplit) =  1">
        258        <wwpa ge:Conditi on name="n avigation- next-exist s" />
        259       </xsl: if>
        260  
        261       <!-- n avigation- next-not-e xists -->
        262       <!--                               -->
        263       <xsl:i f test="co unt($VarNe xtSplit) =  0">
        264        <wwpa ge:Conditi on name="n avigation- next-not-e xists" />
        265       </xsl: if>
        266  
        267       <!-- G enerate In dex? -->
        268       <!--                   -->
        269       <xsl:i f test="co unt($VarIn dexSplitFi le) = 1">
        270        <xsl: choose>
        271         <xsl :when test ="count($P aramSplit  | $VarInde xSplitFile ) = 1">
        272          <!- - navigati on-index-c urrent -->
        273          <!- -                          -->
        274          <ww page:Condi tion name= "navigatio n-index-cu rrent" />
        275         </xs l:when>
        276  
        277         <xsl :otherwise >
        278          <!- - navigati on-index-n ot-current  -->
        279          <!- -                          -->
        280          <ww page:Condi tion name= "navigatio n-index-no t-current"  />
        281         </xs l:otherwis e>
        282        </xsl :choose>
        283       </xsl: if>
        284  
        285       <!-- C ompany Inf o -->
        286       <!--                -->
        287       <xsl:c all-templa te name="C ompanyInfo -Condition s">
        288        <xsl: with-param  name="Par amPageRule " select=" $VarPageRu le" />
        289       </xsl: call-templ ate>
        290      </xsl:v ariable>
        291      <xsl:va riable nam e="VarInit ialConditi ons" selec t="msxsl:n ode-set($V arInitialC onditionsA sXML)" />
        292  
        293      <!-- Se t header/f ooter cond itions -->
        294      <!--                                 -->
        295      <xsl:va riable nam e="VarCond itionsAsXM L">
        296       <!-- C opy existi ng as is - ->
        297       <!--                       - ->
        298       <xsl:f or-each se lect="$Var InitialCon ditions/*" >
        299        <xsl: copy-of se lect="." / >
        300       </xsl: for-each>
        301  
        302       <xsl:f or-each se lect="$Var InitialCon ditions[1] ">
        303        <!--  header-exi sts -->
        304        <!--                 -->
        305        <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" />
        306        <xsl: if test="$ VarHeaderE xists">
        307         <wwp age:Condit ion name=" header-exi sts" />
        308        </xsl :if>
        309  
        310        <!--  footer-exi sts -->
        311        <!--                 -->
        312        <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" />
        313        <xsl: if test="$ VarFooterE xists">
        314         <wwp age:Condit ion name=" footer-exi sts" />
        315        </xsl :if>
        316  
        317        <!--  header-foo ter-exists  -->
        318        <!--                         -->
        319        <xsl: choose>
        320         <xsl :when test ="$VarHead erExists o r $VarFoot erExists">
        321          <ww page:Condi tion name= "header-fo oter-exist s" />
        322         </xs l:when>
        323  
        324         <xsl :otherwise >
        325          <ww page:Condi tion name= "header-fo oter-not-e xists" />
        326         </xs l:otherwis e>
        327        </xsl :choose>
        328       </xsl: for-each>
        329      </xsl:v ariable>
        330      <xsl:va riable nam e="VarCond itions" se lect="msxs l:node-set ($VarCondi tionsAsXML )" />
        331  
        332      <!-- Re placements  -->
        333      <!--                -->
        334      <xsl:va riable nam e="VarRepl acementsAs XML">
        335       <wwpag e:Replacem ent name=" title" val ue="{$Para mSplit/@ti tle}" />
        336       <wwpag e:Replacem ent name=" navigation -toc-title " value="{ $VarTOCSpl itFile/@ti tle}" />
        337       <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}" />
        338       <wwpag e:Replacem ent name=" navigation -next-titl e" value=" {$GlobalLo cale/wwloc ale:Locale /wwlocale: Strings/ww locale:Str ing[@name  = 'Next']/ @value}" / >
        339       <wwpag e:Replacem ent name=" navigation -index-tit le" value= "{$VarInde xSplitFile /@title}"  />
        340  
        341       <wwpag e:Replacem ent name=" locale" va lue="{wwpr ojext:GetF ormatSetti ng('locale ')}" />
        342  
        343       <wwpag e:Replacem ent name=" navigation -top-style ">
        344        <xsl: attribute  name="valu e">
        345         <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" />
        346         <xsl :choose>
        347          <xs l:when tes t="$VarAli gnmentProp erty = 'ce nter'">
        348           <x sl:value-o f select=" 'margin-le ft: auto;' " />
        349           <x sl:value-o f select=" ' margin-r ight: auto ;'" />
        350          </x sl:when>
        351  
        352          <xs l:when tes t="$VarAli gnmentProp erty = 'ri ght'">
        353           <x sl:value-o f select=" 'margin-le ft: auto;' " />
        354           <x sl:value-o f select=" ' margin-r ight: 0em; '" />
        355          </x sl:when>
        356  
        357          <xs l:otherwis e>
        358           <x sl:value-o f select=" 'margin-le ft: 0em;'"  />
        359           <x sl:value-o f select=" ' margin-r ight: auto ;'" />
        360          </x sl:otherwi se>
        361         </xs l:choose>
        362        </xsl :attribute >
        363       </wwpa ge:Replace ment>
        364  
        365       <wwpag e:Replacem ent name=" navigation -bottom-st yle">
        366        <xsl: attribute  name="valu e">
        367         <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" />
        368         <xsl :choose>
        369          <xs l:when tes t="$VarAli gnmentProp erty = 'ce nter'">
        370           <x sl:value-o f select=" 'margin-le ft: auto;' " />
        371           <x sl:value-o f select=" ' margin-r ight: auto ;'" />
        372          </x sl:when>
        373  
        374          <xs l:when tes t="$VarAli gnmentProp erty = 'le ft'">
        375           <x sl:value-o f select=" 'margin-le ft: 0em;'"  />
        376           <x sl:value-o f select=" ' margin-r ight: auto ;'" />
        377          </x sl:when>
        378  
        379          <xs l:otherwis e>
        380           <x sl:value-o f select=" 'margin-le ft: auto;' " />
        381           <x sl:value-o f select=" ' margin-r ight: 0em; '" />
        382          </x sl:otherwi se>
        383         </xs l:choose>
        384        </xsl :attribute >
        385       </wwpa ge:Replace ment>
        386  
        387       <xsl:i f test="co unt($VarTO CSplitFile ) = 1">
        388        <wwpa ge:Replace ment name= "navigatio n-toc-link ">
        389         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        390          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        391          <xs l:with-par am name="P aramTarget " select=" $VarTOCSpl itFile/@pa th" />
        392         </xs l:call-tem plate>
        393        </wwp age:Replac ement>
        394       </xsl: if>
        395       <xsl:i f test="co unt($VarPr eviousSpli t) = 1">
        396        <wwpa ge:Replace ment name= "navigatio n-previous -link">
        397         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        398          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        399          <xs l:with-par am name="P aramTarget " select=" $VarPrevio usSplit/@p ath" />
        400         </xs l:call-tem plate>
        401        </wwp age:Replac ement>
        402       </xsl: if>
        403       <xsl:i f test="co unt($VarNe xtSplit) =  1">
        404        <wwpa ge:Replace ment name= "navigatio n-next-lin k">
        405         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        406          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        407          <xs l:with-par am name="P aramTarget " select=" $VarNextSp lit/@path"  />
        408         </xs l:call-tem plate>
        409        </wwp age:Replac ement>
        410       </xsl: if>
        411       <xsl:i f test="co unt($VarIn dexSplitFi le) = 1">
        412        <wwpa ge:Replace ment name= "navigatio n-index-li nk">
        413         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        414          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        415          <xs l:with-par am name="P aramTarget " select=" $VarIndexS plitFile/@ path" />
        416         </xs l:call-tem plate>
        417        </wwp age:Replac ement>
        418       </xsl: if>
        419  
        420       <!-- C ompany Inf o -->
        421       <!--                -->
        422       <xsl:c all-templa te name="C ompanyInfo -Replaceme nts">
        423        <xsl: with-param  name="Par amPageRule " select=" $VarPageRu le" />
        424        <xsl: with-param  name="Par amPagePath " select=" $ParamSpli t/@path" / >
        425        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        426       </xsl: call-templ ate>
        427  
        428       <!-- C ontent -->
        429       <!--          -->
        430       <wwpag e:Replacem ent name=" content">
        431        <xsl: call-templ ate name=" Content-Co ntent">
        432         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        433         <xsl :with-para m name="Pa ramContent " select=" $ParamInde x" />
        434        </xsl :call-temp late>
        435       </wwpa ge:Replace ment>
        436  
        437       <!-- V ariables - ->
        438       <!--            - ->
        439       <xsl:v ariable na me="VarPag eVariables AsXML">
        440        <xsl: for-each s elect="$Gl obalProjec tVariables [1]">
        441         <xsl :variable  name="VarV ariablesGr oup" selec t="key('ww vars-group s-by-group id', $Para mSplit/@gr oupID)[1]"  />
        442  
        443         <xsl :call-temp late name= "Variables -Filter-La st-Unique" >
        444          <xs l:with-par am name="P aramVariab les" selec t="$VarVar iablesGrou p//wwvars: Variable"  />
        445         </xs l:call-tem plate>
        446        </xsl :for-each>
        447       </xsl: variable>
        448       <xsl:v ariable na me="VarPag eVariables " select=" msxsl:node -set($VarP ageVariabl esAsXML)/w wvars:Vari able" />
        449       <xsl:c all-templa te name="V ariables-P age-String -Replaceme nts">
        450        <xsl: with-param  name="Par amVariable s" select= "$VarPageV ariables"  />
        451       </xsl: call-templ ate>
        452      </xsl:v ariable>
        453      <xsl:va riable nam e="VarRepl acements"  select="ms xsl:node-s et($VarRep lacementsA sXML)" />
        454  
        455      <!-- Ma p common c haracters  -->
        456      <!--                          -->
        457      <wwexsl doc:Mappin gContext>
        458       <xsl:c opy-of sel ect="$Glob alMapEntry Sets/wwexs ldoc:MapEn trySets/ww exsldoc:Ma pEntrySet[ @name = 'c ommon']/ww exsldoc:Ma pEntry" />
        459  
        460       <!-- W ikified gr oup name - ->
        461       <!--                       - ->
        462       <xsl:v ariable na me="VarWik ifiedGroup Name">
        463        <xsl: call-templ ate name=" MoinMoin-W ikifyPathC omponent">
        464         <xsl :with-para m name="Pa ramPathCom ponent" se lect="wwpr ojext:GetG roupName($ ParamSplit /@groupID) " />
        465        </xsl :call-temp late>
        466       </xsl: variable>
        467  
        468       <!-- I nvoke page  template  -->
        469       <!--                         -->
        470       <xsl:a pply-templ ates selec t="$Global PageTempla te" mode=" wwmode:pag etemplate" >
        471        <xsl: with-param  name="Par amOutputDi rectoryPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetTarge tOutputDir ectoryPath (), $VarWi kifiedGrou pName)" />
        472        <xsl: with-param  name="Par amOutputPa th" select ="$ParamSp lit/@path"  />
        473        <xsl: with-param  name="Par amConditio ns" select ="$VarCond itions" />
        474        <xsl: with-param  name="Par amReplacem ents" sele ct="$VarRe placements " />
        475       </xsl: apply-temp lates>
        476      </wwexs ldoc:Mappi ngContext>
        477     </xsl:fo r-each>
        478    </xsl:tem plate>
        479  
        480  
        481    <xsl:temp late name= "Content-C ontent">
        482     <xsl:par am name="P aramConten t" />
        483     <xsl:par am name="P aramSplit"  />
        484  
        485     <!-- Pro cess TOC - ->
        486     <!--              - ->
        487     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:i ndex">
        488      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        489     </xsl:ap ply-templa tes>
        490    </xsl:tem plate>
        491  
        492  
        493    <!-- wwmo de:index - ->
        494    <!--               - ->
        495  
        496    <xsl:temp late match ="/" mode= "wwmode:in dex">
        497     <xsl:par am name="P aramSplit"  />
        498  
        499     <!-- Pro cess child ren -->
        500     <!--                    -->
        501     <xsl:app ly-templat es mode="w wmode:inde x">
        502      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        503     </xsl:ap ply-templa tes>
        504    </xsl:tem plate>
        505  
        506  
        507    <xsl:temp late match ="wwindex: Index" mod e="wwmode: index">
        508     <xsl:par am name="P aramSplit"  />
        509  
        510     <!-- Ind ex Title - ->
        511     <!--              - ->
        512     <xsl:tex t>= </xsl: text>
        513     <xsl:val ue-of sele ct="$Param Split/@tit le" />
        514     <xsl:tex t> =
        515     
        516   </xsl:text >
        517  
        518     <!-- Pro cess child ren -->
        519     <!--                    -->
        520     <xsl:app ly-templat es mode="w wmode:inde x">
        521      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        522     </xsl:ap ply-templa tes>
        523    </xsl:tem plate>
        524  
        525  
        526    <xsl:temp late match ="wwindex: Section" m ode="wwmod e:index">
        527     <xsl:par am name="P aramSplit"  />
        528  
        529     <!-- Pro cess child ren -->
        530     <!--                    -->
        531     <xsl:app ly-templat es mode="w wmode:inde x">
        532      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        533     </xsl:ap ply-templa tes>
        534    </xsl:tem plate>
        535  
        536  
        537    <xsl:temp late match ="wwindex: Group" mod e="wwmode: index">
        538     <xsl:par am name="P aramSplit"  />
        539     <xsl:par am name="P aramGroup"  select=". " />
        540  
        541     <!-- Gro up Title - ->
        542     <!--              - ->
        543     <xsl:val ue-of sele ct="$Param Group/@nam e" />
        544     <xsl:tex t>
        545  
        546   </xsl:text >
        547  
        548     <!-- Pro cess child ren -->
        549     <!--                    -->
        550     <xsl:app ly-templat es mode="w wmode:inde x">
        551      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        552     </xsl:ap ply-templa tes>
        553    </xsl:tem plate>
        554  
        555  
        556    <xsl:temp late match ="wwindex: Entry" mod e="wwmode: index">
        557     <xsl:par am name="P aramSplit"  />
        558     <xsl:par am name="P aramEntry"  select=". " />
        559  
        560     <!-- Det ermine lev el -->
        561     <!--                   -->
        562     <xsl:var iable name ="VarLevel " select=" count($Par amEntry/an cestor-or- self::wwin dex:Entry) " />
        563  
        564     <!-- Emi t prefix - ->
        565     <!--              - ->
        566     <xsl:cal l-template  name="Spa ces">
        567      <xsl:wi th-param n ame="Param SpacesToEm it" select ="$VarLeve l" />
        568     </xsl:ca ll-templat e>
        569  
        570     <!-- Emi t entry -- >
        571     <!--             -- >
        572     <xsl:var iable name ="VarSee"  select="$P aramEntry/ wwindex:Se e[1]" />
        573     <xsl:cho ose>
        574      <!-- Se e/See Also  -->
        575      <!--                -->
        576      <xsl:wh en test="c ount($VarS ee) = 1">
        577       <!-- L ink prefix  -->
        578       <!--               -->
        579       <xsl:t ext>[[</xs l:text>
        580       <xsl:t ext>#</xsl :text>
        581       <xsl:v alue-of se lect="$Var See/@entry ID" />
        582       <xsl:t ext>|</xsl :text>
        583  
        584       <!-- T ext -->
        585       <!--       -->
        586       <xsl:c all-templa te name="C ontent">
        587        <xsl: with-param  name="Par amContent"  select="$ ParamEntry /wwdoc:Con tent[1]" / >
        588       </xsl: call-templ ate>
        589  
        590       <!-- L ink suffix  -->
        591       <!--               -->
        592       <xsl:t ext>]]</xs l:text>
        593      </xsl:w hen>
        594  
        595      <!-- Re gular entr y -->
        596      <!--                 -->
        597      <xsl:ot herwise>
        598       <!-- E mit anchor  -->
        599       <!--               -->
        600       <xsl:i f test="st ring-lengt h($ParamEn try/@id) & gt; 0">
        601        <wwex sldoc:Text  disable-o utput-esca ping="yes" >&lt;&lt;A nchor(<xsl :value-of  select="$P aramEntry/ @id" />)&g t;&gt;</ww exsldoc:Te xt>
        602       </xsl: if>
        603  
        604       <!-- C heck for l inks -->
        605       <!--                   -->
        606       <xsl:v ariable na me="VarLin ks" select ="$ParamEn try/wwinde x:Link" />
        607       <xsl:c hoose>
        608        <!--  Single lin k -->
        609        <!--               -->
        610        <xsl: when test= "(count($V arLinks) =  1) and (c ount($VarL inks[1]/ww doc:Conten t[1]) = 0) ">
        611         <!--  Link pref ix -->
        612         <!--               -->
        613         <xsl :variable  name="VarL ink" selec t="$VarLin ks[1]" />
        614         <xsl :text>[[</ xsl:text>
        615         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        616          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        617          <xs l:with-par am name="P aramTarget " select=" $VarLink/@ href" />
        618         </xs l:call-tem plate>
        619         <xsl :if test=" $VarLink/@ first != ' true'">
        620          <xs l:text>#</ xsl:text>
        621          <xs l:value-of  select="$ VarLink/@a nchor" />
        622         </xs l:if>
        623         <xsl :text>|</x sl:text>
        624  
        625         <!--  Text -->
        626         <!--       -->
        627         <xsl :call-temp late name= "Content">
        628          <xs l:with-par am name="P aramConten t" select= "$ParamEnt ry/wwdoc:C ontent[1]"  />
        629         </xs l:call-tem plate>
        630  
        631         <!--  Link suff ix -->
        632         <!--               -->
        633         <xsl :text>]]</ xsl:text>
        634        </xsl :when>
        635  
        636        <!--  Zero or mu ltiple lin ks -->
        637        <!--                           -->
        638        <xsl: otherwise>
        639         <!--  Collect u p text -->
        640         <!--                   -->
        641         <xsl :variable  name="VarP aragraphTe xt">
        642          <xs l:call-tem plate name ="Content" >
        643           <x sl:with-pa ram name=" ParamConte nt" select ="$ParamEn try/wwdoc: Content[1] " />
        644          </x sl:call-te mplate>
        645         </xs l:variable >
        646  
        647         <!--  Escape fo r display  -->
        648         <!--                       -->
        649         <xsl :call-temp late name= "MoinMoin- EscapePara graphText" >
        650          <xs l:with-par am name="P aramText"  select="$V arParagrap hText" />
        651         </xs l:call-tem plate>
        652  
        653         <!--  Process l inks -->
        654         <!--                 -->
        655         <xsl :apply-tem plates sel ect="$Para mEntry/wwi ndex:Link"  mode="wwm ode:index" >
        656          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
        657         </xs l:apply-te mplates>
        658        </xsl :otherwise >
        659       </xsl: choose>
        660      </xsl:o therwise>
        661     </xsl:ch oose>
        662  
        663     <!-- End  entry -->
        664     <!--            -->
        665     <xsl:tex t>
        666  
        667   </xsl:text >
        668  
        669     <!-- Pro cess child  entries - ->
        670     <!--                         - ->
        671     <xsl:app ly-templat es select= "$ParamEnt ry/wwindex :Entry" mo de="wwmode :index">
        672      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        673     </xsl:ap ply-templa tes>
        674    </xsl:tem plate>
        675  
        676  
        677    <xsl:temp late match ="wwindex: Link" mode ="wwmode:i ndex">
        678     <xsl:par am name="P aramSplit"  />
        679     <xsl:par am name="P aramLink"  select="."  />
        680  
        681     <!-- Spa ce things  out a bit  -->
        682     <!--                           -->
        683     <xsl:if  test="posi tion() &gt ; 1">
        684      <xsl:te xt>,</xsl: text>
        685     </xsl:if >
        686     <xsl:tex t> </xsl:t ext>
        687  
        688     <!-- Emi t link -->
        689     <!--            -->
        690     <xsl:cho ose>
        691      <!-- Li nk has exp licit text  to show - ->
        692      <!--                                   - ->
        693      <xsl:wh en test="c ount($Para mLink/wwdo c:Content[ 1]) = 1">
        694       <xsl:v ariable na me="VarSee " select=" $ParamLink /wwindex:S ee[1]" />
        695       <xsl:c hoose>
        696        <!--  See/See Al so -->
        697        <!--                -->
        698        <xsl: when test= "count($Va rSee) = 1" >
        699         <!--  Link pref ix -->
        700         <!--               -->
        701         <xsl :text>[[</ xsl:text>
        702         <xsl :text>#</x sl:text>
        703         <xsl :value-of  select="$V arSee/@ent ryID" />
        704         <xsl :text>|</x sl:text>
        705  
        706         <!--  Text -->
        707         <!--       -->
        708         <xsl :call-temp late name= "Content">
        709          <xs l:with-par am name="P aramConten t" select= "$ParamLin k/wwdoc:Co ntent[1]"  />
        710         </xs l:call-tem plate>
        711  
        712         <!--  Link suff ix -->
        713         <!--               -->
        714         <xsl :text>]]</ xsl:text>
        715        </xsl :when>
        716  
        717        <!--  Wrap link  around con tent -->
        718        <!--                             -->
        719        <xsl: otherwise>
        720         <!--  Link pref ix -->
        721         <!--               -->
        722         <xsl :text>[[</ xsl:text>
        723         <xsl :call-temp late name= "MoinMoin- RelativePa geLink">
        724          <xs l:with-par am name="P aramSource " select=" $ParamSpli t/@path" / >
        725          <xs l:with-par am name="P aramTarget " select=" $ParamLink /@href" />
        726         </xs l:call-tem plate>
        727         <xsl :if test=" $ParamLink /@first !=  'true'">
        728          <xs l:text>#</ xsl:text>
        729          <xs l:value-of  select="$ ParamLink/ @anchor" / >
        730         </xs l:if>
        731         <xsl :text>|</x sl:text>
        732  
        733         <!--  Text -->
        734         <!--       -->
        735         <xsl :call-temp late name= "Content">
        736          <xs l:with-par am name="P aramConten t" select= "$ParamLin k/wwdoc:Co ntent[1]"  />
        737         </xs l:call-tem plate>
        738  
        739         <!--  Link suff ix -->
        740         <!--               -->
        741         <xsl :text>]]</ xsl:text>
        742        </xsl :otherwise >
        743       </xsl: choose>
        744      </xsl:w hen>
        745  
        746      <!-- Em it numbere d entry -- >
        747      <!--                       -- >
        748      <xsl:ot herwise>
        749       <!-- L ink prefix  -->
        750       <!--               -->
        751       <xsl:t ext>[[</xs l:text>
        752       <xsl:c all-templa te name="M oinMoin-Re lativePage Link">
        753        <xsl: with-param  name="Par amSource"  select="$P aramSplit/ @path" />
        754        <xsl: with-param  name="Par amTarget"  select="$P aramLink/@ href" />
        755       </xsl: call-templ ate>
        756       <xsl:i f test="$P aramLink/@ first != ' true'">
        757        <xsl: text>#</xs l:text>
        758        <xsl: value-of s elect="$Pa ramLink/@a nchor" />
        759       </xsl: if>
        760       <xsl:t ext>|</xsl :text>
        761  
        762       <!-- T ext -->
        763       <!--       -->
        764       <xsl:v alue-of se lect="posi tion()" />
        765  
        766       <!-- L ink suffix  -->
        767       <!--               -->
        768       <xsl:t ext>]]</xs l:text>
        769      </xsl:o therwise>
        770     </xsl:ch oose>
        771    </xsl:tem plate>
        772  
        773  
        774    <xsl:temp late name= "Content">
        775     <xsl:par am name="P aramConten t" />
        776  
        777     <!-- Sim ple proces sing for n ow -->
        778     <!--                              -->
        779     <xsl:for -each sele ct="$Param Content/ww doc:TextRu n/wwdoc:Te xt">
        780      <xsl:va lue-of sel ect="@valu e" />
        781     </xsl:fo r-each>
        782    </xsl:tem plate>
        783   </xsl:styl esheet>