Warning, file /frameworks/syntax-highlighting/autotests/html/highlight.xsl.dark.html was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>highlight.xsl</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (xslt) - Theme (Breeze Dark)"/>
0006 </head><body style="background-color:#232629;color:#cfcfc2"><pre>
0007 <span style="color:#8e44ad;">&lt;?</span><span style="font-weight:bold;">xml</span><span style="color:#27ae60;"> version</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;1.0&quot;</span><span style="color:#27ae60;"> encoding</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;iso-8859-15&quot;</span><span style="color:#8e44ad;">?&gt;</span>
0008 
0009 <span style="color:#7a7c7d;">&lt;!--</span>
0010 <span style="color:#7a7c7d;">   This file is freely distributable, created by Wilbert Berendsen (wbsoft@xs4all.nl)</span>
0011 
0012 <span style="color:#7a7c7d;">   This is just a simple XSLT file that converts some HTML pages to a XBEL bookmarklist.</span>
0013 <span style="color:#7a7c7d;">   It is included here to test the new XSLT highlighting by Peter Lammich.</span>
0014 <span style="color:#7a7c7d;">   </span>
0015 <span style="color:#7a7c7d;">   </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#7a7c7d;">: add better test file.</span>
0016 <span style="color:#7a7c7d;">--&gt;</span>
0017 
0018 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:stylesheet</span><span style="color:#27ae60;"> xmlns:xsl</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;http://www.w3.org/1999/XSL/Transform&quot;</span><span style="color:#27ae60;"> version</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;1.0&quot;</span>
0019 <span style="color:#27ae60;">xmlns:h</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="font-weight:bold;">&gt;</span>
0020 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:output</span><span style="color:#27ae60;"> method</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;xml&quot;</span><span style="color:#27ae60;"> encoding</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;iso-8859-15&quot;</span><span style="color:#27ae60;"> indent</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;yes&quot;</span>
0021 <span style="color:#27ae60;"> doctype-public</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML&quot;</span>
0022 <span style="color:#27ae60;"> doctype-system</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;http://www.python.org/topics/xml/dtds/xbel-1.0.dtd&quot;</span>
0023 <span style="font-weight:bold;">/&gt;</span>
0024 
0025 <span style="color:#7a7c7d;">&lt;!-- main --&gt;</span>
0026 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:template</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">match</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;/&quot;</span><span style="font-weight:bold;">&gt;</span>
0027 <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">xbel</span><span style="font-weight:bold;">&gt;&lt;</span><span style="font-weight:bold;">folder</span><span style="font-weight:bold;">&gt;&lt;</span><span style="font-weight:bold;">title</span><span style="font-weight:bold;">&gt;</span>Linux at Home Links<span style="font-weight:bold;">&lt;/</span><span style="font-weight:bold;">title</span><span style="font-weight:bold;">&gt;</span>
0028 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;//*[</span><span style="color:#27aeae;font-style:italic;">@id</span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;">'maincontents'</span><span style="color:#27aeae;">]//h:li&quot;</span><span style="font-weight:bold;">&gt;</span>
0029   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:variable</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;f&quot;</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">document</span><span style="color:#27aeae;">(h:a/</span><span style="color:#27aeae;font-style:italic;">@href</span><span style="color:#27aeae;">)/h:html&quot;</span><span style="font-weight:bold;">/&gt;</span>
0030   <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">folder</span><span style="font-weight:bold;">&gt;</span>
0031   <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">title</span><span style="font-weight:bold;">&gt;&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;h:a/h:strong&quot;</span><span style="font-weight:bold;">/&gt;&lt;/</span><span style="font-weight:bold;">title</span><span style="font-weight:bold;">&gt;</span>
0032   <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">desc</span><span style="font-weight:bold;">&gt;&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">normalize-space</span><span style="color:#27aeae;">(h:a/</span><span style="color:#27aeae;font-weight:bold;">text</span><span style="color:#27aeae;">())&quot;</span><span style="font-weight:bold;">/&gt;&lt;/</span><span style="font-weight:bold;">desc</span><span style="font-weight:bold;">&gt;</span>
0033   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-style:italic;">$f</span><span style="color:#27aeae;">//h:div[</span><span style="color:#27aeae;font-style:italic;">@id</span><span style="color:#27aeae;">=</span><span style="color:#f44f4f;">'maincontents'</span><span style="color:#27aeae;">]&quot;</span><span style="font-weight:bold;">&gt;</span>
0034   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:call-template</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;getbookmarks&quot;</span><span style="font-weight:bold;">/&gt;</span>
0035   <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="font-weight:bold;">&gt;</span>
0036   
0037   <span style="font-weight:bold;">&lt;/</span><span style="font-weight:bold;">folder</span><span style="font-weight:bold;">&gt;</span>
0038 <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="font-weight:bold;">&gt;</span>
0039 <span style="font-weight:bold;">&lt;/</span><span style="font-weight:bold;">folder</span><span style="font-weight:bold;">&gt;&lt;/</span><span style="font-weight:bold;">xbel</span><span style="font-weight:bold;">&gt;</span>
0040 <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:template</span><span style="font-weight:bold;">&gt;</span>
0041 <span style="color:#7a7c7d;">&lt;!-- end of main --&gt;</span>
0042 
0043 <span style="color:#7a7c7d;">&lt;!-- get bookmarks from a page --&gt;</span>
0044 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:template</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;getbookmarks&quot;</span><span style="font-weight:bold;">&gt;</span>
0045 
0046 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0047   <span style="color:#7a7c7d;">&lt;!-- harvest links from p or li elements --&gt;</span>
0048   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">test</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-style:italic;">self::</span><span style="color:#27aeae;">h:li or </span><span style="color:#27aeae;font-style:italic;">self::</span><span style="color:#27aeae;">h:p&quot;</span><span style="font-weight:bold;">&gt;</span>
0049     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:variable</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;t&quot;</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">normalize-space</span><span style="color:#27aeae;">()&quot;</span><span style="font-weight:bold;">/&gt;</span>
0050     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;.//h:a[1]&quot;</span><span style="font-weight:bold;">&gt;</span>
0051       <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:call-template</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;bookmark&quot;</span><span style="font-weight:bold;">&gt;</span>
0052         <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:with-param</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;desc&quot;</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-style:italic;">$t</span><span style="color:#27aeae;">&quot;</span><span style="font-weight:bold;">/&gt;</span>
0053       <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:call-template</span><span style="font-weight:bold;">&gt;</span>
0054     <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="font-weight:bold;">&gt;</span>
0055     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;.//h:a[</span><span style="color:#27aeae;font-weight:bold;">position</span><span style="color:#27aeae;">()!=1]&quot;</span><span style="font-weight:bold;">&gt;</span>
0056       <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:call-template</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;bookmark&quot;</span><span style="font-weight:bold;">/&gt;</span>
0057     <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="font-weight:bold;">&gt;</span>
0058   <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="font-weight:bold;">&gt;</span>
0059 
0060 
0061   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0062     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;*&quot;</span><span style="font-weight:bold;">&gt;</span>
0063       <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:call-template</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;getbookmarks&quot;</span><span style="font-weight:bold;">/&gt;</span>
0064     <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:for-each</span><span style="font-weight:bold;">&gt;</span>
0065   <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0066 
0067 <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0068 
0069 <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:template</span><span style="font-weight:bold;">&gt;</span>
0070 
0071 
0072 <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:template</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;bookmark&quot;</span><span style="font-weight:bold;">&gt;</span>
0073   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:param</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;href&quot;</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-style:italic;">@href</span><span style="color:#27aeae;">&quot;</span><span style="font-weight:bold;">/&gt;</span>
0074   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:param</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;desc&quot;</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#f44f4f;">''</span><span style="color:#27aeae;">&quot;</span><span style="font-weight:bold;">/&gt;</span>
0075   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:param</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;title&quot;</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">normalize-space</span><span style="color:#27aeae;">()&quot;</span><span style="font-weight:bold;">/&gt;</span>
0076 
0077   <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:variable</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;realdesc&quot;</span><span style="font-weight:bold;">&gt;</span>
0078     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0079       <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">test</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">starts-with</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$desc</span><span style="color:#27aeae;">,</span><span style="color:#27aeae;font-style:italic;">$title</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">&gt;</span>
0080         <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0081           <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">test</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">starts-with</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-weight:bold;">translate</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-weight:bold;">substring-after</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$desc</span><span style="color:#27aeae;">,</span><span style="color:#27aeae;font-style:italic;">$title</span><span style="color:#27aeae;">),</span><span style="color:#f44f4f;">',.;'</span><span style="color:#27aeae;">,</span><span style="color:#f44f4f;">'...'</span><span style="color:#27aeae;">),</span><span style="color:#f44f4f;">'.'</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">&gt;</span>
0082             <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">substring</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$desc</span><span style="color:#27aeae;">,</span><span style="color:#27aeae;font-weight:bold;">string-length</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$title</span><span style="color:#27aeae;">) + 2)&quot;</span><span style="font-weight:bold;">/&gt;</span>
0083           <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="font-weight:bold;">&gt;</span>
0084           <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0085             <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">substring-after</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$desc</span><span style="color:#27aeae;">,</span><span style="color:#27aeae;font-style:italic;">$title</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">/&gt;</span>
0086           <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0087         <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0088       <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="font-weight:bold;">&gt;</span>
0089       <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0090         <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-style:italic;">$desc</span><span style="color:#27aeae;">&quot;</span><span style="font-weight:bold;">/&gt;</span>
0091       <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0092     <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0093   <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:variable</span><span style="font-weight:bold;">&gt;</span>
0094   
0095   <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">bookmark</span><span style="font-weight:bold;">&gt;</span>
0096     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:attribute</span><span style="color:#27ae60;"> name</span><span style="color:#27ae60;">=</span><span style="color:#f44f4f;">&quot;href&quot;</span><span style="font-weight:bold;">&gt;</span>
0097       <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0098         <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">test</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">starts-with</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$href</span><span style="color:#27aeae;">,</span><span style="color:#f44f4f;">'http://'</span><span style="color:#27aeae;">) or </span><span style="color:#27aeae;font-weight:bold;">starts-with</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$href</span><span style="color:#27aeae;">,</span><span style="color:#f44f4f;">'ftp://'</span><span style="color:#27aeae;">) or </span><span style="color:#27aeae;font-weight:bold;">starts-with</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$href</span><span style="color:#27aeae;">,</span><span style="color:#f44f4f;">'mailto:'</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">&gt;</span>
0099           <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-style:italic;">$href</span><span style="color:#27aeae;">&quot;</span><span style="font-weight:bold;">/&gt;</span>
0100         <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:when</span><span style="font-weight:bold;">&gt;</span>
0101         <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0102           <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">concat</span><span style="color:#27aeae;">(</span><span style="color:#f44f4f;">'http://www.xs4all.nl/~wbsoft/linux/links/'</span><span style="color:#27aeae;">,</span><span style="color:#27aeae;font-style:italic;">$href</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">/&gt;</span>
0103         <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:otherwise</span><span style="font-weight:bold;">&gt;</span>
0104       <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:choose</span><span style="font-weight:bold;">&gt;</span>
0105     <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:attribute</span><span style="font-weight:bold;">&gt;</span>
0106     <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">title</span><span style="font-weight:bold;">&gt;&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">normalize-space</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$title</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">/&gt;&lt;/</span><span style="font-weight:bold;">title</span><span style="font-weight:bold;">&gt;</span>
0107     <span style="font-weight:bold;">&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:if</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">test</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">normalize-space</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$realdesc</span><span style="color:#27aeae;">) != </span><span style="color:#f44f4f;">''</span><span style="color:#27aeae;">&quot;</span><span style="font-weight:bold;">&gt;</span>
0108       <span style="font-weight:bold;">&lt;</span><span style="font-weight:bold;">desc</span><span style="font-weight:bold;">&gt;&lt;</span><span style="color:#7f8c8d;font-weight:bold;">xsl:value-of</span><span style="color:#27ae60;"> </span><span style="color:#27ae60;">select</span><span style="color:#27ae60;">=</span><span style="color:#27aeae;">&quot;</span><span style="color:#27aeae;font-weight:bold;">normalize-space</span><span style="color:#27aeae;">(</span><span style="color:#27aeae;font-style:italic;">$realdesc</span><span style="color:#27aeae;">)&quot;</span><span style="font-weight:bold;">/&gt;&lt;/</span><span style="font-weight:bold;">desc</span><span style="font-weight:bold;">&gt;</span>
0109     <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:if</span><span style="font-weight:bold;">&gt;</span>
0110   <span style="font-weight:bold;">&lt;/</span><span style="font-weight:bold;">bookmark</span><span style="font-weight:bold;">&gt;</span>
0111 <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:template</span><span style="font-weight:bold;">&gt;</span>
0112 
0113 
0114 
0115 <span style="font-weight:bold;">&lt;/</span><span style="color:#7f8c8d;font-weight:bold;">xsl:stylesheet</span><span style="font-weight:bold;">&gt;</span>
0116 </pre></body></html>