39. Araxis Merge File Comparison Report

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

39.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.1.20396.b\Formats\Shared\common\links resolve.xsl Fri Apr 28 23:53:36 2006 UTC
2 C:\Documents and Settings\allums\Desktop\2008.2.20597.p2\Formats\Shared\common\links resolve.xsl Fri Jun 27 16:48:32 2008 UTC

39.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 9 776
Changed 0 0
Inserted 8 73
Removed 0 0

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

39.4 Active regular expressions

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

39.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- Engine-Lin ks-Schema"   2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Engine-Lin ks-Schema"
3                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"   3                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"
4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"   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"   5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"   6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
7                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"   7                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
8                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"   8                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"   9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"   10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
11                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"   11                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"
12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"   12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"   13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"   14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"   15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"   16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"   17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
18                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"   18                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
19                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"   19                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
20                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwfiles  wwsplits w wdoc wwpro ject wwloc ale wwprog ress wwlog  wwfilesys tem wwuri  wwstring w wfilesext  wwprojext  wwexsldoc"   20                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwfiles  wwsplits w wdoc wwpro ject wwloc ale wwprog ress wwlog  wwfilesys tem wwuri  wwstring w wfilesext  wwprojext  wwexsldoc"
21   >   21   >
22    <xsl:key  name="wwli nks-paragr aphs-by-id " match="w wlinks:Par agraph" us e="@id" />   22    <xsl:key  name="wwli nks-paragr aphs-by-id " match="w wlinks:Par agraph" us e="@id" />
23    <xsl:key  name="wwli nks-files- by-documen tpath-lowe rcase" mat ch="wwlink s:File" us e="@docume ntpath-low ercase" />   23    <xsl:key  name="wwli nks-files- by-documen tpath-lowe rcase" mat ch="wwlink s:File" us e="@docume ntpath-low ercase" />
24    <xsl:key  name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" />   24    <xsl:key  name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" />
25     25  
26     26  
        27    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex t-only">
        28     <xsl:par am name="P aramNode"  select="."  />
        29  
        30     <!-- Emi t text -->
        31     <!--            -->
        32     <xsl:val ue-of sele ct="$Param Node/@valu e" />
        33    </xsl:tem plate>
        34  
        35  
        36    <xsl:temp late match ="*" mode= "wwmode:te xt-only">
        37     <!-- Rec urse -->
        38     <!--          -->
        39     <xsl:app ly-templat es mode="w wmode:text -only" />
        40    </xsl:tem plate>
        41  
        42  
        43    <xsl:temp late match ="text() |  processin g-instruct ion() | co mment()" m ode="wwmod e:text-onl y">
        44     <!-- Do  not proces s -->
        45     <!--                  -->
        46    </xsl:tem plate>
        47  
        48  
        49    <xsl:temp late name= "Link-Desc ription-As -Title-Att ribute">
        50     <xsl:par am name="P aramDocume ntLink" />
        51  
        52     <!-- Lin k descript ion marker  provided?  -->
        53     <!--                                       -->
        54     <xsl:var iable name ="VarLinkD escription ">
        55      <xsl:fo r-each sel ect="$Para mDocumentL ink/parent ::wwdoc:Pa ragraph/ww doc:TextRu n/wwdoc:Ma rker | $Pa ramDocumen tLink/pare nt::wwdoc: TextRun/ww doc:Marker ">
        56       <xsl:v ariable na me="VarMar ker" selec t="." />
        57  
        58       <!-- D etermine m arker beha vior -->
        59       <!--                              -->
        60       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Marker', $ VarMarker/ @name)" />
        61       <xsl:v ariable na me="VarMar kerTypeOpt ion" selec t="$VarRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mark er-type'][ 1]/@Value"  />
        62       <xsl:i f test="$V arMarkerTy peOption =  'link-tit le'">
        63        <xsl: apply-temp lates sele ct="$VarMa rker/wwdoc :TextRun"  mode="wwmo de:text-on ly" />
        64       </xsl: if>
        65      </xsl:f or-each>
        66     </xsl:va riable>
        67  
        68     <!-- Emi t if defin ed -->
        69     <!--                   -->
        70     <xsl:if  test="stri ng-length( $VarLinkDe scription)  &gt; 0">
        71      <xsl:at tribute na me="title" >
        72       <xsl:v alue-of se lect="$Var LinkDescri ption" />
        73      </xsl:a ttribute>
        74     </xsl:if >
        75    </xsl:tem plate>
        76  
        77  
