90. Araxis Merge File Comparison Report

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

90.1 Files compared

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

90.2 Comparison summary

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

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

90.4 Active regular expressions

No regular expressions were active.

90.5 Comparison detail

        1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
        2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml"
        3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "
        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= "html" res ult-prefix ="#default " />
        45    <xsl:stri p-space el ements="*"  />
        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/ mediawiki. xsl" />
        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/media wiki.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwformat:T ransforms/ mediawiki. xsl')))" / >
        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', ' utf-8'), ' xml', '1.0 ', 'yes',  'yes', 'no ')" />
        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       <!-- d ocument-cs s -->
        215       <!--                -->
        216       <xsl:i f test="st ring-lengt h($VarPage Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'd ocument-cs s']/@Value ) &gt; 0">
        217        <wwpa ge:Conditi on name="d ocument-cs s" />
        218       </xsl: if>
        219  
        220       <!-- n avigation- top -->
        221       <!--                  -->
        222       <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" />
        223       <xsl:i f test="($ VarNavigat ionTopGene rateOption  = 'true')  or (strin g-length($ VarNavigat ionTopGene rateOption ) = 0)">
        224        <wwpa ge:Conditi on name="n avigation- top" />
        225       </xsl: if>
        226  
        227       <!-- n avigation- bottom -->
        228       <!--                     -->
        229       <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"  />
        230       <xsl:i f test="$V arNavigati onBottomGe nerateOpti on = 'true '">
        231        <wwpa ge:Conditi on name="n avigation- bottom" />
        232       </xsl: if>
        233  
        234       <!-- G enerate TO C? -->
        235       <!--                 -->
        236       <xsl:i f test="co unt($VarTO CSplitFile ) = 1">
        237        <xsl: choose>
        238         <xsl :when test ="count($P aramSplit  | $VarTOCS plitFile)  = 1">
        239          <!- - navigati on-toc-cur rent -->
        240          <!- -                          -->
        241          <ww page:Condi tion name= "navigatio n-toc-curr ent" />
        242         </xs l:when>
        243  
        244         <xsl :otherwise >
        245          <!- - navigati on-toc-not -current - ->
        246          <!- -                          -->
        247          <ww page:Condi tion name= "navigatio n-toc-not- current" / >
        248         </xs l:otherwis e>
        249        </xsl :choose>
        250       </xsl: if>
        251  
        252       <!-- n avigation- previous-e xists -->
        253       <!--                               -->
        254       <xsl:i f test="co unt($VarPr eviousSpli t) = 1">
        255        <wwpa ge:Conditi on name="n avigation- previous-e xists" />
        256       </xsl: if>
        257  
        258       <!-- n avigation- previous-n ot-exists  -->
        259       <!--                                    -->
        260       <xsl:i f test="co unt($VarPr eviousSpli t) = 0">
        261        <wwpa ge:Conditi on name="n avigation- previous-n ot-exists"  />
        262       </xsl: if>
        263  
        264       <!-- n avigation- next-exist s -->
        265       <!--                           -->
        266       <xsl:i f test="co unt($VarNe xtSplit) =  1">
        267        <wwpa ge:Conditi on name="n avigation- next-exist s" />
        268       </xsl: if>
        269  
        270       <!-- n avigation- next-not-e xists -->
        271       <!--                               -->
        272       <xsl:i f test="co unt($VarNe xtSplit) =  0">
        273        <wwpa ge:Conditi on name="n avigation- next-not-e xists" />
        274       </xsl: if>
        275  
        276       <!-- G enerate In dex? -->
        277       <!--                   -->
        278       <xsl:i f test="co unt($VarIn dexSplitFi le) = 1">
        279        <xsl: choose>
        280         <xsl :when test ="count($P aramSplit  | $VarInde xSplitFile ) = 1">
        281          <!- - navigati on-index-c urrent -->
        282          <!- -                          -->
        283          <ww page:Condi tion name= "navigatio n-index-cu rrent" />
        284         </xs l:when>
        285  
        286         <xsl :otherwise >
        287          <!- - navigati on-index-n ot-current  -->
        288          <!- -                          -->
        289          <ww page:Condi tion name= "navigatio n-index-no t-current"  />
        290         </xs l:otherwis e>
        291        </xsl :choose>
        292       </xsl: if>
        293  
        294       <!-- C ompany Inf o -->
        295       <!--                -->
        296       <xsl:c all-templa te name="C ompanyInfo -Condition s">
        297        <xsl: with-param  name="Par amPageRule " select=" $VarPageRu le" />
        298       </xsl: call-templ ate>
        299      </xsl:v ariable>
        300      <xsl:va riable nam e="VarInit ialConditi ons" selec t="msxsl:n ode-set($V arInitialC onditionsA sXML)" />
        301  
        302      <!-- Se t header/f ooter cond itions -->
        303      <!--                                 -->
        304      <xsl:va riable nam e="VarCond itionsAsXM L">
        305       <!-- C opy existi ng as is - ->
        306       <!--                       - ->
        307       <xsl:f or-each se lect="$Var InitialCon ditions/*" >
        308        <xsl: copy-of se lect="." / >
        309       </xsl: for-each>
        310  
        311       <xsl:f or-each se lect="$Var InitialCon ditions[1] ">
        312        <!--  header-exi sts -->
        313        <!--                 -->
        314        <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" />
        315        <xsl: if test="$ VarHeaderE xists">
        316         <wwp age:Condit ion name=" header-exi sts" />
        317        </xsl :if>
        318  
        319        <!--  footer-exi sts -->
        320        <!--                 -->
        321        <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" />
        322        <xsl: if test="$ VarFooterE xists">
        323         <wwp age:Condit ion name=" footer-exi sts" />
        324        </xsl :if>
        325  
        326        <!--  header-foo ter-exists  -->
        327        <!--                         -->
        328        <xsl: choose>
        329         <xsl :when test ="$VarHead erExists o r $VarFoot erExists">
        330          <ww page:Condi tion name= "header-fo oter-exist s" />
        331         </xs l:when>
        332  
        333         <xsl :otherwise >
        334          <ww page:Condi tion name= "header-fo oter-not-e xists" />
        335         </xs l:otherwis e>
        336        </xsl :choose>
        337       </xsl: for-each>
        338      </xsl:v ariable>
        339      <xsl:va riable nam e="VarCond itions" se lect="msxs l:node-set ($VarCondi tionsAsXML )" />
        340  
        341      <!-- Re placements  -->
        342      <!--                -->
        343      <xsl:va riable nam e="VarRepl acementsAs XML">
        344       <!-- w ebworks-ro ot -->
        345       <!--                 -->
        346       <wwpag e:Replacem ent name=" webworks-r oot">
        347        <xsl: comment>
        348         <xsl :text>
        349   </xsl:text >
        350         <xsl :text>         var  W ebWorksRoo tPath = &q uot;&quot; ;
        351   </xsl:text >
        352         <xsl :text>       // </xsl :text>
        353        </xsl :comment>
        354       </wwpa ge:Replace ment>
        355  
        356       <!-- b ody-class  -->
        357       <!--              -->
        358       <wwpag e:Replacem ent name=" body-class ">
        359        <xsl: attribute  name="valu e">
        360         <!--  Additiona l CSS clas ses -->
        361         <!--                           -->
        362         <xsl :variable  name="VarA dditionalC SSClassesO ption" sel ect="norma lize-space ($VarPageR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ad ditional-c ss-classes ']/@Value) " />
        363         <xsl :value-of  select="$V arAddition alCSSClass esOption"  />
        364        </xsl :attribute >
        365       </wwpa ge:Replace ment>
        366  
        367       <!-- b ody-style  -->
        368       <!--              -->
        369       <wwpag e:Replacem ent name=" body-style ">
        370        <xsl: attribute  name="valu e">
        371         <!--  CSS prope rties -->
        372         <!--                  -->
        373         <xsl :variable  name="VarC SSProperti esAsXML">
        374          <xs l:call-tem plate name ="CSS-Tran slateProje ctProperti es">
        375           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarP ageRule/ww project:Pr operties/w wproject:P roperty" / >
        376           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / >
        377           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
        378          </x sl:call-te mplate>
        379         </xs l:variable >
        380         <xsl :variable  name="VarC SSProperti es" select ="msxsl:no de-set($Va rCSSProper tiesAsXML) /wwproject :Property"  />
        381  
        382         <xsl :call-temp late name= "CSS-Inlin ePropertie s">
        383          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s[string-l ength(@Val ue) &gt; 0 ]" />
        384         </xs l:call-tem plate>
        385        </xsl :attribute >
        386       </wwpa ge:Replace ment>
        387  
        388       <wwpag e:Replacem ent name=" title" val ue="{$Para mSplit/@ti tle}" />
        389       <wwpag e:Replacem ent name=" navigation -toc-title " value="{ $VarTOCSpl itFile/@ti tle}" />
        390       <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}" />
        391       <wwpag e:Replacem ent name=" navigation -next-titl e" value=" {$GlobalLo cale/wwloc ale:Locale /wwlocale: Strings/ww locale:Str ing[@name  = 'Next']/ @value}" / >
        392       <wwpag e:Replacem ent name=" navigation -index-tit le" value= "{$VarInde xSplitFile /@title}"  />
        393  
        394       <wwpag e:Replacem ent name=" document-c ss">
        395        <xsl: attribute  name="valu e">
        396         <xsl :call-temp late name= "URI-Resol veProjectF ileURI">
        397          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" />
        398          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
        399          <xs l:with-par am name="P aramURI" s elect="$Va rPageRule/ wwproject: Options/ww project:Op tion[@Name  = 'docume nt-css']/@ Value" />
        400         </xs l:call-tem plate>
        401        </xsl :attribute >
        402       </wwpa ge:Replace ment>
        403  
        404       <wwpag e:Replacem ent name=" locale" va lue="{wwpr ojext:GetF ormatSetti ng('locale ')}" />
        405  
        406       <wwpag e:Replacem ent name=" navigation -top-style ">
        407        <xsl: attribute  name="valu e">
        408         <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" />
        409         <xsl :choose>
        410          <xs l:when tes t="string- length($Va rAlignment Property)  &gt; 0">
        411           <x sl:value-o f select=" concat('te xt-align:  ', $VarAli gnmentProp erty, ';') " />
        412          </x sl:when>
        413  
        414          <xs l:otherwis e>
        415           <x sl:value-o f select=" 'text-alig n: left;'"  />
        416          </x sl:otherwi se>
        417         </xs l:choose>
        418        </xsl :attribute >
        419       </wwpa ge:Replace ment>
        420  
        421       <wwpag e:Replacem ent name=" navigation -bottom-st yle">
        422        <xsl: attribute  name="valu e">
        423         <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" />
        424         <xsl :choose>
        425          <xs l:when tes t="string- length($Va rAlignment Property)  &gt; 0">
        426           <x sl:value-o f select=" concat('te xt-align:  ', $VarAli gnmentProp erty, ';') " />
        427          </x sl:when>
        428  
        429          <xs l:otherwis e>
        430           <x sl:value-o f select=" 'text-alig n: left;'"  />
        431          </x sl:otherwi se>
        432         </xs l:choose>
        433        </xsl :attribute >
        434       </wwpa ge:Replace ment>
        435  
        436         <xsl :if test=" count($Var TOCSplitFi le) = 1">
        437          <ww page:Repla cement nam e="navigat ion-toc-li nk">
        438           <x sl:call-te mplate nam e="MediaWi ki-Project RootedLink ">
        439            < xsl:with-p aram name= "ParamLink Path" sele ct="$VarTO CSplitFile /@path" />
        440            < xsl:with-p aram name= "ParamTarg etOutputDi rectoryPat h" select= "$ParamSpl it/@target -output-di rectory-pa th" />
        441           </ xsl:call-t emplate>
        442          </w wpage:Repl acement>
        443         </xs l:if>
        444         <xsl :if test=" count($Var PreviousSp lit) = 1">
        445          <ww page:Repla cement nam e="navigat ion-previo us-link">
        446           <x sl:call-te mplate nam e="MediaWi ki-Project RootedLink ">
        447            < xsl:with-p aram name= "ParamLink Path" sele ct="$VarPr eviousSpli t/@path" / >
        448            < xsl:with-p aram name= "ParamTarg etOutputDi rectoryPat h" select= "$ParamSpl it/@target -output-di rectory-pa th" />
        449           </ xsl:call-t emplate>
        450          </w wpage:Repl acement>
        451         </xs l:if>
        452         <xsl :if test=" count($Var NextSplit)  = 1">
        453          <ww page:Repla cement nam e="navigat ion-next-l ink">
        454           <x sl:call-te mplate nam e="MediaWi ki-Project RootedLink ">
        455            < xsl:with-p aram name= "ParamLink Path" sele ct="$VarNe xtSplit/@p ath" />
        456            < xsl:with-p aram name= "ParamTarg etOutputDi rectoryPat h" select= "$ParamSpl it/@target -output-di rectory-pa th" />
        457           </ xsl:call-t emplate>
        458          </w wpage:Repl acement>
        459         </xs l:if>
        460         <xsl :if test=" count($Var IndexSplit File) = 1" >
        461          <ww page:Repla cement nam e="navigat ion-index- link">
        462           <x sl:call-te mplate nam e="MediaWi ki-Project RootedLink ">
        463            < xsl:with-p aram name= "ParamLink Path" sele ct="$VarIn dexSplitFi le/@path"  />
        464            < xsl:with-p aram name= "ParamTarg etOutputDi rectoryPat h" select= "$ParamSpl it/@target -output-di rectory-pa th" />
        465           </ xsl:call-t emplate>
        466          </w wpage:Repl acement>
        467         </xs l:if>
        468  
        469       <!-- C ompany Inf o -->
        470       <!--                -->
        471       <xsl:c all-templa te name="C ompanyInfo -Replaceme nts">
        472        <xsl: with-param  name="Par amPageRule " select=" $VarPageRu le" />
        473        <xsl: with-param  name="Par amPagePath " select=" $ParamSpli t/@path" / >
        474        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        475       </xsl: call-templ ate>
        476  
        477       <!-- C ontent -->
        478       <!--          -->
        479       <wwpag e:Replacem ent name=" content">
        480        <xsl: call-templ ate name=" Content-Co ntent">
        481         <xsl :with-para m name="Pa ramContent " select=" $ParamTOC"  />
        482         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
        483         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        484        </xsl :call-temp late>
        485       </wwpa ge:Replace ment>
        486  
        487       <!-- V ariables - ->
        488       <!--            - ->
        489       <xsl:v ariable na me="VarPag eVariables AsXML">
        490        <xsl: for-each s elect="$Gl obalProjec tVariables [1]">
        491         <xsl :variable  name="VarV ariablesGr oup" selec t="key('ww vars-group s-by-group id', $Para mSplit/@gr oupID)[1]"  />
        492  
        493         <xsl :call-temp late name= "Variables -Filter-La st-Unique" >
        494          <xs l:with-par am name="P aramVariab les" selec t="$VarVar iablesGrou p//wwvars: Variable"  />
        495         </xs l:call-tem plate>
        496        </xsl :for-each>
        497       </xsl: variable>
        498       <xsl:v ariable na me="VarPag eVariables " select=" msxsl:node -set($VarP ageVariabl esAsXML)/w wvars:Vari able" />
        499       <xsl:c all-templa te name="V ariables-P age-String -Replaceme nts">
        500        <xsl: with-param  name="Par amVariable s" select= "$VarPageV ariables"  />
        501       </xsl: call-templ ate>
        502      </xsl:v ariable>
        503      <xsl:va riable nam e="VarRepl acements"  select="ms xsl:node-s et($VarRep lacementsA sXML)" />
        504  
        505      <!-- Ma p common c haracters  -->
        506      <!--                          -->
        507      <wwexsl doc:Mappin gContext>
        508       <xsl:c opy-of sel ect="$Glob alMapEntry Sets/wwexs ldoc:MapEn trySets/ww exsldoc:Ma pEntrySet[ @name = 'c ommon']/ww exsldoc:Ma pEntry" />
        509  
        510       <!-- I nvoke page  template  -->
        511       <!--                         -->
        512       <xsl:a pply-templ ates selec t="$Global PageTempla te" mode=" wwmode:pag etemplate" >
        513        <xsl: with-param  name="Par amOutputDi rectoryPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetTarge tOutputDir ectoryPath (), wwproj ext:GetGro upName($Pa ramSplit/@ groupID))"  />
        514        <xsl: with-param  name="Par amOutputPa th" select ="$ParamSp lit/@path"  />
        515        <xsl: with-param  name="Par amConditio ns" select ="$VarCond itions" />
        516        <xsl: with-param  name="Par amReplacem ents" sele ct="$VarRe placements " />
        517       </xsl: apply-temp lates>
        518      </wwexs ldoc:Mappi ngContext>
        519     </xsl:fo r-each>
        520    </xsl:tem plate>
        521  
        522  
        523    <xsl:temp late name= "Content-C ontent">
        524     <xsl:par am name="P aramConten t" />
        525     <xsl:par am name="P aramSplits " />
        526     <xsl:par am name="P aramSplit"  />
        527  
        528     <html:h2  class="We bWorks_TOC _Title">
        529      <xsl:va lue-of sel ect="$Para mSplit/@ti tle" />
        530     </html:h 2>
        531  
        532     <xsl:cal l-template  name="Ent ries">
        533      <xsl:wi th-param n ame="Param Parent" se lect="$Par amContent/ wwtoc:Tabl eOfContent s" />
        534      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
        535      <xsl:wi th-param n ame="Param Level" sel ect="1" />
        536     </xsl:ca ll-templat e>
        537    </xsl:tem plate>
        538  
        539  
        540    <xsl:temp late name= "Entries">
        541     <xsl:par am name="P aramParent " />
        542     <xsl:par am name="P aramSplit"  />
        543     <xsl:par am name="P aramLevel"  />
        544  
        545     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  />
        546  
        547     <xsl:for -each sele ct="$VarSu bEntries[1 ]">
        548      <xsl:fo r-each sel ect="$VarS ubEntries" >
        549       <xsl:v ariable na me="VarEnt ry" select ="." />
        550  
        551       <html: div>
        552        <xsl: variable n ame="VarMa rgin" sele ct="number ($ParamLev el) * 12"  />
        553        
        554        <xsl: attribute  name="styl e">
        555         <xsl :text>marg in-left: < /xsl:text>
        556         <xsl :value-of  select="$V arMargin"  />
        557         <xsl :text>pt;< /xsl:text>
        558        </xsl :attribute >
        559  
        560        <xsl: choose>
        561         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" >
        562          <!- - Get link  -->
        563          <!- -           -->
        564          <xs l:text>[[< /xsl:text>
        565          <xs l:call-tem plate name ="MediaWik i-ProjectR ootedLink" >
        566           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarEnt ry/@path"  />
        567           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" />
        568          </x sl:call-te mplate>
        569  
        570          <xs l:if test= "$VarEntry /@first !=  'true'">
        571           <x sl:text>#w w</xsl:tex t>
        572           <x sl:value-o f select=" $VarEntry/ @linkid" / >
        573          </x sl:if>
        574  
        575          <xs l:text>|</ xsl:text>
        576  
        577          <xs l:call-tem plate name ="Paragrap h">
        578           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  />
        579          </x sl:call-te mplate>
        580          <xs l:text>]]< /xsl:text>
        581         </xs l:when>
        582  
        583         <xsl :otherwise >
        584          <xs l:call-tem plate name ="Paragrap h">
        585           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  />
        586          </x sl:call-te mplate>
        587         </xs l:otherwis e>
        588        </xsl :choose>
        589       </html :div>
        590  
        591       <xsl:c all-templa te name="E ntries">
        592        <xsl: with-param  name="Par amParent"  select="$V arEntry" / >
        593        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
        594        <xsl: with-param  name="Par amLevel" s elect="$Pa ramLevel +  1" />
        595       </xsl: call-templ ate>
        596      </xsl:f or-each>
        597     </xsl:fo r-each>
        598    </xsl:tem plate>
        599  
        600  
        601    <xsl:temp late name= "Paragraph ">
        602     <xsl:par am name="P aramParagr aph" />
        603  
        604     <xsl:var iable name ="VarText" >
        605      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Num ber/wwdoc: Text | $Pa ramParagra ph/wwdoc:T extRun/wwd oc:Text">
        606       <xsl:v alue-of se lect="@val ue" />
        607      </xsl:f or-each>
        608     </xsl:va riable>
        609     <xsl:val ue-of sele ct="normal ize-space( $VarText)"  />
        610    </xsl:tem plate>
        611   </xsl:styl esheet>