45. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Nov 21 17:21:46 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.

45.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.1.20396.b\Formats\Shared\reports\styles document.xsl Tue Jun 13 17:56:20 2006 UTC
2 C:\Documents and Settings\allums\Desktop\2008.2.20597.p2\Formats\Shared\reports\styles document.xsl Tue Jul 1 22:36:54 2008 UTC

45.2 Comparison summary

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

45.3 Comparison options

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

45.4 Active regular expressions

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

45.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?>   1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Reports-Sc hema"   2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Reports-Sc hema"
3                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"   3                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
4                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"   4                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
5                                    xmlns:wwre port="urn: WebWorks-R eports-Sch ema"   5                                    xmlns:wwre port="urn: WebWorks-R eports-Sch ema"
6                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"   6                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"   7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"
8                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"   8                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"
9                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"   9                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
10                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"   10                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
11                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"   11                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
12                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"   12                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
13                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"   13                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
14                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"   14                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
15                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"   15                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
16                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"   16                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
17                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"   17                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
18                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"   18                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
19                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"   19                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
20                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"   20                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
21                                    xmlns:wwex ec="urn:We bWorks-XSL T-Extensio n-Execute"   21                                    xmlns:wwex ec="urn:We bWorks-XSL T-Extensio n-Execute"
22                                    xmlns:wwen v="urn:Web Works-XSLT -Extension -Environme nt"   22                                    xmlns:wwen v="urn:Web Works-XSLT -Extension -Environme nt"
23                                    exclude-re sult-prefi xes="xsl m sxsl wwspl its wwlink s wwlocale  wwmode ww files wwdo c wwprojec t wwprogre ss wwlog w wfilesyste m wwuri ww string wwf ilesext ww projext ww exsldoc ww exec wwenv "   23                                    exclude-re sult-prefi xes="xsl m sxsl wwspl its wwlink s wwlocale  wwmode ww files wwdo c wwprojec t wwprogre ss wwlog w wfilesyste m wwuri ww string wwf ilesext ww projext ww exsldoc ww exec wwenv "
24   >   24   >
25    <xsl:para m name="Gl obalInput"  />   25    <xsl:para m name="Gl obalInput"  />
26    <xsl:para m name="Gl obalPipeli neName" />   26    <xsl:para m name="Gl obalPipeli neName" />
27    <xsl:para m name="Gl obalProjec t" />   27    <xsl:para m name="Gl obalProjec t" />
28    <xsl:para m name="Gl obalFiles"  />   28    <xsl:para m name="Gl obalFiles"  />
29    <xsl:para m name="Pa rameterDep endsType"  />   29    <xsl:para m name="Pa rameterDep endsType"  />
30    <xsl:para m name="Pa rameterLin ksType" />   30    <xsl:para m name="Pa rameterLin ksType" />
31    <xsl:para m name="Pa rameterTyp e" />   31    <xsl:para m name="Pa rameterTyp e" />
32    <xsl:para m name="Pa rameterUIL ocaleType"  />   32    <xsl:para m name="Pa rameterUIL ocaleType"  />
33    <xsl:para m name="Pa rameterCat egory" />   33    <xsl:para m name="Pa rameterCat egory" />
34    <xsl:para m name="Pa rameterUse " />   34    <xsl:para m name="Pa rameterUse " />
35    <xsl:para m name="Pa rameterDep loy" />   35    <xsl:para m name="Pa rameterDep loy" />
36     36  
37     37  
38    <xsl:name space-alia s styleshe et-prefix= "wwreport"  result-pr efix="#def ault" />   38    <xsl:name space-alia s styleshe et-prefix= "wwreport"  result-pr efix="#def ault" />
39    <xsl:stri p-space el ements="*"  />   39    <xsl:stri p-space el ements="*"  />
40     40  
41     41  
42    <xsl:incl ude href=" wwformat:T ransforms/ reports.xs l" />   42    <xsl:incl ude href=" wwformat:T ransforms/ reports.xs l" />
43     43  
44     44  
45    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />   45    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />
46    <xsl:key  name="wwpr oject-rule s-by-key"  match="wwp roject:Rul e" use="@K ey" />   46    <xsl:key  name="wwpr oject-rule s-by-key"  match="wwp roject:Rul e" use="@K ey" />
47     47  
48     48  
49    <xsl:vari able name= "GlobalAct ionChecksu m">   49    <xsl:vari able name= "GlobalAct ionChecksu m">
50     <xsl:var iable name ="VarTrans formChecks ums">   50     <xsl:var iable name ="VarTrans formChecks ums">
51      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />   51      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />
52      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/repor ts.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww format:Tra nsforms/re ports.xsl' )))" />   52      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/repor ts.xsl'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww format:Tra nsforms/re ports.xsl' )))" />
53     </xsl:va riable>   53     </xsl:va riable>
54     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />   54     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />
55    </xsl:var iable>   55    </xsl:var iable>
56     56  
57     57  
58    <!-- UI L ocale -->   58    <!-- UI L ocale -->
59    <!--            -->   59    <!--            -->
60    <xsl:vari able name= "GlobalUIL ocalePath" >   60    <xsl:vari able name= "GlobalUIL ocalePath" >
61     <xsl:for -each sele ct="$Globa lFiles[1]" >   61     <xsl:for -each sele ct="$Globa lFiles[1]" >
62      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterUILoca leType)[1] /@path" />   62      <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterUILoca leType)[1] /@path" />
63     </xsl:fo r-each>   63     </xsl:fo r-each>
64    </xsl:var iable>   64    </xsl:var iable>
65    <xsl:vari able name= "GlobalUIL ocalePathC hecksum" s elect="wwf ilesystem: GetChecksu m($GlobalU ILocalePat h)" />   65    <xsl:vari able name= "GlobalUIL ocalePathC hecksum" s elect="wwf ilesystem: GetChecksu m($GlobalU ILocalePat h)" />
66    <xsl:vari able name= "GlobalUIL ocale" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($G lobalUILoc alePath)"  />   66    <xsl:vari able name= "GlobalUIL ocale" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($G lobalUILoc alePath)"  />
67     67  
68     68  
69    <!-- Seve rities -->   69    <!-- Seve rities -->
70    <!--             -->   70    <!--             -->
71    <xsl:vari able name= "GlobalSty lesNonStan dardStyleS everity" s elect="wwp rojext:Get FormatSett ing('repor t-styles-n on-standar d-style',  'warning') " />   71    <xsl:vari able name= "GlobalSty lesNonStan dardStyleS everity" s elect="wwp rojext:Get FormatSett ing('repor t-styles-n on-standar d-style',  'warning') " />
72    <xsl:vari able name= "GlobalSty lesOverrid eSeverity"  select="w wprojext:G etFormatSe tting('rep ort-styles -override' , 'warning ')" />   72    <xsl:vari able name= "GlobalSty lesOverrid eSeverity"  select="w wprojext:G etFormatSe tting('rep ort-styles -override' , 'warning ')" />
73     73  
74     74  
75    <xsl:temp late match ="/">   75    <xsl:temp late match ="/">
76     <wwfiles :Files ver sion="1.0" >   76     <wwfiles :Files ver sion="1.0" >
77     77  
78      <xsl:va riable nam e="VarGene rateReport Setting" s elect="wwp rojext:Get FormatSett ing('repor t-styles-g enerate',  'true') =  'true'" />   78      <xsl:va riable nam e="VarGene rateReport Setting" s elect="wwp rojext:Get FormatSett ing('repor t-styles-g enerate',  'true') =  'true'" />
79      <xsl:va riable nam e="VarRequ estedPipel ine" selec t="wwenv:R equestedPi peline($Gl obalPipeli neName)" / >   79      <xsl:va riable nam e="VarRequ estedPipel ine" selec t="wwenv:R equestedPi peline($Gl obalPipeli neName)" / >
80      <xsl:va riable nam e="VarGene rateReport " select=" ($VarGener ateReportS etting) or  ($VarRequ estedPipel ine)" />   80      <xsl:va riable nam e="VarGene rateReport " select=" ($VarGener ateReportS etting) or  ($VarRequ estedPipel ine)" />
81     81  
82      <xsl:if  test="$Va rGenerateR eport">   82      <xsl:if  test="$Va rGenerateR eport">
83       <!-- L oad projec t links -- >   83       <!-- L oad projec t links -- >
84       <!--                      -- >   84       <!--                      -- >
85       <xsl:f or-each se lect="$Glo balFiles[1 ]">   85       <xsl:f or-each se lect="$Glo balFiles[1 ]">
86        <xsl: variable n ame="VarLi nksFileInf o" select= "key('wwfi les-files- by-type',  $Parameter LinksType) " />   86        <xsl: variable n ame="VarLi nksFileInf o" select= "key('wwfi les-files- by-type',  $Parameter LinksType) " />
87        <xsl: variable n ame="VarLi nks" selec t="wwexsld oc:LoadXML WithoutRes olver($Var LinksFileI nfo/@path) " />   87        <xsl: variable n ame="VarLi nks" selec t="wwexsld oc:LoadXML WithoutRes olver($Var LinksFileI nfo/@path) " />
88     88  
89        <!--  Iterate in put docume nts -->   89        <!--  Iterate in put docume nts -->
90        <!--                            -->   90        <!--                            -->
91        <xsl: for-each s elect="$Gl obalInput[ 1]">   91        <xsl: for-each s elect="$Gl obalInput[ 1]">
92         <!--  Documents  -->   92         <!--  Documents  -->
93         <!--             -->   93         <!--             -->
94         <xsl :variable  name="VarD ocumentFil es" select ="key('wwf iles-files -by-type',  $Paramete rDependsTy pe)" />   94         <xsl :variable  name="VarD ocumentFil es" select ="key('wwf iles-files -by-type',  $Paramete rDependsTy pe)" />
95         <xsl :variable  name="VarP rogressDoc umentsStar t" select= "wwprogres s:Start(co unt($VarDo cumentFile s))" />   95         <xsl :variable  name="VarP rogressDoc umentsStar t" select= "wwprogres s:Start(co unt($VarDo cumentFile s))" />
96         <xsl :for-each  select="$V arDocument Files">   96         <xsl :for-each  select="$V arDocument Files">
97          <xs l:variable  name="Var DocumentFi le" select ="." />   97          <xs l:variable  name="Var DocumentFi le" select ="." />
98     98  
99          <xs l:variable  name="Var ProgressDo cumentStar t" select= "wwprogres s:Start(1) " />   99          <xs l:variable  name="Var ProgressDo cumentStar t" select= "wwprogres s:Start(1) " />
100     100  
101          <!- - Aborted?  -->   101          <!- - Aborted?  -->
102          <!- -           -->   102          <!- -           -->
103          <xs l:if test= "not(wwpro gress:Abor t())">   103          <xs l:if test= "not(wwpro gress:Abor t())">
104           <! -- Up-to-d ate? -->   104           <! -- Up-to-d ate? -->
105           <! --              -->   105           <! --              -->
106           <x sl:variabl e name="Va rPath" sel ect="wwfil esystem:Co mbine(wwfi lesystem:G etDirector yName($Var DocumentFi le/@path),  concat(tr anslate($P arameterTy pe, ':', ' _'),'.xml' ))" />   106           <x sl:variabl e name="Va rPath" sel ect="wwfil esystem:Co mbine(wwfi lesystem:G etDirector yName($Var DocumentFi le/@path),  concat(tr anslate($P arameterTy pe, ':', ' _'),'.xml' ))" />
107           <x sl:variabl e name="Va rUpToDate"  select="w wfilesext: UpToDate($ VarPath, $ GlobalProj ect/wwproj ect:Projec t/@ChangeI D, $VarDoc umentFile/ @groupID,  $VarDocume ntFile/@do cumentID,  $GlobalAct ionChecksu m)" />   107           <x sl:variabl e name="Va rUpToDate"  select="w wfilesext: UpToDate($ VarPath, $ GlobalProj ect/wwproj ect:Projec t/@ChangeI D, $VarDoc umentFile/ @groupID,  $VarDocume ntFile/@do cumentID,  $GlobalAct ionChecksu m)" />
108           <x sl:if test ="not($Var UpToDate)" >   108           <x sl:if test ="not($Var UpToDate)" >
109            < xsl:variab le name="V arResultAs XML">   109            < xsl:variab le name="V arResultAs XML">
110              <xsl:call- template n ame="Style -Report">   110              <xsl:call- template n ame="Style -Report">
111               <xsl:with -param nam e="ParamLi nks" selec t="$VarLin ks" />   111               <xsl:with -param nam e="ParamLi nks" selec t="$VarLin ks" />
112               <xsl:with -param nam e="ParamDo cumentFile " select=" $VarDocume ntFile" />   112               <xsl:with -param nam e="ParamDo cumentFile " select=" $VarDocume ntFile" />
113              </xsl:call -template>   113              </xsl:call -template>
114            < /xsl:varia ble>   114            < /xsl:varia ble>
115            < xsl:variab le name="V arResult"  select="ms xsl:node-s et($VarRes ultAsXML)"  />   115            < xsl:variab le name="V arResult"  select="ms xsl:node-s et($VarRes ultAsXML)"  />
116            < xsl:variab le name="V arWriteRes ult" selec t="wwexsld oc:Documen t($VarResu lt, $VarPa th, 'utf-8 ', 'xml',  '1.0', 'ye s')" />   116            < xsl:variab le name="V arWriteRes ult" selec t="wwexsld oc:Documen t($VarResu lt, $VarPa th, 'utf-8 ', 'xml',  '1.0', 'ye s')" />
117           </ xsl:if>   117           </ xsl:if>
118     118  
119           <! -- Report  generated  files -->   119           <! -- Report  generated  files -->
120           <! --                          -->   120           <! --                          -->
121           <w wfiles:Fil e path="{$ VarPath}"  displaynam e="{$Globa lUILocale/ wwlocale:L ocale/wwlo cale:Strin gs/wwlocal e:String[@ name = 'St ylesReport Title']/@v alue}" typ e="{$Param eterType}"  checksum= "{wwfilesy stem:GetCh ecksum($Va rPath)}" p rojectchec ksum="{$Gl obalProjec t/wwprojec t:Project/ @ChangeID} " groupID= "{$VarDocu mentFile/@ groupID}"  documentID ="{$VarDoc umentFile/ @documentI D}" action checksum=" {$GlobalAc tionChecks um}" categ ory="{$Par ameterCate gory}" use ="{$Parame terUse}" d eploy="{$P arameterDe ploy}">   121           <w wfiles:Fil e path="{$ VarPath}"  displaynam e="{$Globa lUILocale/ wwlocale:L ocale/wwlo cale:Strin gs/wwlocal e:String[@ name = 'St ylesReport Title']/@v alue}" typ e="{$Param eterType}"  checksum= "{wwfilesy stem:GetCh ecksum($Va rPath)}" p rojectchec ksum="{$Gl obalProjec t/wwprojec t:Project/ @ChangeID} " groupID= "{$VarDocu mentFile/@ groupID}"  documentID ="{$VarDoc umentFile/ @documentI D}" action checksum=" {$GlobalAc tionChecks um}" categ ory="{$Par ameterCate gory}" use ="{$Parame terUse}" d eploy="{$P arameterDe ploy}">
122            < wwfiles:De pends path ="{$Global UILocalePa th}" check sum="{$Glo balUILocal ePathCheck sum}" grou pID="" doc umentID=""  />   122            < wwfiles:De pends path ="{$Global UILocalePa th}" check sum="{$Glo balUILocal ePathCheck sum}" grou pID="" doc umentID=""  />
123            < wwfiles:De pends path ="{$VarLin ksFileInfo /@path}" c hecksum="{ $VarLinksF ileInfo/@c hecksum}"  groupID="{ $VarLinksF ileInfo/@g roupID}" d ocumentID= "{$VarLink sFileInfo/ @documentI D}" />   123            < wwfiles:De pends path ="{$VarLin ksFileInfo /@path}" c hecksum="{ $VarLinksF ileInfo/@c hecksum}"  groupID="{ $VarLinksF ileInfo/@g roupID}" d ocumentID= "{$VarLink sFileInfo/ @documentI D}" />
124            < wwfiles:De pends path ="{$VarDoc umentFile/ @path}" ch ecksum="{$ VarDocumen tFile/@che cksum}" gr oupID="{$V arDocument File/@grou pID}" docu mentID="{$ VarDocumen tFile/@doc umentID}"  />   124            < wwfiles:De pends path ="{$VarDoc umentFile/ @path}" ch ecksum="{$ VarDocumen tFile/@che cksum}" gr oupID="{$V arDocument File/@grou pID}" docu mentID="{$ VarDocumen tFile/@doc umentID}"  />
125           </ wwfiles:Fi le>   125           </ wwfiles:Fi le>
126          </x sl:if>   126          </x sl:if>
127     127  
128          <xs l:variable  name="Var ProgressDo cumentEnd"  select="w wprogress: End()" />   128          <xs l:variable  name="Var ProgressDo cumentEnd"  select="w wprogress: End()" />
129         </xs l:for-each >   129         </xs l:for-each >
130         <xsl :variable  name="VarP rogressDoc umentsEnd"  select="w wprogress: End()" />   130         <xsl :variable  name="VarP rogressDoc umentsEnd"  select="w wprogress: End()" />
131        </xsl :for-each>   131        </xsl :for-each>
132       </xsl: for-each>   132       </xsl: for-each>
133      </xsl:i f>   133      </xsl:i f>
134     134  
135     </wwfile s:Files>   135     </wwfile s:Files>
136    </xsl:tem plate>   136    </xsl:tem plate>
137     137  
138     138  
139    <xsl:temp late name= "Style-Rep ort">   139    <xsl:temp late name= "Style-Rep ort">
140     <xsl:par am name="P aramLinks"  />   140     <xsl:par am name="P aramLinks"  />
141     <xsl:par am name="P aramDocume ntFile" />   141     <xsl:par am name="P aramDocume ntFile" />
142     142  
143     <!-- Loa d document  -->   143     <!-- Loa d document  -->
144     <!--                 -->   144     <!--                 -->
145     <xsl:var iable name ="VarDocum ent" selec t="wwexsld oc:LoadXML WithoutRes olver($Par amDocument File/@path )" />   145     <xsl:var iable name ="VarDocum ent" selec t="wwexsld oc:LoadXML WithoutRes olver($Par amDocument File/@path )" />
146     146  
147     <!-- Gen erate repo rt -->   147     <!-- Gen erate repo rt -->
148     <!--                   -->   148     <!--                   -->
149     <wwrepor t:Report v ersion="1. 0">   149     <wwrepor t:Report v ersion="1. 0">
150     150  
151      <xsl:ap ply-templa tes select ="$VarDocu ment/wwdoc :Document/ wwdoc:Cont ent" mode= "wwmode:st yles">   151      <xsl:ap ply-templa tes select ="$VarDocu ment/wwdoc :Document/ wwdoc:Cont ent" mode= "wwmode:st yles">
152       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   152       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
153       <xsl:w ith-param  name="Para mDocumentF ile" selec t="$ParamD ocumentFil e" />   153       <xsl:w ith-param  name="Para mDocumentF ile" selec t="$ParamD ocumentFil e" />
154      </xsl:a pply-templ ates>   154      </xsl:a pply-templ ates>
155     155  
156     </wwrepo rt:Report>   156     </wwrepo rt:Report>
157    </xsl:tem plate>   157    </xsl:tem plate>
158     158  
159     159  
160    <xsl:temp late name= "Style-Che ck">   160    <xsl:temp late name= "Style-Che ck">
161     <xsl:par am name="P aramLinks"  />   161     <xsl:par am name="P aramLinks"  />
162     <xsl:par am name="P aramDocume ntFile" />   162     <xsl:par am name="P aramDocume ntFile" />
163     <xsl:par am name="P aramID" />   163     <xsl:par am name="P aramID" />
164     <xsl:par am name="P aramStyleN ame" />   164     <xsl:par am name="P aramStyleN ame" />
165     <xsl:par am name="P aramStyleO verridesEx ist" />   165     <xsl:par am name="P aramStyleO verridesEx ist" />
166     <xsl:par am name="P aramRuleTy pe" />   166     <xsl:par am name="P aramRuleTy pe" />
167     167  
168     <!-- Sty le name de fined? -->   168     <!-- Sty le name de fined? -->
169     <!--                       -->   169     <!--                       -->
170     <xsl:if  test="stri ng-length( $ParamStyl eName) &gt ; 0">   170     <xsl:if  test="stri ng-length( $ParamStyl eName) &gt ; 0">
171      <!-- Ma tch agains t project  styles -->   171      <!-- Ma tch agains t project  styles -->
172      <!--                                 -->   172      <!--                                 -->
173      <xsl:fo r-each sel ect="$Glob alProject[ 1]">   173      <xsl:fo r-each sel ect="$Glob alProject[ 1]">
174       <xsl:v ariable na me="VarPro jectRules"  select="k ey('wwproj ect-rules- by-key', $ ParamStyle Name)[../@ Type = $Pa ramRuleTyp e]" />   174       <xsl:v ariable na me="VarPro jectRules"  select="k ey('wwproj ect-rules- by-key', $ ParamStyle Name)[../@ Type = $Pa ramRuleTyp e]" />
175     175  
176       <!-- M atch found ? -->   176       <!-- M atch found ? -->
177       <!--                -->   177       <!--                -->
178       <xsl:i f test="co unt($VarPr ojectRules ) = 0">   178       <xsl:i f test="co unt($VarPr ojectRules ) = 0">
179        <!--  Report non -compliant  style -->   179        <!--  Report non -compliant  style -->
180        <!--                               -->   180        <!--                               -->
181        <xsl: if test="$ GlobalStyl esNonStand ardStyleSe verity !=  'ignore'">   181        <xsl: if test="$ GlobalStyl esNonStand ardStyleSe verity !=  'ignore'">
182         <wwr eport:Entr y context= "styles" t ype="non-s tandard-st yle" sever ity="{$Glo balStylesN onStandard StyleSever ity}">   182         <wwr eport:Entr y context= "styles" t ype="non-s tandard-st yle" sever ity="{$Glo balStylesN onStandard StyleSever ity}">
183          <ww report:Des cription>   183          <ww report:Des cription>
184           <x sl:variabl e name="Va rLocalized StyleType"  select="$ GlobalUILo cale/wwloc ale:Locale /wwlocale: Strings/ww locale:Str ing[@name  = concat(' StyleType- ', $ParamR uleType)]/ @value" />   184           <x sl:variabl e name="Va rLocalized StyleType"  select="$ GlobalUILo cale/wwloc ale:Locale /wwlocale: Strings/ww locale:Str ing[@name  = concat(' StyleType- ', $ParamR uleType)]/ @value" />
185           <x sl:value-o f select=" wwstring:F ormat($Glo balUILocal e/wwlocale :Locale/ww locale:Str ings/wwloc ale:String [@name = ' NonStandar dStyleInUs e']/@value , $ParamSt yleName, $ VarLocaliz edStyleTyp e)" />   185           <x sl:value-o f select=" wwstring:F ormat($Glo balUILocal e/wwlocale :Locale/ww locale:Str ings/wwloc ale:String [@name = ' NonStandar dStyleInUs e']/@value , $ParamSt yleName, $ VarLocaliz edStyleTyp e)" />
186          </w wreport:De scription>   186          </w wreport:De scription>
187     187  
188          <ww report:Nav igation co ntext="sou rce">   188          <ww report:Nav igation co ntext="sou rce">
189           <w wreport:Li nk protoco l="adapter ">   189           <w wreport:Li nk protoco l="adapter ">
190            < wwreport:D ata key="P ath" value ="{wwproje xt:GetDocu mentPath($ ParamDocum entFile/@d ocumentID) }" />   190            < wwreport:D ata key="P ath" value ="{wwproje xt:GetDocu mentPath($ ParamDocum entFile/@d ocumentID) }" />
191            < wwreport:D ata key="D ocumentID"  value="{$ ParamDocum entFile/@d ocumentID} " />   191            < wwreport:D ata key="D ocumentID"  value="{$ ParamDocum entFile/@d ocumentID} " />
192            < wwreport:D ata key="I D" value=" {$ParamID} " />   192            < wwreport:D ata key="I D" value=" {$ParamID} " />
193           </ wwreport:L ink>   193           </ wwreport:L ink>
194          </w wreport:Na vigation>   194          </w wreport:Na vigation>
195     195  
196          <!- - Get outp ut navigat ion link f rom format  itself -- >   196          <!- - Get outp ut navigat ion link f rom format  itself -- >
197          <!- -                                                   -- >   197          <!- -                                                   -- >
198          <xs l:variable  name="Var LinkAsXML" >   198          <xs l:variable  name="Var LinkAsXML" >
199           <x sl:call-te mplate nam e="Report- OutputLink ">   199           <x sl:call-te mplate nam e="Report- OutputLink ">
200            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / >   200            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / >
201            < xsl:with-p aram name= "ParamLink sContext"  select="$P aramLinks"  />   201            < xsl:with-p aram name= "ParamLink sContext"  select="$P aramLinks"  />
202            < xsl:with-p aram name= "ParamGrou pID" selec t="$ParamD ocumentFil e/@groupID " />   202            < xsl:with-p aram name= "ParamGrou pID" selec t="$ParamD ocumentFil e/@groupID " />
203            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument File/@docu mentID" />   203            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument File/@docu mentID" />
204            < xsl:with-p aram name= "ParamPara graphID" s elect="$Pa ramID" />   204            < xsl:with-p aram name= "ParamPara graphID" s elect="$Pa ramID" />
205           </ xsl:call-t emplate>   205           </ xsl:call-t emplate>
206          </x sl:variabl e>   206          </x sl:variabl e>
207          <xs l:variable  name="Var Link" sele ct="msxsl: node-set($ VarLinkAsX ML)/wwrepo rt:Link[1] " />   207          <xs l:variable  name="Var Link" sele ct="msxsl: node-set($ VarLinkAsX ML)/wwrepo rt:Link[1] " />
208          <xs l:if test= "count($Va rLink) = 1 ">   208          <xs l:if test= "count($Va rLink) = 1 ">
209           <w wreport:Na vigation c ontext="ou tput">   209           <w wreport:Na vigation c ontext="ou tput">
210            < xsl:copy-o f select=" $VarLink"  />   210            < xsl:copy-o f select=" $VarLink"  />
211           </ wwreport:N avigation>   211           </ wwreport:N avigation>
212          </x sl:if>   212          </x sl:if>
213     213  
214          <ww report:Nav igation co ntext="det ails">   214          <ww report:Nav igation co ntext="det ails">
215           <w wreport:Li nk protoco l="wwh5api ">   215           <w wreport:Li nk protoco l="wwh5api ">
216            < wwreport:D ata key="B aseURI" va lue="{wwen v:Applicat ionBaseHel pURI()}" / >   216            < wwreport:D ata key="B aseURI" va lue="{wwen v:Applicat ionBaseHel pURI()}" / >
217            < wwreport:D ata key="C ontext" va lue="repor ts" />   217            < wwreport:D ata key="C ontext" va lue="repor ts" />
218            < wwreport:D ata key="T opic" valu e="nonstan dard_style s" />   218            < wwreport:D ata key="T opic" valu e="nonstan dard_style s" />
219           </ wwreport:L ink>   219           </ wwreport:L ink>
220          </w wreport:Na vigation>   220          </w wreport:Na vigation>
221         </ww report:Ent ry>   221         </ww report:Ent ry>
222        </xsl :if>   222        </xsl :if>
223       </xsl: if>   223       </xsl: if>
224      </xsl:f or-each>   224      </xsl:f or-each>
225     </xsl:if >   225     </xsl:if >
226     226  
227     <!-- Sty le overrid es exist?  -->   227     <!-- Sty le overrid es exist?  -->
228     <!--                           -->   228     <!--                           -->
229     <xsl:if  test="$Par amStyleOve rridesExis t">   229     <xsl:if  test="$Par amStyleOve rridesExis t">
230      <!-- Re port overr ide style  -->   230      <!-- Re port overr ide style  -->
231      <!--                          -->   231      <!--                          -->
232      <xsl:if  test="$Gl obalStyles OverrideSe verity !=  'ignore'">   232      <xsl:if  test="$Gl obalStyles OverrideSe verity !=  'ignore'">
233       <wwrep ort:Entry  context="s tyles" typ e="overrid es-exist"  severity=" {$GlobalSt ylesOverri deSeverity }">   233       <wwrep ort:Entry  context="s tyles" typ e="overrid es-exist"  severity=" {$GlobalSt ylesOverri deSeverity }">
234        <wwre port:Descr iption>   234        <wwre port:Descr iption>
235         <xsl :variable  name="VarL ocalizedSt yleType" s elect="$Gl obalUILoca le/wwlocal e:Locale/w wlocale:St rings/wwlo cale:Strin g[@name =  concat('St yleType-',  $ParamRul eType)]/@v alue" />   235         <xsl :variable  name="VarL ocalizedSt yleType" s elect="$Gl obalUILoca le/wwlocal e:Locale/w wlocale:St rings/wwlo cale:Strin g[@name =  concat('St yleType-',  $ParamRul eType)]/@v alue" />
236     236  
237         <!--  Handle ca se where s tyle name  is undefin ed -->   237         <!--  Handle ca se where s tyle name  is undefin ed -->
238         <!--                                                -->   238         <!--                                                -->
239         <xsl :choose>   239         <xsl :choose>
240          <xs l:when tes t="string- length($Pa ramStyleNa me) &gt; 0 ">   240          <xs l:when tes t="string- length($Pa ramStyleNa me) &gt; 0 ">
241           <x sl:value-o f select=" wwstring:F ormat($Glo balUILocal e/wwlocale :Locale/ww locale:Str ings/wwloc ale:String [@name = ' StyleOverr idesExist' ]/@value,  $ParamStyl eName, $Va rLocalized StyleType) " />   241           <x sl:value-o f select=" wwstring:F ormat($Glo balUILocal e/wwlocale :Locale/ww locale:Str ings/wwloc ale:String [@name = ' StyleOverr idesExist' ]/@value,  $ParamStyl eName, $Va rLocalized StyleType) " />
242          </x sl:when>   242          </x sl:when>
243     243  
244          <xs l:otherwis e>   244          <xs l:otherwis e>
245           <x sl:value-o f select=" wwstring:F ormat($Glo balUILocal e/wwlocale :Locale/ww locale:Str ings/wwloc ale:String [@name = ' UnnamedSty leOverride sExist']/@ value, $Va rLocalized StyleType) " />   245           <x sl:value-o f select=" wwstring:F ormat($Glo balUILocal e/wwlocale :Locale/ww locale:Str ings/wwloc ale:String [@name = ' UnnamedSty leOverride sExist']/@ value, $Va rLocalized StyleType) " />
246          </x sl:otherwi se>   246          </x sl:otherwi se>
247         </xs l:choose>   247         </xs l:choose>
248        </wwr eport:Desc ription>   248        </wwr eport:Desc ription>
249     249  
250        <wwre port:Navig ation cont ext="sourc e">   250        <wwre port:Navig ation cont ext="sourc e">
251         <wwr eport:Link  protocol= "adapter">   251         <wwr eport:Link  protocol= "adapter">
252          <ww report:Dat a key="Pat h" value=" {wwprojext :GetDocume ntPath($Pa ramDocumen tFile/@doc umentID)}"  />   252          <ww report:Dat a key="Pat h" value=" {wwprojext :GetDocume ntPath($Pa ramDocumen tFile/@doc umentID)}"  />
253          <ww report:Dat a key="Doc umentID" v alue="{$Pa ramDocumen tFile/@doc umentID}"  />   253          <ww report:Dat a key="Doc umentID" v alue="{$Pa ramDocumen tFile/@doc umentID}"  />
254          <ww report:Dat a key="ID"  value="{$ ParamID}"  />   254          <ww report:Dat a key="ID"  value="{$ ParamID}"  />
255         </ww report:Lin k>   255         </ww report:Lin k>
256        </wwr eport:Navi gation>   256        </wwr eport:Navi gation>
257     257  
258        <!--  Get output  navigatio n link fro m format i tself -->   258        <!--  Get output  navigatio n link fro m format i tself -->
259        <!--                                                    -->   259        <!--                                                    -->
260        <xsl: variable n ame="VarLi nkAsXML">   260        <xsl: variable n ame="VarLi nkAsXML">
261         <xsl :call-temp late name= "Report-Ou tputLink">   261         <xsl :call-temp late name= "Report-Ou tputLink">
262          <xs l:with-par am name="P aramProjec t" select= "$GlobalPr oject" />   262          <xs l:with-par am name="P aramProjec t" select= "$GlobalPr oject" />
263          <xs l:with-par am name="P aramLinksC ontext" se lect="$Par amLinks" / >   263          <xs l:with-par am name="P aramLinksC ontext" se lect="$Par amLinks" / >
264          <xs l:with-par am name="P aramGroupI D" select= "$ParamDoc umentFile/ @groupID"  />   264          <xs l:with-par am name="P aramGroupI D" select= "$ParamDoc umentFile/ @groupID"  />
265          <xs l:with-par am name="P aramDocume ntID" sele ct="$Param DocumentFi le/@docume ntID" />   265          <xs l:with-par am name="P aramDocume ntID" sele ct="$Param DocumentFi le/@docume ntID" />
266          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mID" />   266          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mID" />
267         </xs l:call-tem plate>   267         </xs l:call-tem plate>
268        </xsl :variable>   268        </xsl :variable>
269        <xsl: variable n ame="VarLi nk" select ="msxsl:no de-set($Va rLinkAsXML )/wwreport :Link[1]"  />   269        <xsl: variable n ame="VarLi nk" select ="msxsl:no de-set($Va rLinkAsXML )/wwreport :Link[1]"  />
270        <xsl: if test="c ount($VarL ink) = 1">   270        <xsl: if test="c ount($VarL ink) = 1">
271         <wwr eport:Navi gation con text="outp ut">   271         <wwr eport:Navi gation con text="outp ut">
272          <xs l:copy-of  select="$V arLink" />   272          <xs l:copy-of  select="$V arLink" />
273         </ww report:Nav igation>   273         </ww report:Nav igation>
274        </xsl :if>   274        </xsl :if>
275     275  
276        <wwre port:Navig ation cont ext="detai ls">   276        <wwre port:Navig ation cont ext="detai ls">
277         <wwr eport:Link  protocol= "wwh5api">   277         <wwr eport:Link  protocol= "wwh5api">
278          <ww report:Dat a key="Bas eURI" valu e="{wwenv: Applicatio nBaseHelpU RI()}" />   278          <ww report:Dat a key="Bas eURI" valu e="{wwenv: Applicatio nBaseHelpU RI()}" />
279          <ww report:Dat a key="Con text" valu e="reports " />   279          <ww report:Dat a key="Con text" valu e="reports " />
280          <ww report:Dat a key="Top ic" value= "style_ove rrides" />   280          <ww report:Dat a key="Top ic" value= "style_ove rrides" />
281         </ww report:Lin k>   281         </ww report:Lin k>
282        </wwr eport:Navi gation>   282        </wwr eport:Navi gation>
283       </wwre port:Entry >   283       </wwre port:Entry >
284      </xsl:i f>   284      </xsl:i f>
285     </xsl:if >   285     </xsl:if >
286    </xsl:tem plate>   286    </xsl:tem plate>
287     287  
288     288  
289    <xsl:temp late match ="*" mode= "wwmode:st yles">   289    <xsl:temp late match ="*" mode= "wwmode:st yles">
290     <xsl:par am name="P aramLinks"  />   290     <xsl:par am name="P aramLinks"  />
291     <xsl:par am name="P aramDocume ntFile" />   291     <xsl:par am name="P aramDocume ntFile" />
292     <xsl:par am name="P aramID" />   292     <xsl:par am name="P aramID" />
293     293  
294     <xsl:app ly-templat es mode="w wmode:styl es">   294     <xsl:app ly-templat es mode="w wmode:styl es">
295      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   295      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
296      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   296      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
297      <xsl:wi th-param n ame="Param ID" select ="0" />   297      <xsl:wi th-param n ame="Param ID" select ="0" />
298     </xsl:ap ply-templa tes>   298     </xsl:ap ply-templa tes>
299    </xsl:tem plate>   299    </xsl:tem plate>
300     300  
301     301  
302    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:styles">   302    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:styles">
303     <xsl:par am name="P aramLinks"  />   303     <xsl:par am name="P aramLinks"  />
304     <xsl:par am name="P aramDocume ntFile" />   304     <xsl:par am name="P aramDocume ntFile" />
305     <xsl:par am name="P aramID" />   305     <xsl:par am name="P aramID" />
306     <xsl:par am name="P aramNode"  select="."  />   306     <xsl:par am name="P aramNode"  select="."  />
307     307  
308     <xsl:cal l-template  name="Sty le-Check">   308     <xsl:cal l-template  name="Sty le-Check">
309      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   309      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
310      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   310      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
311      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />   311      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />
312      <xsl:wi th-param n ame="Param StyleName"  select="$ ParamNode/ @stylename " />   312      <xsl:wi th-param n ame="Param StyleName"  select="$ ParamNode/ @stylename " />
313      <xsl:wi th-param n ame="Param StyleOverr idesExist"  select="c ount($Para mNode/wwdo c:Style/ww doc:Attrib ute) &gt;  0" />   313      <xsl:wi th-param n ame="Param StyleOverr idesExist"  select="c ount($Para mNode/wwdo c:Style/ww doc:Attrib ute) &gt;  0" />
314      <xsl:wi th-param n ame="Param RuleType"  select="'P aragraph'"  />   314      <xsl:wi th-param n ame="Param RuleType"  select="'P aragraph'"  />
315     </xsl:ca ll-templat e>   315     </xsl:ca ll-templat e>
316     316  
317     <xsl:app ly-templat es mode="w wmode:styl es">   317     <xsl:app ly-templat es mode="w wmode:styl es">
318      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   318      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
319      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   319      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
320      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />   320      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />
321     </xsl:ap ply-templa tes>   321     </xsl:ap ply-templa tes>
322    </xsl:tem plate>   322    </xsl:tem plate>
323     323  
324     324  
325    <xsl:temp late match ="wwdoc:Te xtRun" mod e="wwmode: styles">   325    <xsl:temp late match ="wwdoc:Te xtRun" mod e="wwmode: styles">
326     <xsl:par am name="P aramLinks"  />   326     <xsl:par am name="P aramLinks"  />
327     <xsl:par am name="P aramDocume ntFile" />   327     <xsl:par am name="P aramDocume ntFile" />
328     <xsl:par am name="P aramID" />   328     <xsl:par am name="P aramID" />
329     <xsl:par am name="P aramNode"  select="."  />   329     <xsl:par am name="P aramNode"  select="."  />
330     330  
        331     <xsl:var iable name ="VarHasCo ntent" sel ect="count ($ParamNod e/wwdoc:*[ (local-nam e() != 'St yle') and  (local-nam e() != 'Li nk') and ( local-name () != 'Con ditions')] [1]) &gt;  0" />
        332  