27    <xsl:temp late name= "Links-Res olve-Bagga ge">   78    <xsl:temp late name= "Links-Res olve-Bagga ge">
28     <xsl:par am name="P aramAllowB aggage" />   79     <xsl:par am name="P aramAllowB aggage" />
29     <xsl:par am name="P aramBaggag eSplitFile Type" />   80     <xsl:par am name="P aramBaggag eSplitFile Type" />
30     <xsl:par am name="P aramSplits " />   81     <xsl:par am name="P aramSplits " />
31     <xsl:par am name="P aramDocume ntLink" />   82     <xsl:par am name="P aramDocume ntLink" />
32     83  
33     <xsl:var iable name ="VarDocum entLinkUrl ToLower" s elect="wws tring:ToLo wer($Param DocumentLi nk/@url)"  />   84     <xsl:var iable name ="VarDocum entLinkUrl ToLower" s elect="wws tring:ToLo wer($Param DocumentLi nk/@url)"  />
34     85  
35     <xsl:for -each sele ct="$Param Splits[1]" >   86     <xsl:for -each sele ct="$Param Splits[1]" >
36      <xsl:va riable nam e="VarBagg ageFiles"  select="ke y('wwsplit s-files-by -source-lo wercase',  $VarDocume ntLinkUrlT oLower)[@t ype = $Par amBaggageS plitFileTy pe]" />   87      <xsl:va riable nam e="VarBagg ageFiles"  select="ke y('wwsplit s-files-by -source-lo wercase',  $VarDocume ntLinkUrlT oLower)[@t ype = $Par amBaggageS plitFileTy pe]" />
37     88  
38      <xsl:fo r-each sel ect="$VarB aggageFile s[1]">   89      <xsl:fo r-each sel ect="$VarB aggageFile s[1]">
39       <xsl:v ariable na me="VarBag gageFile"  select="."  />   90       <xsl:v ariable na me="VarBag gageFile"  select="."  />
40     91  
41       <xsl:v ariable na me="VarTar getDocumen tPath" sel ect="wwuri :AsFilePat h($ParamDo cumentLink /@url)" />   92       <xsl:v ariable na me="VarTar getDocumen tPath" sel ect="wwuri :AsFilePat h($ParamDo cumentLink /@url)" />
42     93  
43       <xsl:c hoose>   94       <xsl:c hoose>
44        <!--  Baggage al lowed -->   95        <!--  Baggage al lowed -->
45        <!--                   -->   96        <!--                   -->
46        <xsl: when test= "$ParamAll owBaggage  = 'true'">   97        <xsl: when test= "$ParamAll owBaggage  = 'true'">
47         <xsl :choose>   98         <xsl :choose>
48          <!- - Baggage  file exist s! -->   99          <!- - Baggage  file exist s! -->
49          <!- -                        -->   100          <!- -                        -->
50          <xs l:when tes t="wwfiles ystem:File Exists($Va rBaggageFi le/@source )">   101          <xs l:when tes t="wwfiles ystem:File Exists($Va rBaggageFi le/@source )">
51           <w wlinks:Res olvedLink  type="bagg age">   102           <w wlinks:Res olvedLink  type="bagg age">
52            < xsl:copy-o f select=" $VarBaggag eFile/@*"  />   103            < xsl:copy-o f select=" $VarBaggag eFile/@*"  />
53     104  
54            < xsl:attrib ute name=" target">   105            < xsl:attrib ute name=" target">
55              <xsl:value -of select ="$VarTarg etDocument Path" />   106              <xsl:value -of select ="$VarTarg etDocument Path" />
56            < /xsl:attri bute>   107            < /xsl:attri bute>
        108  
        109            < !-- @title  attribute  -->
        110            < !--                    -->
        111            < xsl:call-t emplate na me="Link-D escription -As-Title- Attribute" >
        112              <xsl:with- param name ="ParamDoc umentLink"  select="$ ParamDocum entLink" / >
        113            < /xsl:call- template>
57           </ wwlinks:Re solvedLink >   114           </ wwlinks:Re solvedLink >
58          </x sl:when>   115          </x sl:when>
59     116  
60          <!- - Missing  baggage fi le? -->   117          <!- - Missing  baggage fi le? -->
61          <!- -                         -->   118          <!- -                         -->
62          <xs l:otherwis e>   119          <xs l:otherwis e>
63           <w wlinks:Unr esolvedLin k type="ba ggage">   120           <w wlinks:Unr esolvedLin k type="ba ggage">
64            < xsl:attrib ute name=" target">   121            < xsl:attrib ute name=" target">
65              <xsl:value -of select ="$VarTarg etDocument Path" />   122              <xsl:value -of select ="$VarTarg etDocument Path" />
66            < /xsl:attri bute>   123            < /xsl:attri bute>
67           </ wwlinks:Un resolvedLi nk>   124           </ wwlinks:Un resolvedLi nk>
68          </x sl:otherwi se>   125          </x sl:otherwi se>
69         </xs l:choose>   126         </xs l:choose>
70        </xsl :when>   127        </xsl :when>
71     128  
72        <!--  No baggage  allowed - ->   129        <!--  No baggage  allowed - ->
73        <!--                      - ->   130        <!--                      - ->
74        <xsl: otherwise>   131        <xsl: otherwise>
75         <wwl inks:Unsup portedLink  type="bag gage">   132         <wwl inks:Unsup portedLink  type="bag gage">
76          <xs l:attribut e name="ta rget">   133          <xs l:attribut e name="ta rget">
77           <x sl:value-o f select=" $VarTarget DocumentPa th" />   134           <x sl:value-o f select=" $VarTarget DocumentPa th" />
78          </x sl:attribu te>   135          </x sl:attribu te>
79         </ww links:Unsu pportedLin k>   136         </ww links:Unsu pportedLin k>
80        </xsl :otherwise >   137        </xsl :otherwise >
81       </xsl: choose>   138       </xsl: choose>
82      </xsl:f or-each>   139      </xsl:f or-each>
83     </xsl:fo r-each>   140     </xsl:fo r-each>
84    </xsl:tem plate>   141    </xsl:tem plate>
85     142  
86     143  
87    <xsl:temp late name= "Links-Res olvedLink- Element">   144    <xsl:temp late name= "Links-Res olvedLink- Element">
        145     <xsl:par am name="P aramDocume ntLink" />
