<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-ZA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Hi All,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I appropriated the XEP XSL for use in one of the projects I
am working on. I found one thing, the &lt;spec&gt; element could really become useful.
For example:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>See &lt;spec&gt;0001&lt;/spec&gt; on how to write XEP
documents.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Here are the changes I made:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&lt;</span><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>xsl:template</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>match</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>spec</span>'<span
style='color:blue'> </span><span style='color:red'>mode</span><span
style='color:blue'>=</span>'<span style='color:blue'>list</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:param</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>name</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>speccount</span>'<span
style='color:blue'> </span><span style='color:red'>select</span><span
style='color:blue'>=</span>'<span style='color:blue'>&quot;&quot;</span>'<span
style='color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:variable</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>name</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>specpos</span>'<span
style='color:blue'> </span><span style='color:red'>select</span><span
style='color:blue'>=</span>'<span style='color:blue'>position()</span>'<span
style='color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:choose</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:when</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>test</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>$specpos
</span><span style='color:red'>&amp;lt;</span><span style='color:blue'>
$speccount</span>'<span style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#A31515'>a</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:attribute</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>name</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>href</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>http://www.xmpp.org/extensions/xep-<span
style='color:blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:value-of</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>select</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>.</span>'<span
style='color:blue'> /&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>.html<span style='color:
blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:attribute</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
XEP-<span style='color:blue'>&lt;</span><span style='color:#2B91AF'>xsl:value-of</span><span
style='color:blue'> </span><span style='color:red'>select</span><span
style='color:blue'>=</span>'<span style='color:blue'>.</span>'<span
style='color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#A31515'>a</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>, <span style='color:blue'>&lt;/</span><span
style='color:#2B91AF'>xsl:text</span><span style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:when</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:otherwise</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#A31515'>a</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:attribute</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>name</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>href</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>http://www.xmpp.org/extensions/xep-<span
style='color:blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:value-of</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>select</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>.</span>'<span
style='color:blue'> /&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>.html<span style='color:
blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:attribute</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
XEP-<span style='color:blue'>&lt;</span><span style='color:#2B91AF'>xsl:value-of</span><span
style='color:blue'> </span><span style='color:red'>select</span><span
style='color:blue'>=</span>'<span style='color:blue'>.</span>'<span
style='color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#A31515'>a</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:otherwise</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp; &lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:choose</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp; &lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#2B91AF'>xsl:template</span><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>---------------<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&lt;</span><span style='font-size:10.0pt;
font-family:"Courier New";color:#2B91AF'>xsl:choose</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:when</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>test</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>$dependencies.count
</span><span style='color:red'>&amp;gt;</span><span style='color:blue'> 0</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>Dependencies: <span
style='color:blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:apply-templates</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>select</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>/xep/header/dependencies/spec</span>'<span
style='color:blue'> </span><span style='color:red'>mode</span><span
style='color:blue'>=</span>'<span style='color:blue'>list</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:with-param</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>name</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>speccount</span>'<span
style='color:blue'> </span><span style='color:red'>select</span><span
style='color:blue'>=</span>'<span style='color:blue'>$dependencies.count</span>'<span
style='color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:apply-templates</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;!-- Apply to others in header --&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>---------------<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp; &lt;</span><span style='font-size:
10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:template</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>match</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>spec</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#A31515'>a</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:attribute</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>name</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>href</span>'<span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'> http://www.xmpp.org/extensions/xep-<span
style='color:blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:value-of</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span><span
style='font-size:10.0pt;font-family:"Courier New";color:red'>select</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>=</span><span
style='font-size:10.0pt;font-family:"Courier New"'>'<span style='color:blue'>.</span>'<span
style='color:blue'> /&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;</span><span style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:text</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'>.html<span style='color:
blue'>&lt;/</span><span style='color:#2B91AF'>xsl:text</span><span
style='color:blue'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#2B91AF'>xsl:attribute</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XEP-<span
style='color:blue'>&lt;</span><span style='color:#2B91AF'>xsl:value-of</span><span
style='color:blue'> </span><span style='color:red'>select</span><span
style='color:blue'>=</span>'<span style='color:blue'>.</span>'<span
style='color:blue'>/&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>&nbsp;&nbsp;&nbsp; &lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#A31515'>a</span><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>&nbsp; &lt;/</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#2B91AF'>xsl:template</span><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>--------------<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>&lt;!-- Include it in all the presentational groups in the xsd.
--&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal>It made my life a little easier. I am sure you could even
write one that automagically handles footnotes etc.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>e.g. &lt;spec source='ietf' number='0001'&gt;The
Internet&lt;/spec&gt;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Would result in:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>&lt;a href=&quot;#spec-ietf-0001'&gt;[RFC 0001]&lt;/a&gt;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>And in the footer:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>[&lt;a href=&quot;http://www.ietf.org/rfc/rfc2119.txt&quot;&gt;RFC
0001&lt;/a&gt;] &#8211; The internet<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Jonathan<o:p></o:p></p>

</div>

</body>

</html>