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

38.1 Files compared

# Location File Last Modified
1 Fri Nov 21 17:21:45 2008 UTC
2 C:\Documents and Settings\allums\Desktop\2008.2.20597.p2\Formats\Shared\common\images utilities.xsl Wed Jul 2 16:55:22 2008 UTC

38.2 Comparison summary

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

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

38.4 Active regular expressions

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

38.5 Comparison detail

        1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
        2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Engine-Spl its-Schema "
        3                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
        4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
        5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
        6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
        7                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
        8                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
        9                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"
        10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
        11                                    xmlns:wwim ages="urn: WebWorks-I mages-Sche ma"
        12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
        13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
        14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
        15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
        16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
        17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
        18                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
        19                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"
        20                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
        21                                    exclude-re sult-prefi xes="xsl m sxsl wwspl its wwmode  wwfiles w wdoc wwbeh aviors wwp roject wwi mages wwpr ogress wwl og wwfiles ystem wwur i wwstring  wwfilesex t wwprojex t wwimagin g wwexsldo c"
        22   >
        23    <xsl:key  name="wwim ages-types -by-name"  match="wwi mages:Type " use="@na me" />
        24  
        25  
        26    <xsl:temp late name= "Images-Ma xSizeOptio n">
        27     <xsl:par am name="P aramMaxSiz eOptionVal ue" />
        28  
        29     <xsl:cho ose>
        30      <xsl:wh en test="$ ParamMaxSi zeOptionVa lue = 'non e'">
        31       <xsl:v alue-of se lect="0" / >
        32      </xsl:w hen>
        33  
        34      <xsl:wh en test="( string-len gth($Param MaxSizeOpt ionValue)  &gt; 0) an d (number( $ParamMaxS izeOptionV alue) &gt;  0)">
        35       <xsl:v alue-of se lect="numb er($ParamM axSizeOpti onValue)"  />
        36      </xsl:w hen>
        37  
        38      <xsl:ot herwise>
        39       <xsl:v alue-of se lect="0" / >
        40      </xsl:o therwise>
        41     </xsl:ch oose>
        42    </xsl:tem plate>
        43  
        44  
        45    <xsl:temp late name= "Images-WI FAllowsByR eference">
        46     <xsl:par am name="P aramFrame"  />
        47  
        48     <!-- WIF  structure  allows fo r by refer ence graph ic             -->
        49     <!--                                                                -->
        50     <!--  1.  By refere nce facet  and no non -marker ne sted conte nt. -->
        51     <!--  2.  Document  only facet  with nest ed content                -->
        52     <!--      containin g only a s ingle fram e with a                  -->
        53     <!--      by refere nce facet  and no non -marker ne sted conte nt. -->
        54     <!--                                                                -->
        55     <xsl:var iable name ="VarPossi bleByRefer enceFrame" >
        56      <xsl:ch oose>
        57       <!-- B y referenc e facet ex ists -->
        58       <!--                              -->
        59       <xsl:w hen test=" count($Par amFrame/ww doc:Frame/ wwdoc:Face ts/wwdoc:F acet[@type  = 'by-ref erence'])  &gt; 0">
        60        <xsl: call-templ ate name=" CheckByRef Content">
        61         <xsl :with-para m name="Pa ramContent " select=" $ParamFram e/wwdoc:Fr ame/wwdoc: Content" / >
        62        </xsl :call-temp late>
        63       </xsl: when>
        64  
        65       <!-- N ested cont ent exists  -->
        66       <!--                          -->
        67       <xsl:o therwise>
        68        <!--  Only 'docu ment' face ts exist - ->
        69        <!--                                 - ->
        70        <xsl: if test="c ount($Para mFrame/wwd oc:Frame/w wdoc:Facet s/wwdoc:Fa cet[@type  = 'documen t']) = cou nt($ParamF rame/wwdoc :Frame/wwd oc:Facets/ wwdoc:Face t)">
        71         <!--  Content c ontains a  single fra me only -- >
        72         <!--                                          -- >
        73         <xsl :if test=" count($Par amFrame/ww doc:Frame/ wwdoc:Cont ent/wwdoc: *) = count ($ParamFra me/wwdoc:F rame/wwdoc :Content/w wdoc:Frame )">
        74          <!- - By refer ence facet  exists -- >
        75          <!- -                             -- >
        76          <xs l:variable  name="Var FirstNeste dFrame" se lect="$Par amFrame/ww doc:Frame/ wwdoc:Cont ent/wwdoc: Frame[1]"  />
        77          <xs l:if test= "count($Va rFirstNest edFrame/ww doc:Facets /wwdoc:Fac et[@type =  'by-refer ence']) &g t; 0">
        78           <x sl:call-te mplate nam e="CheckBy RefContent ">
        79            < xsl:with-p aram name= "ParamCont ent" selec t="$ParamF rame/wwdoc :Frame/wwd oc:Content /wwdoc:Fra me[positio n() &gt; 1 ]" />
        80           </ xsl:call-t emplate>
        81          </x sl:if>
        82         </xs l:if>
        83        </xsl :if>
        84       </xsl: otherwise>
        85      </xsl:c hoose>
        86     </xsl:va riable>
        87  
        88     <!-- By  reference?  -->
        89     <!--                 -->
        90     <xsl:val ue-of sele ct="$VarPo ssibleByRe ferenceFra me = strin g(true())"  />
        91    </xsl:tem plate>
        92  
        93  
        94    <xsl:temp late name= "CheckByRe fContent">
        95     <xsl:par am name="P aramConten t" />
        96  
        97     <!-- Ens ure conten t block is  compatibl e -->
        98     <!--                                        -->
        99     <xsl:var iable name ="VarCheck ByRefConte nt">
        100      <xsl:ap ply-templa tes select ="$ParamCo ntent" mod e="wwmode: CheckByRef Content" / >
        101     </xsl:va riable>
        102  
        103     <xsl:cho ose>
        104      <!-- Ne sted conte nt is comp atable -->
        105      <!--                                 -->
        106      <xsl:wh en test="s tring-leng th($VarChe ckByRefCon tent) = 0" >
        107       <xsl:v alue-of se lect="true ()" />
        108      </xsl:w hen>
        109  
        110      <!-- Ne sted conte nt is inco mpatable - ->
        111      <!--                                   - ->
        112      <xsl:ot herwise>
        113       <xsl:v alue-of se lect="fals e()" />
        114      </xsl:o therwise>
        115     </xsl:ch oose>
        116    </xsl:tem plate>
        117  
        118  
        119    <xsl:temp late match ="wwdoc:Co ntent | ww doc:Paragr aph" mode= "wwmode:Ch eckByRefCo ntent">
        120     <xsl:par am name="P aramElemen t" select= "." />
        121  
        122     <xsl:cho ose>
        123      <!-- Fi rst one al lowed -->
        124      <!--                     -->
        125      <xsl:wh en test="c ount($Para mElement/p receding-s ibling::ww doc:*[loca l-name() =  local-nam e($ParamEl ement)]) =  0">
        126       <xsl:a pply-templ ates mode= "wwmode:Ch eckByRefCo ntent" />
        127      </xsl:w hen>
        128  
        129      <!-- No t allowed  -->
        130      <!--               -->
        131      <xsl:ot herwise>
        132       <xsl:t ext>NA</xs l:text>
        133      </xsl:o therwise>
        134     </xsl:ch oose>
        135    </xsl:tem plate>
        136  
        137  
        138    <xsl:temp late match ="wwdoc:Fr ame | wwdo c:TextRun"  mode="wwm ode:CheckB yRefConten t">
        139     <!-- All owed -->
        140     <!--          -->
        141     <xsl:app ly-templat es mode="w wmode:Chec kByRefCont ent" />
        142    </xsl:tem plate>
        143  
        144  
        145    <xsl:temp late match ="wwdoc:Al iases | ww doc:Attrib ute | wwdo c:Descript ion | wwdo c:Marker |  wwdoc:Lin k | wwdoc: Style" mod e="wwmode: CheckByRef Content">
        146     <!-- All owed -->
        147     <!--          -->
        148    </xsl:tem plate>
        149  
        150  
        151    <xsl:temp late match ="wwdoc:Fa cets" mode ="wwmode:C heckByRefC ontent">
        152     <xsl:par am name="P aramFacets " select=" ." />
        153  
        154     <xsl:if  test="coun t($ParamFa cets/wwdoc :Facet[@ty pe != 'doc ument']) & gt; 0">
        155      <!-- No t allowed  -->
        156      <!--               -->
        157      <xsl:te xt>NA</xsl :text>
        158     </xsl:if >
        159    </xsl:tem plate>
        160  
        161  
        162    <xsl:temp late match ="wwdoc:Nu mber" mode ="wwmode:C heckByRefC ontent">
        163     <!-- All owed -->
        164     <!--          -->
        165     <xsl:app ly-templat es mode="w wmode:Chec kByRefCont ent" />
        166    </xsl:tem plate>
        167  
        168  
        169    <xsl:temp late match ="wwdoc:Te xt[string- length(@va lue) = 0]"  mode="wwm ode:CheckB yRefConten t">
        170     <!-- All owed -->
        171     <!--          -->
        172    </xsl:tem plate>
        173  
        174  
        175    <xsl:temp late match ="wwdoc:*"  mode="wwm ode:CheckB yRefConten t">
        176     <!-- Not  allowed - ->
        177     <!--              - ->
        178     <xsl:tex t>NA</xsl: text>
        179    </xsl:tem plate>
        180  
        181  
        182    <xsl:temp late match ="text() |  comment()  | process ing-instru ction()" m ode="wwmod e:CheckByR efContent" >
        183     <!-- Not hing to do  -->
        184     <!--                 -->
        185    </xsl:tem plate>
        186  
        187  
        188    <xsl:temp late name= "Images-By ReferenceS ourcePath" >
        189     <xsl:par am name="P aramFrame"  />
        190  
        191     <xsl:var iable name ="VarByRef erenceFace ts"  selec t="$ParamF rame/wwdoc :Frame//ww doc:Facet[ @type = 'b y-referenc e']" />
        192     <xsl:cho ose>
        193      <xsl:wh en test="c ount($VarB yReference Facets[1])  &gt; 0">
        194       <xsl:v ariable na me="VarByR eferenceFa cet" selec t="$VarByR eferenceFa cets[1]" / >
        195  
        196       <xsl:v alue-of se lect="$Var ByReferenc eFacet/wwd oc:Attribu te[@name =  'path']/@ value" />
        197      </xsl:w hen>
        198  
        199      <xsl:ot herwise>
        200       <xsl:v alue-of se lect="''"  />
        201      </xsl:o therwise>
        202     </xsl:ch oose>
        203    </xsl:tem plate>
        204  
        205  
        206    <xsl:temp late name= "Images-Im ageScaleMa rkerValue" >
        207     <xsl:par am name="P aramFrameB ehavior" / >
        208  
        209      <!-- Ge t image-sc ale marker  -->
        210      <!--                           -->
        211      <xsl:va riable nam e="VarImag eScaleBeha viorMarker s" select= "$ParamFra meBehavior //wwbehavi ors:Marker [@behavior  = 'image- scale']" / >
        212      <xsl:if  test="cou nt($VarIma geScaleBeh aviorMarke rs) &gt; 0 ">
        213       <xsl:v ariable na me="VarIma geScaleMar kerValue">
        214        <!--  Use last o ne defined  -->
        215        <!--                         -->
        216        <xsl: for-each s elect="$Va rImageScal eBehaviorM arkers[cou nt($VarIma geScaleBeh aviorMarke rs)]">
        217         <xsl :variable  name="VarI mageScaleB ehaviorMar ker" selec t="." />
        218     
        219         <xsl :for-each  select="$V arImageSca leBehavior Marker/wwd oc:Marker/ wwdoc:Text Run/wwdoc: Text">
        220          <xs l:value-of  select="@ value" />
        221         </xs l:for-each >
        222        </xsl :for-each>
        223       </xsl: variable>
        224     
        225       <xsl:i f test="(s tring-leng th($VarIma geScaleMar kerValue)  &gt; 0) an d (number( $VarImageS caleMarker Value) &gt ; 0)">
        226        <xsl: value-of s elect="num ber($VarIm ageScaleMa rkerValue) " />
        227       </xsl: if>
        228      </xsl:i f>
        229    </xsl:tem plate>
        230  
        231  
        232    <xsl:temp late name= "Images-Ve ctorImageF ormat">
        233     <xsl:par am name="P aramImageI nfo" />
        234  
        235     <xsl:cho ose>
        236      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' ">
        237       <xsl:v alue-of se lect="true ()" />
        238      </xsl:w hen>
        239  
        240      <xsl:wh en test="s tring-leng th($ParamI mageInfo/@ format) =  0">
        241       <xsl:v alue-of se lect="fals e()" />
        242      </xsl:w hen>
        243  
        244      <xsl:ot herwise>
        245       <xsl:v alue-of se lect="fals e()" />
        246      </xsl:o therwise>
        247     </xsl:ch oose>
        248    </xsl:tem plate>
        249  
        250  
        251    <xsl:temp late name= "Images-Ra sterImageF ormat">
        252     <xsl:par am name="P aramImageI nfo" />
        253  
        254     <xsl:cho ose>
        255      <xsl:wh en test="$ ParamImage Info/@form at = 'bmp' ">
        256       <xsl:v alue-of se lect="true ()" />
        257      </xsl:w hen>
        258  
        259      <xsl:wh en test="$ ParamImage Info/@form at = 'gif' ">
        260       <xsl:v alue-of se lect="true ()" />
        261      </xsl:w hen>
        262  
        263      <xsl:wh en test="$ ParamImage Info/@form at = 'jpeg '">
        264       <xsl:v alue-of se lect="true ()" />
        265      </xsl:w hen>
        266  
        267      <xsl:wh en test="$ ParamImage Info/@form at = 'png' ">
        268       <xsl:v alue-of se lect="true ()" />
        269      </xsl:w hen>
        270  
        271      <xsl:wh en test="$ ParamImage Info/@form at = 'tiff '">
        272       <xsl:v alue-of se lect="true ()" />
        273      </xsl:w hen>
        274  
        275      <xsl:wh en test="s tring-leng th($ParamI mageInfo/@ format) =  0">
        276       <xsl:v alue-of se lect="fals e()" />
        277      </xsl:w hen>
        278  
        279      <xsl:ot herwise>
        280       <xsl:v alue-of se lect="fals e()" />
        281      </xsl:o therwise>
        282     </xsl:ch oose>
        283    </xsl:tem plate>
        284  
        285  
        286    <xsl:temp late name= "Images-By RefImageRe quiresScal ing">
        287     <xsl:par am name="P aramContex tRule" />
        288     <xsl:par am name="P aramFrameB ehavior" / >
        289     <xsl:par am name="P aramImageI nfo" />
        290  
        291     <!-- Ima ge require s scaling  when:                                                       -->
        292     <!--                                                                                       -->
        293     <!--  1.  Image sca le marker  found with  value oth er than 10 0%                         -->
        294     <!--  2.  Rule defi nes scalin g value an d this val ue is not  100%                       -->
        295     <!--  3.  Raster im age width/ height exc eeds max w idth/heigh t limits d efined by  rule -->
        296     <!--                                                                                       -->
        297  
        298     <!-- Acc ess image  scale mark er -->
        299     <!--                              -->
        300     <xsl:var iable name ="VarImage Scale">
        301      <xsl:ca ll-templat e name="Im ages-Image ScaleMarke rValue">
        302       <xsl:w ith-param  name="Para mFrameBeha vior" sele ct="$Param FrameBehav ior" />
        303      </xsl:c all-templa te>
        304     </xsl:va riable>
        305  
        306     <xsl:cho ose>
        307      <!-- Sc aled! -->
        308      <!--          -->
        309      <xsl:wh en test="( string-len gth($VarIm ageScale)  > 0) and ( number($Va rImageScal e) != (100 ))">
        310       <xsl:v alue-of se lect="true ()" />
        311      </xsl:w hen>
        312  
        313      <!-- Ma y be scale d -->
        314      <!--                 -->
        315      <xsl:ot herwise>
        316       <!-- A ccess scal e option f rom rule - ->
        317       <!--                                  - ->
        318       <xsl:v ariable na me="VarSca leOption"  select="$P aramContex tRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' scale']/@V alue" />
        319  
        320       <xsl:c hoose>
        321        <!--  Scaled! -- >
        322        <!--          -- >
        323        <xsl: when test= "(string-l ength($Var ScaleOptio n) &gt; 0)  and ($Var ScaleOptio n != 'none ') and (nu mber($VarS caleOption ) != 100)" >
        324         <xsl :value-of  select="tr ue()" />
        325        </xsl :when>
        326  
        327        <!--  May be sca led -->
        328        <!--                 -->
        329        <xsl: otherwise>
        330         <!--  Scaling d ue to size  limits? - ->
        331         <!--                                - ->
        332         <xsl :variable  name="VarM axWidthOpt ion" selec t="$ParamC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'max-w idth']/@Va lue" />
        333         <xsl :variable  name="VarM axHeightOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'max- height']/@ Value" />
        334  
        335         <xsl :choose>
        336          <!- - Size lim its define d -->
        337          <!- -                       -->
        338          <xs l:when tes t="(string -length($V arMaxWidth Option) &g t; 0) and  (string-le ngth($VarM axHeightOp tion) &gt;  0) and ($ VarMaxWidt hOption !=  'none') a nd ($VarMa xHeightOpt ion != 'no ne') and ( (number($V arMaxWidth Option) &g t; 0) and  (number($V arMaxHeigh tOption) & gt; 0))">
        339           <! -- Raster  image form at? -->
        340           <! --                        -->
        341           <x sl:variabl e name="Va rRasterIma geFormatAs Text">
        342            < xsl:call-t emplate na me="Images -RasterIma geFormat">
        343              <xsl:with- param name ="ParamIma geInfo" se lect="$Par amImageInf o" />
        344            < /xsl:call- template>
        345           </ xsl:variab le>
        346           <x sl:variabl e name="Va rRasterIma geFormat"  select="$V arRasterIm ageFormatA sText = st ring(true( ))" />
        347  
        348           <x sl:choose>
        349            < xsl:when t est="$VarR asterImage Format">
        350              <!-- Deter mine image  width/hei ght -->
        351              <!--                                 -->
        352              <xsl:varia ble name=" VarWidth"  select="nu mber($Para mImageInfo /@width)"  />
        353              <xsl:varia ble name=" VarHeight"  select="n umber($Par amImageInf o/@height) " />
        354  
        355              <xsl:choos e>
        356               <!-- Scal ed! -->
        357               <!--          -->
        358               <xsl:when  test="($V arWidth &g t; number( $VarMaxWid thOption))  and ($Var Height &gt ; number($ VarMaxHeig htOption)) ">
        359                <xsl:val ue-of sele ct="true() " />
        360               </xsl:whe n>
        361       
        362               <!-- Not  scaled -->
        363               <!--             -->
        364               <xsl:othe rwise>
        365                <xsl:val ue-of sele ct="false( )" />
        366               </xsl:oth erwise>
        367              </xsl:choo se>
        368            < /xsl:when>
        369  
        370            < !-- Vector  image for mat, assum e scaling  is require d -->
        371            < !--                                                      -->
        372            < xsl:otherw ise>
        373              <xsl:value -of select ="true()"  />
        374            < /xsl:other wise>
        375           </ xsl:choose >
        376          </x sl:when>
        377  
        378          <!- - Not scal ed -->
        379          <!- -             -->
        380          <xs l:otherwis e>
        381           <x sl:value-o f select=" false()" / >
        382          </x sl:otherwi se>
        383         </xs l:choose>
        384        </xsl :otherwise >
        385       </xsl: choose>
        386      </xsl:o therwise>
        387     </xsl:ch oose>
        388    </xsl:tem plate>
        389  
        390  
        391    <xsl:temp late name= "Images-Al lowByRefer ence">
        392     <xsl:par am name="P aramAllowe dByReferen ceTypes" / >
        393     <xsl:par am name="P aramByRefe renceSourc ePath" />
        394     <xsl:par am name="P aramContex tRule" />
        395     <xsl:par am name="P aramFrameB ehavior" / >
        396  
        397     <!-- By  reference  frame requ ires:                                    -- >
        398     <!--                                                                    -- >
        399     <!--  1.  Graphic r ule allows  by-ref                                  -- >
        400     <!--  2.  Image one  of:                                                -- >
        401     <!--      a. Unscal ed, output  supports  SVG and SV G by-ref e nabled  -- >
        402     <!--      b. Unscal ed, output  supports  source ras ter image  format  -- >
        403     <!--                                                                    -- >
        404  
        405     <!-- Rul e allows b y referenc e? -->
        406     <!--                              -->
        407     <xsl:var iable name ="VarAllow ByReferenc eGraphicsO ption" sel ect="$Para mContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'by- reference- graphics'] /@Value" / >
        408     <xsl:var iable name ="VarAllow ByReferenc eGraphics"  select="( string-len gth($VarAl lowByRefer enceGraphi csOption)  = 0) or ($ VarAllowBy ReferenceG raphicsOpt ion = 'tru e')" />
        409     <xsl:if  test="$Var AllowByRef erenceGrap hics">
        410      <!-- Ac cess image  info -->
        411      <!--                     -->
        412      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($ParamB yReference SourcePath )" />
        413  
        414      <!-- Sc aling requ ired? -->
        415      <!--                     -->
        416      <xsl:va riable nam e="VarScal ingRequire dAsText">
        417       <xsl:c all-templa te name="I mages-ByRe fImageRequ iresScalin g">
        418        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " />
        419        <xsl: with-param  name="Par amFrameBeh avior" sel ect="$Para mFrameBeha vior" />
        420        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" />
        421       </xsl: call-templ ate>
        422      </xsl:v ariable>
        423      <xsl:va riable nam e="VarScal ingRequire d" select= "$VarScali ngRequired AsText = s tring(true ())" />
        424  
        425      <xsl:ch oose>
        426       <!-- S caling req uired -->
        427       <!--                    -->
        428       <xsl:w hen test=" $VarScalin gRequired" >
        429        <xsl: value-of s elect="fal se()" />
        430       </xsl: when>
        431  
        432       <!-- N o scaling  required - ->
        433       <!--                       - ->
        434       <xsl:o therwise>
        435        <!--  Allow by r eference v ector imag es? -->
        436        <!--                                       -->
        437        <xsl: variable n ame="VarBy ReferenceV ectorOptio n" select= "$ParamCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'by-refe rence-vect or']/@Valu e" />
        438        <xsl: variable n ame="VarBy ReferenceV ector" sel ect="$VarB yReference VectorOpti on = 'true '" />
        439        <xsl: choose>
        440         <!--  SVG by-re f image fo und and al lowed -->
        441         <!--                                        -->
        442         <xsl :when test ="($VarByR eferenceVe ctor) and  ($VarImage Info/@form at = 'svg' )">
        443          <!- - Check fo r thumbnai l size res trictions  -->
        444          <!- -                                           -->
        445          <xs l:variable  name="Var ThumbnailW idthOption " select=" $ParamCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'thumbnai l-width']/ @Value" />
        446          <xs l:variable  name="Var ThumbnailH eightOptio n" select= "$ParamCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'thumbna il-height' ]/@Value"  />
        447          <xs l:choose>
        448           <! -- Thumbna il width/h eight defi ned -->
        449           <! --                                   -->
        450           <x sl:when te st="(strin g-length($ VarThumbna ilWidthOpt ion) &gt;  0) and (st ring-lengt h($VarThum bnailHeigh tOption) & gt; 0) and  ($VarThum bnailWidth Option !=  'none') an d ($VarThu mbnailHeig htOption ! = 'none')  and ((numb er($VarThu mbnailWidt hOption) & gt; 0) and  (number($ VarThumbna ilHeightOp tion) &gt;  0))">
        451            < xsl:value- of select= "false()"  />
        452           </ xsl:when>
        453  
        454           <! -- By-refe rence imag e allowed  -->
        455           <! --                               -->
        456           <x sl:otherwi se>
        457            < xsl:value- of select= "true()" / >
        458           </ xsl:otherw ise>
        459          </x sl:choose>
        460         </xs l:when>
        461  
        462         <!--  Non-SVG i mage -->
        463         <!--                 -->
        464         <xsl :otherwise >
        465          <!- - Allowed  image form at? -->
        466          <!- -                         -->
        467          <xs l:variable  name="Var ImageForma tSearchRes ult">
        468           <x sl:for-eac h select=" $ParamAllo wedByRefer enceTypes[ 1]">
        469            < xsl:for-ea ch select= "key('wwim ages-types -by-name',  $VarImage Info/@form at)[1]">
        470              <xsl:value -of select ="$VarImag eInfo/@for mat" />
        471            < /xsl:for-e ach>
        472           </ xsl:for-ea ch>
        473          </x sl:variabl e>
        474          <xs l:variable  name="Var AllowedIma geFormat"  select="st ring-lengt h($VarImag eFormatSea rchResult)  &gt; 0" / >
        475  
        476          <xs l:choose>
        477           <! -- Allowed  image for mat -->
        478           <! --                        -->
        479           <x sl:when te st="$VarAl lowedImage Format">
        480            < xsl:value- of select= "true()" / >
        481           </ xsl:when>
        482  
        483           <! -- Unsuppo rted image  format -- >
        484           <! --                            -- >
        485           <x sl:otherwi se>
        486            < xsl:value- of select= "false()"  />
        487           </ xsl:otherw ise>
        488          </x sl:choose>
        489         </xs l:otherwis e>
        490        </xsl :choose>
        491       </xsl: otherwise>
        492      </xsl:c hoose>
        493     </xsl:if >
        494    </xsl:tem plate>
        495   </xsl:styl esheet>