88     <xsl:par am name="P aramLinks"  />   146     <xsl:par am name="P aramLinks"  />
89     <xsl:par am name="P aramParagr aphLink" / >   147     <xsl:par am name="P aramParagr aphLink" / >
90     <xsl:par am name="P aramType"  />   148     <xsl:par am name="P aramType"  />
91     149  
92     <wwlinks :ResolvedL ink type=" {$ParamTyp e}">   150     <wwlinks :ResolvedL ink type=" {$ParamTyp e}">
93      <xsl:co py-of sele ct="$Param ParagraphL ink/../@*"  />   151      <xsl:co py-of sele ct="$Param ParagraphL ink/../@*"  />
94      <xsl:co py-of sele ct="$Param ParagraphL ink/@*" />   152      <xsl:co py-of sele ct="$Param ParagraphL ink/@*" />
95     153  
96      <!-- Ad d linkid a ttributes  -->   154      <!-- Ad d linkid a ttributes  -->
97      <!--                          -->   155      <!--                          -->
98      <xsl:if  test="$Pa ramParagra phLink/@id  != $Param ParagraphL ink/@linki d">   156      <xsl:if  test="$Pa ramParagra phLink/@id  != $Param ParagraphL ink/@linki d">
99       <xsl:f or-each se lect="$Par amLinks[1] ">   157       <xsl:f or-each se lect="$Par amLinks[1] ">
100        <xsl: variable n ame="VarLi nkIDParagr aphLink" s elect="key ('wwlinks- paragraphs -by-id', $ ParamParag raphLink/@ linkid)[.. /@document ID = $Para mParagraph Link/../@d ocumentID] [1]" />   158        <xsl: variable n ame="VarLi nkIDParagr aphLink" s elect="key ('wwlinks- paragraphs -by-id', $ ParamParag raphLink/@ linkid)[.. /@document ID = $Para mParagraph Link/../@d ocumentID] [1]" />
101     159  
102        <xsl: for-each s elect="$Va rLinkIDPar agraphLink /@*">   160        <xsl: for-each s elect="$Va rLinkIDPar agraphLink /@*">
103         <xsl :variable  name="VarL inkIDParag raphLinkAt tribute" s elect="."  />   161         <xsl :variable  name="VarL inkIDParag raphLinkAt tribute" s elect="."  />
104         <xsl :variable  name="VarE mittedAttr ibute" sel ect="$Para mParagraph Link/@*[na me() = nam e($VarLink IDParagrap hLinkAttri bute)]" />   162         <xsl :variable  name="VarE mittedAttr ibute" sel ect="$Para mParagraph Link/@*[na me() = nam e($VarLink IDParagrap hLinkAttri bute)]" />
105     163  
106         <xsl :if test=" count($Var EmittedAtt ribute) =  0">   164         <xsl :if test=" count($Var EmittedAtt ribute) =  0">
107          <xs l:copy-of  select="$V arLinkIDPa ragraphLin kAttribute " />   165          <xs l:copy-of  select="$V arLinkIDPa ragraphLin kAttribute " />
108         </xs l:if>   166         </xs l:if>
109        </xsl :for-each>   167        </xsl :for-each>
110       </xsl: for-each>   168       </xsl: for-each>
111      </xsl:i f>   169      </xsl:i f>
        170  
        171      <!-- @t itle attri bute -->
        172      <!--                    -->
        173      <xsl:ca ll-templat e name="Li nk-Descrip tion-As-Ti tle-Attrib ute">
        174       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamD ocumentLin k" />
        175      </xsl:c all-templa te>