331     <xsl:cal l-template  name="Sty le-Check">   333     <xsl:cal l-template  name="Sty le-Check">
332      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   334      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
333      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   335      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
334      <xsl:wi th-param n ame="Param ID" select ="$ParamID " />   336      <xsl:wi th-param n ame="Param ID" select ="$ParamID " />
335      <xsl:wi th-param n ame="Param StyleName"  select="$ ParamNode/ @stylename " />   337      <xsl:wi th-param n ame="Param StyleName"  select="$ ParamNode/ @stylename " />
336      <xsl:wi th-param n ame="Param StyleOverr idesExist"  select="
count($Par amNode/wwd oc:Style/w wdoc:Attri bute) &gt;  0
" />
  338      <xsl:wi th-param n ame="Param StyleOverr idesExist"  select=" ( count($Par amNode/wwd oc:Style/w wdoc:Attri bute) &gt;  0 ) and ($Va rHasConten t) " />
337      <xsl:wi th-param n ame="Param RuleType"  select="'C haracter'"  />   339      <xsl:wi th-param n ame="Param RuleType"  select="'C haracter'"  />
338     </xsl:ca ll-templat e>   340     </xsl:ca ll-templat e>
339     341  
340     <xsl:app ly-templat es mode="w wmode:styl es">   342     <xsl:app ly-templat es mode="w wmode:styl es">
341      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   343      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
342      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   344      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
343      <xsl:wi th-param n ame="Param ID" select ="$ParamID " />   345      <xsl:wi th-param n ame="Param ID" select ="$ParamID " />
344     </xsl:ap ply-templa tes>   346     </xsl:ap ply-templa tes>
345    </xsl:tem plate>   347    </xsl:tem plate>
346     348  
347     349  
348    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:st yles">   350    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:st yles">
349     <xsl:par am name="P aramLinks"  />   351     <xsl:par am name="P aramLinks"  />
350     <xsl:par am name="P aramDocume ntFile" />   352     <xsl:par am name="P aramDocume ntFile" />
351     <xsl:par am name="P aramID" />   353     <xsl:par am name="P aramID" />
352     <xsl:par am name="P aramNode"  select="."  />   354     <xsl:par am name="P aramNode"  select="."  />
353     355  
354     <xsl:cal l-template  name="Sty le-Check">   356     <xsl:cal l-template  name="Sty le-Check">
355      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   357      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
356      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   358      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
357      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />   359      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />
358      <xsl:wi th-param n ame="Param StyleName"  select="$ ParamNode/ @stylename " />   360      <xsl:wi th-param n ame="Param StyleName"  select="$ ParamNode/ @stylename " />
359      <xsl:wi th-param n ame="Param StyleOverr idesExist"  select="c ount($Para mNode/wwdo c:Style/ww doc:Attrib ute[@Name  != 'width' ]) &gt; 0"  />   361      <xsl:wi th-param n ame="Param StyleOverr idesExist"  select="c ount($Para mNode/wwdo c:Style/ww doc:Attrib ute[@Name  != 'width' ]) &gt; 0"  />
360      <xsl:wi th-param n ame="Param RuleType"  select="'T able'" />   362      <xsl:wi th-param n ame="Param RuleType"  select="'T able'" />
361     </xsl:ca ll-templat e>   363     </xsl:ca ll-templat e>
362     364  
363     <xsl:app ly-templat es mode="w wmode:styl es">   365     <xsl:app ly-templat es mode="w wmode:styl es">
364      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   366      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
365      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   367      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
366      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />   368      <xsl:wi th-param n ame="Param ID" select ="$ParamNo de/@id" />
367     </xsl:ap ply-templa tes>   369     </xsl:ap ply-templa tes>
368    </xsl:tem plate>   370    </xsl:tem plate>
369     371  
370     372  
371    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:st yles">   373    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:st yles">
372     <xsl:par am name="P aramLinks"  />   374     <xsl:par am name="P aramLinks"  />
373     <xsl:par am name="P aramDocume ntFile" />   375     <xsl:par am name="P aramDocume ntFile" />
374     <xsl:par am name="P aramID" />   376     <xsl:par am name="P aramID" />
375     <xsl:par am name="P aramNode"  select="."  />   377     <xsl:par am name="P aramNode"  select="."  />
376     378  
377     <!-- Top  level fra me? -->   379     <!-- Top  level fra me? -->
378     <!--                    -->   380     <!--                    -->
379     <xsl:if  test="stri ng-length( $ParamNode /@id) &gt;  0">   381     <xsl:if  test="stri ng-length( $ParamNode /@id) &gt;  0">
380      <xsl:ca ll-templat e name="St yle-Check" >   382      <xsl:ca ll-templat e name="St yle-Check" >
381       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   383       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
382       <xsl:w ith-param  name="Para mDocumentF ile" selec t="$ParamD ocumentFil e" />   384       <xsl:w ith-param  name="Para mDocumentF ile" selec t="$ParamD ocumentFil e" />
383       <xsl:w ith-param  name="Para mID" selec t="$ParamN ode/@id" / >   385       <xsl:w ith-param  name="Para mID" selec t="$ParamN ode/@id" / >
384       <xsl:w ith-param  name="Para mStyleName " select=" $ParamNode /@stylenam e" />   386       <xsl:w ith-param  name="Para mStyleName " select=" $ParamNode /@stylenam e" />
385       <xsl:w ith-param  name="Para mStyleOver ridesExist " select=" count($Par amNode/wwd oc:Style/w wdoc:Attri bute) &gt;  0" />   387       <xsl:w ith-param  name="Para mStyleOver ridesExist " select=" count($Par amNode/wwd oc:Style/w wdoc:Attri bute) &gt;  0" />
386       <xsl:w ith-param  name="Para mRuleType"  select="' Graphic'"  />   388       <xsl:w ith-param  name="Para mRuleType"  select="' Graphic'"  />
387      </xsl:c all-templa te>   389      </xsl:c all-templa te>
388     </xsl:if >   390     </xsl:if >
389    </xsl:tem plate>   391    </xsl:tem plate>
390     392  
391     393  
392    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:s tyles">   394    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:s tyles">
393     <xsl:par am name="P aramLinks"  />   395     <xsl:par am name="P aramLinks"  />
394     <xsl:par am name="P aramDocume ntFile" />   396     <xsl:par am name="P aramDocume ntFile" />
395     <xsl:par am name="P aramID" />   397     <xsl:par am name="P aramID" />
396     <xsl:par am name="P aramNode"  select="."  />   398     <xsl:par am name="P aramNode"  select="."  />
397     399  
398     <xsl:cho ose>   400     <xsl:cho ose>
399      <!-- Pa ge style m arker -->   401      <!-- Pa ge style m arker -->
400      <!--                     -->   402      <!--                     -->
401      <xsl:wh en test="$ ParamNode/ @name = 'P ageStyle'" >   403      <xsl:wh en test="$ ParamNode/ @name = 'P ageStyle'" >
402       <xsl:v ariable na me="VarSty leName">   404       <xsl:v ariable na me="VarSty leName">
403        <xsl: for-each s elect="$Pa ramNode/ww doc:TextRu n/wwdoc:Te xt">   405        <xsl: for-each s elect="$Pa ramNode/ww doc:TextRu n/wwdoc:Te xt">
404         <xsl :value-of  select="@v alue" />   406         <xsl :value-of  select="@v alue" />
405        </xsl :for-each>   407        </xsl :for-each>
406       </xsl: variable>   408       </xsl: variable>
407     409  
408       <xsl:c all-templa te name="S tyle-Check ">   410       <xsl:c all-templa te name="S tyle-Check ">
409        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   411        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
410        <xsl: with-param  name="Par amDocument File" sele ct="$Param DocumentFi le" />   412        <xsl: with-param  name="Par amDocument File" sele ct="$Param DocumentFi le" />
411        <xsl: with-param  name="Par amID" sele ct="$Param ID" />   413        <xsl: with-param  name="Par amID" sele ct="$Param ID" />
412        <xsl: with-param  name="Par amStyleNam e" select= "$VarStyle Name" />   414        <xsl: with-param  name="Par amStyleNam e" select= "$VarStyle Name" />
413        <xsl: with-param  name="Par amStyleOve rridesExis t" select= "count($Pa ramNode/ww doc:Style/ wwdoc:Attr ibute) &gt ; 0" />   415        <xsl: with-param  name="Par amStyleOve rridesExis t" select= "count($Pa ramNode/ww doc:Style/ wwdoc:Attr ibute) &gt ; 0" />
414        <xsl: with-param  name="Par amRuleType " select=" 'Page'" />   416        <xsl: with-param  name="Par amRuleType " select=" 'Page'" />
415       </xsl: call-templ ate>   417       </xsl: call-templ ate>
416      </xsl:w hen>   418      </xsl:w hen>
417     419  
418      <!-- Re gular mark er -->   420      <!-- Re gular mark er -->
419      <!--                  -->   421      <!--                  -->
420      <xsl:ot herwise>   422      <xsl:ot herwise>
421       <xsl:c all-templa te name="S tyle-Check ">   423       <xsl:c all-templa te name="S tyle-Check ">
422        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   424        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
423        <xsl: with-param  name="Par amDocument File" sele ct="$Param DocumentFi le" />   425        <xsl: with-param  name="Par amDocument File" sele ct="$Param DocumentFi le" />
424        <xsl: with-param  name="Par amID" sele ct="$Param ID" />   426        <xsl: with-param  name="Par amID" sele ct="$Param ID" />
425        <xsl: with-param  name="Par amStyleNam e" select= "$ParamNod e/@name" / >   427        <xsl: with-param  name="Par amStyleNam e" select= "$ParamNod e/@name" / >
426        <xsl: with-param  name="Par amStyleOve rridesExis t" select= "count($Pa ramNode/ww doc:Style/ wwdoc:Attr ibute) &gt ; 0" />   428        <xsl: with-param  name="Par amStyleOve rridesExis t" select= "count($Pa ramNode/ww doc:Style/ wwdoc:Attr ibute) &gt ; 0" />
427        <xsl: with-param  name="Par amRuleType " select=" 'Marker'"  />   429        <xsl: with-param  name="Par amRuleType " select=" 'Marker'"  />
428       </xsl: call-templ ate>   430       </xsl: call-templ ate>
429      </xsl:o therwise>   431      </xsl:o therwise>
430     </xsl:ch oose>   432     </xsl:ch oose>
431     433  
432     <xsl:app ly-templat es mode="w wmode:styl es">   434     <xsl:app ly-templat es mode="w wmode:styl es">
433      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   435      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
434      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />   436      <xsl:wi th-param n ame="Param DocumentFi le" select ="$ParamDo cumentFile " />
435      <xsl:wi th-param n ame="Param ID" select ="$ParamID " />   437      <xsl:wi th-param n ame="Param ID" select ="$ParamID " />
436     </xsl:ap ply-templa tes>   438     </xsl:ap ply-templa tes>
437    </xsl:tem plate>   439    </xsl:tem plate>
438   </xsl:styl esheet>   440   </xsl:styl esheet>