112     </wwlink s:Resolved Link>   176     </wwlink s:Resolved Link>
113    </xsl:tem plate>   177    </xsl:tem plate>
114     178  
115     179  
116    <xsl:temp late name= "Links-Uns upported-E lement">   180    <xsl:temp late name= "Links-Uns upported-E lement">
117     <xsl:par am name="P aramLinks"  />   181     <xsl:par am name="P aramLinks"  />
118     <xsl:par am name="P aramParagr aphLink" / >   182     <xsl:par am name="P aramParagr aphLink" / >
119     <xsl:par am name="P aramType"  />   183     <xsl:par am name="P aramType"  />
120     184  
121     <wwlinks :Unsupport edLink typ e="{$Param Type}">   185     <wwlinks :Unsupport edLink typ e="{$Param Type}">
122      <xsl:co py-of sele ct="$Param ParagraphL ink/../@*"  />   186      <xsl:co py-of sele ct="$Param ParagraphL ink/../@*"  />
123      <xsl:co py-of sele ct="$Param ParagraphL ink/@*" />   187      <xsl:co py-of sele ct="$Param ParagraphL ink/@*" />
124     188  
125      <!-- Ad d linkid a ttributes  -->   189      <!-- Ad d linkid a ttributes  -->
126      <!--                          -->   190      <!--                          -->
127      <xsl:if  test="$Pa ramParagra phLink/@id  != $Param ParagraphL ink/@linki d">   191      <xsl:if  test="$Pa ramParagra phLink/@id  != $Param ParagraphL ink/@linki d">
128       <xsl:f or-each se lect="$Par amLinks[1] ">   192       <xsl:f or-each se lect="$Par amLinks[1] ">
129        <xsl: variable n ame="VarLi nkIDParagr aphLink" s elect="key ('wwlinks- paragraphs -by-id', $ ParamParag raphLink/@ linkid)[.. /@document ID = $Para mParagraph Link/../@d ocumentID] [1]" />   193        <xsl: variable n ame="VarLi nkIDParagr aphLink" s elect="key ('wwlinks- paragraphs -by-id', $ ParamParag raphLink/@ linkid)[.. /@document ID = $Para mParagraph Link/../@d ocumentID] [1]" />
130     194  
131        <xsl: for-each s elect="$Va rLinkIDPar agraphLink /@*">   195        <xsl: for-each s elect="$Va rLinkIDPar agraphLink /@*">
132         <xsl :variable  name="VarL inkIDParag raphLinkAt tribute" s elect="."  />   196         <xsl :variable  name="VarL inkIDParag raphLinkAt tribute" s elect="."  />
133         <xsl :variable  name="VarE mittedAttr ibute" sel ect="$Para mParagraph Link/@*[na me() = nam e($VarLink IDParagrap hLinkAttri bute)]" />   197         <xsl :variable  name="VarE mittedAttr ibute" sel ect="$Para mParagraph Link/@*[na me() = nam e($VarLink IDParagrap hLinkAttri bute)]" />
134     198  
135         <xsl :if test=" count($Var EmittedAtt ribute) =  0">   199         <xsl :if test=" count($Var EmittedAtt ribute) =  0">
136          <xs l:copy-of  select="$V arLinkIDPa ragraphLin kAttribute " />   200          <xs l:copy-of  select="$V arLinkIDPa ragraphLin kAttribute " />
137         </xs l:if>   201         </xs l:if>
138        </xsl :for-each>   202        </xsl :for-each>
139       </xsl: for-each>   203       </xsl: for-each>
140      </xsl:i f>   204      </xsl:i f>
141     </wwlink s:Unsuppor tedLink>   205     </wwlink s:Unsuppor tedLink>
142    </xsl:tem plate>   206    </xsl:tem plate>
143     207  
144     208  
145    <xsl:temp late name= "Links-Res olve-Proje ct">   209    <xsl:temp late name= "Links-Res olve-Proje ct">
146     <xsl:par am name="P aramAllowG roupToGrou p" />   210     <xsl:par am name="P aramAllowG roupToGrou p" />
147     <xsl:par am name="P aramProjec t" />   211     <xsl:par am name="P aramProjec t" />
148     <xsl:par am name="P aramLinks"  />   212     <xsl:par am name="P aramLinks"  />
149     <xsl:par am name="P aramSplitG roupID" />   213     <xsl:par am name="P aramSplitG roupID" />
150     <xsl:par am name="P aramSplitD ocumentID"  />   214     <xsl:par am name="P aramSplitD ocumentID"  />
151     <xsl:par am name="P aramDocume ntLink" />   215     <xsl:par am name="P aramDocume ntLink" />
152     216  
153     <xsl:for -each sele ct="$Param Links[1]">   217     <xsl:for -each sele ct="$Param Links[1]">
154      <xsl:va riable nam e="VarDocu mentLinkUr lToLower"  select="ww string:ToL ower($Para mDocumentL ink/@url)"  />   218      <xsl:va riable nam e="VarDocu mentLinkUr lToLower"  select="ww string:ToL ower($Para mDocumentL ink/@url)"  />
155     219  
156      <!-- In side Same  Document - ->   220      <!-- In side Same  Document - ->
157      <!--                        - ->   221      <!--                        - ->
158      <xsl:va riable nam e="VarSame DocumentPa ragraphKey AsXML">   222      <xsl:va riable nam e="VarSame DocumentPa ragraphKey AsXML">
159       <xsl:i f test="st ring-lengt h($ParamDo cumentLink /@url) = 0 ">   223       <xsl:i f test="st ring-lengt h($ParamDo cumentLink /@url) = 0 ">
160        <wwli nks:Key do cumentID=" {$ParamSpl itDocument ID}" id="{ $ParamDocu mentLink/@ anchor}" / >   224        <wwli nks:Key do cumentID=" {$ParamSpl itDocument ID}" id="{ $ParamDocu mentLink/@ anchor}" / >
161       </xsl: if>   225       </xsl: if>
162      </xsl:v ariable>   226      </xsl:v ariable>
163      <xsl:va riable nam e="VarSame DocumentPa ragraphKey " select=" msxsl:node -set($VarS ameDocumen tParagraph KeyAsXML)/ wwlinks:Ke y" />   227      <xsl:va riable nam e="VarSame DocumentPa ragraphKey " select=" msxsl:node -set($VarS ameDocumen tParagraph KeyAsXML)/ wwlinks:Ke y" />
164     228  
165      <!-- In side Same  Document G roup -->   229      <!-- In side Same  Document G roup -->
166      <!--                               -->   230      <!--                               -->
167      <xsl:va riable nam e="VarGrou pDocumentP aragraphKe yAsXML">   231      <xsl:va riable nam e="VarGrou pDocumentP aragraphKe yAsXML">
168       <xsl:i f test="st ring-lengt h($ParamDo cumentLink /@url) &gt ; 0">   232       <xsl:i f test="st ring-lengt h($ParamDo cumentLink /@url) &gt ; 0">
169        <xsl: variable n ame="VarGr oupDocumen tParagraph WithAnchor " select=" key('wwlin ks-paragra phs-by-id' , $ParamDo cumentLink /@anchor)[ (../@group ID = $Para mSplitGrou pID) and ( ../@docume ntpath-low ercase = $ VarDocumen tLinkUrlTo Lower)]" / >   233        <xsl: variable n ame="VarGr oupDocumen tParagraph WithAnchor " select=" key('wwlin ks-paragra phs-by-id' , $ParamDo cumentLink /@anchor)[ (../@group ID = $Para mSplitGrou pID) and ( ../@docume ntpath-low ercase = $ VarDocumen tLinkUrlTo Lower)]" / >
170     234  
171        <xsl: choose>   235        <xsl: choose>
172         <xsl :when test ="count($V arGroupDoc umentParag raphWithAn chor[1]) =  1">   236         <xsl :when test ="count($V arGroupDoc umentParag raphWithAn chor[1]) =  1">
173          <ww links:Key  documentID ="{$VarGro upDocument ParagraphW ithAnchor[ 1]/../@doc umentID}"  id="{$VarG roupDocume ntParagrap hWithAncho r/@id}" />   237          <ww links:Key  documentID ="{$VarGro upDocument ParagraphW ithAnchor[ 1]/../@doc umentID}"  id="{$VarG roupDocume ntParagrap hWithAncho r/@id}" />
174         </xs l:when>   238         </xs l:when>
175     239  
176         <xsl :otherwise >   240         <xsl :otherwise >
177          <xs l:variable  name="Var GroupDocum entFile" s elect="key ('wwlinks- files-by-d ocumentpat h-lowercas e', $VarDo cumentLink UrlToLower )[@groupID  = $ParamS plitGroupI D]" />   241          <xs l:variable  name="Var GroupDocum entFile" s elect="key ('wwlinks- files-by-d ocumentpat h-lowercas e', $VarDo cumentLink UrlToLower )[@groupID  = $ParamS plitGroupI D]" />
178          <xs l:if test= "count($Va rGroupDocu mentFile[1 ]) = 1">   242          <xs l:if test= "count($Va rGroupDocu mentFile[1 ]) = 1">
179           <w wlinks:Key  documentI D="{$VarGr oupDocumen tFile[1]/@ documentID }" id="{$V arGroupDoc umentFile[ 1]/wwlinks :Paragraph [1]/@id}"  />   243           <w wlinks:Key  documentI D="{$VarGr oupDocumen tFile[1]/@ documentID }" id="{$V arGroupDoc umentFile[ 1]/wwlinks :Paragraph [1]/@id}"  />
180          </x sl:if>   244          </x sl:if>
181         </xs l:otherwis e>   245         </xs l:otherwis e>
182        </xsl :choose>   246        </xsl :choose>
183       </xsl: if>   247       </xsl: if>
184      </xsl:v ariable>   248      </xsl:v ariable>
185      <xsl:va riable nam e="VarGrou pDocumentP aragraphKe y" select= "msxsl:nod e-set($Var GroupDocum entParagra phKeyAsXML )/wwlinks: Key" />   249      <xsl:va riable nam e="VarGrou pDocumentP aragraphKe y" select= "msxsl:nod e-set($Var GroupDocum entParagra phKeyAsXML )/wwlinks: Key" />
186     250  
187      <!-- In side Same  Project -- >   251      <!-- In side Same  Project -- >
188      <!--                       -- >   252      <!--                       -- >
189      <xsl:va riable nam e="VarProj ectDocumen tParagraph KeyAsXML">   253      <xsl:va riable nam e="VarProj ectDocumen tParagraph KeyAsXML">
190       <xsl:i f test="st ring-lengt h($ParamDo cumentLink /@url) &gt ; 0">   254       <xsl:i f test="st ring-lengt h($ParamDo cumentLink /@url) &gt ; 0">
191        <xsl: variable n ame="VarPr ojectDocum entParagra phWithAnch or" select ="key('wwl inks-parag raphs-by-i d', $Param DocumentLi nk/@anchor )[../@docu mentpath-l owercase =  $VarDocum entLinkUrl ToLower]"  />   255        <xsl: variable n ame="VarPr ojectDocum entParagra phWithAnch or" select ="key('wwl inks-parag raphs-by-i d', $Param DocumentLi nk/@anchor )[../@docu mentpath-l owercase =  $VarDocum entLinkUrl ToLower]"  />
192        <xsl: choose>   256        <xsl: choose>
193         <xsl :when test ="count($V arProjectD ocumentPar agraphWith Anchor[1])  = 1">   257         <xsl :when test ="count($V arProjectD ocumentPar agraphWith Anchor[1])  = 1">
194          <ww links:Key  documentID ="{$VarPro jectDocume ntParagrap hWithAncho r[1]/../@d ocumentID} " id="{$Va rProjectDo cumentPara graphWithA nchor/@id} " />   258          <ww links:Key  documentID ="{$VarPro jectDocume ntParagrap hWithAncho r[1]/../@d ocumentID} " id="{$Va rProjectDo cumentPara graphWithA nchor/@id} " />
195         </xs l:when>   259         </xs l:when>
196     260  
197         <xsl :otherwise >   261         <xsl :otherwise >
198          <xs l:variable  name="Var ProjectDoc umentFile"  select="k ey('wwlink s-files-by -documentp ath-lowerc ase', $Var DocumentLi nkUrlToLow er)" />   262          <xs l:variable  name="Var ProjectDoc umentFile"  select="k ey('wwlink s-files-by -documentp ath-lowerc ase', $Var DocumentLi nkUrlToLow er)" />
199          <xs l:if test= "count($Va rProjectDo cumentFile [1]) = 1">   263          <xs l:if test= "count($Va rProjectDo cumentFile [1]) = 1">
200           <w wlinks:Key  documentI D="{$VarPr ojectDocum entFile[1] /@document ID}" id="{ $VarProjec tDocumentF ile[1]/wwl inks:Parag raph[1]/@i d}" />   264           <w wlinks:Key  documentI D="{$VarPr ojectDocum entFile[1] /@document ID}" id="{ $VarProjec tDocumentF ile[1]/wwl inks:Parag raph[1]/@i d}" />
201          </x sl:if>   265          </x sl:if>
202         </xs l:otherwis e>   266         </xs l:otherwis e>
203        </xsl :choose>   267        </xsl :choose>
204       </xsl: if>   268       </xsl: if>
205      </xsl:v ariable>   269      </xsl:v ariable>
206      <xsl:va riable nam e="VarProj ectDocumen tParagraph Key" selec t="msxsl:n ode-set($V arProjectD ocumentPar agraphKeyA sXML)/wwli nks:Key" / >   270      <xsl:va riable nam e="VarProj ectDocumen tParagraph Key" selec t="msxsl:n ode-set($V arProjectD ocumentPar agraphKeyA sXML)/wwli nks:Key" / >
207     271  
208      <!-- Re turn key - ->   272      <!-- Re turn key - ->
209      <!--             - ->   273      <!--             - ->
210      <xsl:va riable nam e="VarSame DocumentPa ragraphLin k" select= "key('wwli nks-paragr aphs-by-id ', $VarSam eDocumentP aragraphKe y/@id)[../ @documentI D = $VarSa meDocument ParagraphK ey/@docume ntID][1]"  />   274      <xsl:va riable nam e="VarSame DocumentPa ragraphLin k" select= "key('wwli nks-paragr aphs-by-id ', $VarSam eDocumentP aragraphKe y/@id)[../ @documentI D = $VarSa meDocument ParagraphK ey/@docume ntID][1]"  />
211      <xsl:va riable nam e="VarGrou pDocumentP aragraphLi nk" select ="key('wwl inks-parag raphs-by-i d', $VarGr oupDocumen tParagraph Key/@id)[. ./@documen tID = $Var GroupDocum entParagra phKey/@doc umentID][1 ]" />   275      <xsl:va riable nam e="VarGrou pDocumentP aragraphLi nk" select ="key('wwl inks-parag raphs-by-i d', $VarGr oupDocumen tParagraph Key/@id)[. ./@documen tID = $Var GroupDocum entParagra phKey/@doc umentID][1 ]" />
212      <xsl:va riable nam e="VarProj ectDocumen tParagraph Link" sele ct="key('w wlinks-par agraphs-by -id', $Var ProjectDoc umentParag raphKey/@i d)[../@doc umentID =  $VarProjec tDocumentP aragraphKe y/@documen tID][1]" / >   276      <xsl:va riable nam e="VarProj ectDocumen tParagraph Link" sele ct="key('w wlinks-par agraphs-by -id', $Var ProjectDoc umentParag raphKey/@i d)[../@doc umentID =  $VarProjec tDocumentP aragraphKe y/@documen tID][1]" / >
213      <xsl:ch oose>   277      <xsl:ch oose>
214       <xsl:w hen test=" count($Var SameDocume ntParagrap hLink) = 1 ">   278       <xsl:w hen test=" count($Var SameDocume ntParagrap hLink) = 1 ">
215        <xsl: call-templ ate name=" Links-Reso lvedLink-E lement">   279        <xsl: call-templ ate name=" Links-Reso lvedLink-E lement">
        280         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />
216         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   281         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
217         <xsl :with-para m name="Pa ramParagra phLink" se lect="$Var SameDocume ntParagrap hLink" />   282         <xsl :with-para m name="Pa ramParagra phLink" se lect="$Var SameDocume ntParagrap hLink" />
218         <xsl :with-para m name="Pa ramType" s elect="'do cument'" / >   283         <xsl :with-para m name="Pa ramType" s elect="'do cument'" / >
219        </xsl :call-temp late>   284        </xsl :call-temp late>
220       </xsl: when>   285       </xsl: when>
221     286  
222       <xsl:w hen test=" count($Var GroupDocum entParagra phLink) =  1">   287       <xsl:w hen test=" count($Var GroupDocum entParagra phLink) =  1">
223        <xsl: call-templ ate name=" Links-Reso lvedLink-E lement">   288        <xsl: call-templ ate name=" Links-Reso lvedLink-E lement">
        289         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />
224         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   290         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
225         <xsl :with-para m name="Pa ramParagra phLink" se lect="$Var GroupDocum entParagra phLink" />   291         <xsl :with-para m name="Pa ramParagra phLink" se lect="$Var GroupDocum entParagra phLink" />
226         <xsl :with-para m name="Pa ramType" s elect="'gr oup'" />   292         <xsl :with-para m name="Pa ramType" s elect="'gr oup'" />
227        </xsl :call-temp late>   293        </xsl :call-temp late>
228       </xsl: when>   294       </xsl: when>
229     295  
230       <xsl:w hen test=" count($Var ProjectDoc umentParag raphLink)  = 1">   296       <xsl:w hen test=" count($Var ProjectDoc umentParag raphLink)  = 1">
231        <xsl: choose>   297        <xsl: choose>
232         <!--  Group to  group link s allowed?  -->   298         <!--  Group to  group link s allowed?  -->
233         <!--                                   -->   299         <!--                                   -->
234         <xsl :when test ="$ParamAl lowGroupTo Group = 't rue'">   300         <xsl :when test ="$ParamAl lowGroupTo Group = 't rue'">
235          <xs l:call-tem plate name ="Links-Re solvedLink -Element">   301          <xs l:call-tem plate name ="Links-Re solvedLink -Element">
        302           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Pa ramDocumen tLink" />
236           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   303           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
237           <x sl:with-pa ram name=" ParamParag raphLink"  select="$V arProjectD ocumentPar agraphLink " />   304           <x sl:with-pa ram name=" ParamParag raphLink"  select="$V arProjectD ocumentPar agraphLink " />
238           <x sl:with-pa ram name=" ParamType"  select="' project'"  />   305           <x sl:with-pa ram name=" ParamType"  select="' project'"  />
239          </x sl:call-te mplate>   306          </x sl:call-te mplate>
240         </xs l:when>   307         </xs l:when>
241     308  
242         <!--  Group to  group disa bled -->   309         <!--  Group to  group disa bled -->
243         <!--                            -->   310         <!--                            -->
244         <xsl :otherwise >   311         <xsl :otherwise >
245          <xs l:call-tem plate name ="Links-Un supported- Element">   312          <xs l:call-tem plate name ="Links-Un supported- Element">
246           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   313           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
247           <x sl:with-pa ram name=" ParamParag raphLink"  select="$V arProjectD ocumentPar agraphLink " />   314           <x sl:with-pa ram name=" ParamParag raphLink"  select="$V arProjectD ocumentPar agraphLink " />
248           <x sl:with-pa ram name=" ParamType"  select="' project'"  />   315           <x sl:with-pa ram name=" ParamType"  select="' project'"  />
249          </x sl:call-te mplate>   316          </x sl:call-te mplate>
250         </xs l:otherwis e>   317         </xs l:otherwis e>
251        </xsl :choose>   318        </xsl :choose>
252       </xsl: when>   319       </xsl: when>
253     320  
254       <!-- U nresolved  link -->   321       <!-- U nresolved  link -->
255       <!--                   -->   322       <!--                   -->
256       <xsl:o therwise>   323       <xsl:o therwise>
257        <xsl: choose>   324        <xsl: choose>
258         <!--  Internal  document l ink -->   325         <!--  Internal  document l ink -->
259         <!--                           -->   326         <!--                           -->
260         <xsl :when test ="(string- length($Pa ramDocumen tLink/@url ) = 0) and  (string-l ength($Par amDocument Link/@anch or &gt; 0) )">   327         <xsl :when test ="(string- length($Pa ramDocumen tLink/@url ) = 0) and  (string-l ength($Par amDocument Link/@anch or &gt; 0) )">
261          <ww links:Unre solvedLink  type="doc ument">   328          <ww links:Unre solvedLink  type="doc ument">
262           <x sl:attribu te name="a nchor">   329           <x sl:attribu te name="a nchor">
263            < xsl:value- of select= "$ParamDoc umentLink/ @anchor" / >   330            < xsl:value- of select= "$ParamDoc umentLink/ @anchor" / >
264           </ xsl:attrib ute>   331           </ xsl:attrib ute>
265          </w wlinks:Unr esolvedLin k>   332          </w wlinks:Unr esolvedLin k>
266         </xs l:when>   333         </xs l:when>
267     334  
268         <!--  External  document l ink -->   335         <!--  External  document l ink -->
269         <!--                           -->   336         <!--                           -->
270         <xsl :when test ="wwuri:Is File($Para mDocumentL ink/@url)" >   337         <xsl :when test ="wwuri:Is File($Para mDocumentL ink/@url)" >
271          <!- - Known do cument ext ension? -- >   338          <!- - Known do cument ext ension? -- >
272          <!- -                             -- >   339          <!- -                             -- >
273          <xs l:variable  name="Var TargetDocu mentPath"  select="ww uri:AsFile Path($Para mDocumentL ink/@url)"  />   340          <xs l:variable  name="Var TargetDocu mentPath"  select="ww uri:AsFile Path($Para mDocumentL ink/@url)"  />
274     341  
275          <xs l:for-each  select="$ ParamProje ct[1]">   342          <xs l:for-each  select="$ ParamProje ct[1]">
276           <x sl:variabl e name="Va rProjectSo urceDocume ntPath" se lect="wwpr ojext:GetD ocumentPat h($ParamSp litDocumen tID)" />   343           <x sl:variabl e name="Va rProjectSo urceDocume ntPath" se lect="wwpr ojext:GetD ocumentPat h($ParamSp litDocumen tID)" />
277           <x sl:variabl e name="Va rSourceDoc umentPath"  select="w wfilesyste m:Combine( wwprojext: GetDocumen tGroupPath ($ParamSpl itDocument ID), wwfil esystem:Ge tFileName( $VarProjec tSourceDoc umentPath) )" />   344           <x sl:variabl e name="Va rSourceDoc umentPath"  select="w wfilesyste m:Combine( wwprojext: GetDocumen tGroupPath ($ParamSpl itDocument ID), wwfil esystem:Ge tFileName( $VarProjec tSourceDoc umentPath) )" />
278     345  
279           <! -- Project  thinks th e file sho uld be a d ocument in  the proje ct -->   346           <! -- Project  thinks th e file sho uld be a d ocument in  the proje ct -->
280           <! --                                                                   -->   347           <! --                                                                   -->
281           <x sl:if test ="wwprojex t:Document Extension( wwfilesyst em:GetExte nsion($Var TargetDocu mentPath)) ">   348           <x sl:if test ="wwprojex t:Document Extension( wwfilesyst em:GetExte nsion($Var TargetDocu mentPath)) ">
282            < wwlinks:Un resolvedLi nk type="d ocument">   349            < wwlinks:Un resolvedLi nk type="d ocument">
283              <xsl:attri bute name= "target">   350              <xsl:attri bute name= "target">
284               <xsl:valu e-of selec t="$VarTar getDocumen tPath" />   351               <xsl:valu e-of selec t="$VarTar getDocumen tPath" />
285              </xsl:attr ibute>   352              </xsl:attr ibute>
286     353  
287              <xsl:if te st="string -length($P aramDocume ntLink/@an chor) &gt;  0">   354              <xsl:if te st="string -length($P aramDocume ntLink/@an chor) &gt;  0">
288               <xsl:attr ibute name ="anchor">   355               <xsl:attr ibute name ="anchor">
289                <xsl:val ue-of sele ct="$Param DocumentLi nk/@anchor " />   356                <xsl:val ue-of sele ct="$Param DocumentLi nk/@anchor " />
290               </xsl:att ribute>   357               </xsl:att ribute>
291              </xsl:if>   358              </xsl:if>
292            < /wwlinks:U nresolvedL ink>   359            < /wwlinks:U nresolvedL ink>
293           </ xsl:if>   360           </ xsl:if>
294          </x sl:for-eac h>   361          </x sl:for-eac h>
295         </xs l:when>   362         </xs l:when>
296        </xsl :choose>   363        </xsl :choose>
297       </xsl: otherwise>   364       </xsl: otherwise>
298      </xsl:c hoose>   365      </xsl:c hoose>
299     </xsl:fo r-each>   366     </xsl:fo r-each>
300    </xsl:tem plate>   367    </xsl:tem plate>
301     368  
302     369  
303    <xsl:temp late name= "Links-Res olve">   370    <xsl:temp late name= "Links-Res olve">
304     <xsl:par am name="P aramAllowB aggage" />   371     <xsl:par am name="P aramAllowB aggage" />
305     <xsl:par am name="P aramAllowG roupToGrou p" />   372     <xsl:par am name="P aramAllowG roupToGrou p" />
306     <xsl:par am name="P aramAllowU RL" />   373     <xsl:par am name="P aramAllowU RL" />
307     <xsl:par am name="P aramBaggag eSplitFile Type" />   374     <xsl:par am name="P aramBaggag eSplitFile Type" />
308     <xsl:par am name="P aramProjec t" />   375     <xsl:par am name="P aramProjec t" />
309     <xsl:par am name="P aramLinks"  />   376     <xsl:par am name="P aramLinks"  />
310     <xsl:par am name="P aramSplits " />   377     <xsl:par am name="P aramSplits " />
311     <xsl:par am name="P aramSplitG roupID" />   378     <xsl:par am name="P aramSplitG roupID" />
312     <xsl:par am name="P aramSplitD ocumentID"  />   379     <xsl:par am name="P aramSplitD ocumentID"  />
313     <xsl:par am name="P aramDocume ntLink" />   380     <xsl:par am name="P aramDocume ntLink" />
314     381  
315     <!-- Fil e or not?  -->   382     <!-- Fil e or not?  -->
316     <!--                -->   383     <!--                -->
317     <xsl:cho ose>   384     <xsl:cho ose>
318      <xsl:wh en test="( string-len gth($Param DocumentLi nk/@url) =  0) or (ww uri:IsFile ($ParamDoc umentLink/ @url))">   385      <xsl:wh en test="( string-len gth($Param DocumentLi nk/@url) =  0) or (ww uri:IsFile ($ParamDoc umentLink/ @url))">
319       <xsl:v ariable na me="VarDoc umentLinkU rlToLower"  select="w wstring:To Lower($Par amDocument Link/@url) " />   386       <xsl:v ariable na me="VarDoc umentLinkU rlToLower"  select="w wstring:To Lower($Par amDocument Link/@url) " />
320     387  
321       <!-- B aggage Fil e? -->   388       <!-- B aggage Fil e? -->
322       <!--                 -->   389       <!--                 -->
323       <xsl:v ariable na me="VarBag gageLinkAs XML">   390       <xsl:v ariable na me="VarBag gageLinkAs XML">
324        <xsl: call-templ ate name=" Links-Reso lve-Baggag e">   391        <xsl: call-templ ate name=" Links-Reso lve-Baggag e">
325         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para mAllowBagg age" />   392         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para mAllowBagg age" />
326         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$ParamB aggageSpli tFileType"  />   393         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$ParamB aggageSpli tFileType"  />
327         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   394         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
328         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />   395         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />
329        </xsl :call-temp late>   396        </xsl :call-temp late>
330       </xsl: variable>   397       </xsl: variable>
331       <xsl:v ariable na me="VarBag gageLink"  select="ms xsl:node-s et($VarBag gageLinkAs XML)/*" />   398       <xsl:v ariable na me="VarBag gageLink"  select="ms xsl:node-s et($VarBag gageLinkAs XML)/*" />
332     399  
333       <xsl:c hoose>   400       <xsl:c hoose>
334        <!--  Baggage fi le? -->   401        <!--  Baggage fi le? -->
335        <!--                 -->   402        <!--                 -->
336        <xsl: when test= "count($Va rBaggageLi nk) &gt; 0 ">   403        <xsl: when test= "count($Va rBaggageLi nk) &gt; 0 ">
337         <xsl :copy-of s elect="$Va rBaggageLi nk" />   404         <xsl :copy-of s elect="$Va rBaggageLi nk" />
338        </xsl :when>   405        </xsl :when>
339     406  
340        <!--  Project li nk? -->   407        <!--  Project li nk? -->
341        <!--                 -->   408        <!--                 -->
342        <xsl: otherwise>   409        <xsl: otherwise>
343         <xsl :call-temp late name= "Links-Res olve-Proje ct">   410         <xsl :call-temp late name= "Links-Res olve-Proje ct">
344          <xs l:with-par am name="P aramAllowG roupToGrou p" select= "$ParamAll owGroupToG roup" />   411          <xs l:with-par am name="P aramAllowG roupToGrou p" select= "$ParamAll owGroupToG roup" />
345          <xs l:with-par am name="P aramProjec t" select= "$GlobalPr oject" />   412          <xs l:with-par am name="P aramProjec t" select= "$GlobalPr oject" />
346          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   413          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
347          <xs l:with-par am name="P aramSplitG roupID" se lect="$Par amSplitGro upID" />   414          <xs l:with-par am name="P aramSplitG roupID" se lect="$Par amSplitGro upID" />
348          <xs l:with-par am name="P aramSplitD ocumentID"  select="$ ParamSplit DocumentID " />   415          <xs l:with-par am name="P aramSplitD ocumentID"  select="$ ParamSplit DocumentID " />
349          <xs l:with-par am name="P aramDocume ntLink" se lect="$Par amDocument Link" />   416          <xs l:with-par am name="P aramDocume ntLink" se lect="$Par amDocument Link" />
350         </xs l:call-tem plate>   417         </xs l:call-tem plate>
351        </xsl :otherwise >   418        </xsl :otherwise >
352       </xsl: choose>   419       </xsl: choose>
353      </xsl:w hen>   420      </xsl:w hen>
354     421  
355      <xsl:ot herwise>   422      <xsl:ot herwise>
356       <!-- N ot a file  -->   423       <!-- N ot a file  -->
357       <!--              -->   424       <!--              -->
358       <xsl:c hoose>   425       <xsl:c hoose>
359        <xsl: when test= "$ParamAll owURL = 't rue'">   426        <xsl: when test= "$ParamAll owURL = 't rue'">
360         <wwl inks:Resol vedLink ty pe="url">   427         <wwl inks:Resol vedLink ty pe="url">
361          <xs l:attribut e name="ur l">   428          <xs l:attribut e name="ur l">
362           <x sl:value-o f select=" $ParamDocu mentLink/@ url" />   429           <x sl:value-o f select=" $ParamDocu mentLink/@ url" />
363     430  
364           <x sl:if test ="string-l ength($Par amDocument Link/@anch or) &gt; 0 ">   431           <x sl:if test ="string-l ength($Par amDocument Link/@anch or) &gt; 0 ">
365            < xsl:text># </xsl:text >   432            < xsl:text># </xsl:text >
366            < xsl:value- of select= "$ParamDoc umentLink/ @anchor" / >   433            < xsl:value- of select= "$ParamDoc umentLink/ @anchor" / >
367           </ xsl:if>   434           </ xsl:if>
368          </x sl:attribu te>   435          </x sl:attribu te>
        436  
        437          <!- - @title a ttribute - ->
        438          <!- -                   - ->
        439          <xs l:call-tem plate name ="Link-Des cription-A s-Title-At tribute">
        440           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Pa ramDocumen tLink" />
        441          </x sl:call-te mplate>
369         </ww links:Reso lvedLink>   442         </ww links:Reso lvedLink>
370        </xsl :when>   443        </xsl :when>
371     444  
372        <xsl: otherwise>   445        <xsl: otherwise>
373         <wwl inks:Unsup portedLink  type="url ">   446         <wwl inks:Unsup portedLink  type="url ">
374          <xs l:attribut e name="ur l">   447          <xs l:attribut e name="ur l">
375           <x sl:value-o f select=" $ParamDocu mentLink/@ url" />   448           <x sl:value-o f select=" $ParamDocu mentLink/@ url" />
376     449  
377           <x sl:if test ="string-l ength($Par amDocument Link/@anch or) &gt; 0 ">   450           <x sl:if test ="string-l ength($Par amDocument Link/@anch or) &gt; 0 ">
378            < xsl:text># </xsl:text >   451            < xsl:text># </xsl:text >
379            < xsl:value- of select= "$ParamDoc umentLink/ @anchor" / >   452            < xsl:value- of select= "$ParamDoc umentLink/ @anchor" / >
380           </ xsl:if>   453           </ xsl:if>
381          </x sl:attribu te>   454          </x sl:attribu te>
382         </ww links:Unsu pportedLin k>   455         </ww links:Unsu pportedLin k>
383        </xsl :otherwise >   456        </xsl :otherwise >
384       </xsl: choose>   457       </xsl: choose>
385      </xsl:o therwise>   458      </xsl:o therwise>
386     </xsl:ch oose>   459     </xsl:ch oose>
387    </xsl:tem plate>   460    </xsl:tem plate>
388   </xsl:styl esheet>   461   </xsl:styl esheet>