paulb@233 | 1 | <?xml version="1.0"?> |
paulb@274 | 2 | <!-- |
paulb@274 | 3 | Copyright (C) 2005 Paul Boddie <paul@boddie.org.uk> |
paulb@274 | 4 | |
paulb@274 | 5 | This library is free software; you can redistribute it and/or |
paulb@274 | 6 | modify it under the terms of the GNU Lesser General Public |
paulb@274 | 7 | License as published by the Free Software Foundation; either |
paulb@274 | 8 | version 2.1 of the License, or (at your option) any later version. |
paulb@274 | 9 | |
paulb@274 | 10 | This library is distributed in the hope that it will be useful, |
paulb@274 | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
paulb@274 | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
paulb@274 | 13 | Lesser General Public License for more details. |
paulb@274 | 14 | |
paulb@274 | 15 | You should have received a copy of the GNU Lesser General Public |
paulb@274 | 16 | License along with this library; if not, write to the Free Software |
paulb@412 | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
paulb@274 | 18 | --> |
paulb@233 | 19 | <xsl:stylesheet version="1.0" |
paulb@233 | 20 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
paulb@489 | 21 | xmlns:template="http://www.boddie.org.uk/ns/xmltools/template" |
paulb@489 | 22 | xmlns:str="http://exslt.org/strings" |
paulb@489 | 23 | extension-element-prefixes="str"> |
paulb@233 | 24 | |
paulb@233 | 25 | <xsl:output indent="yes"/> |
paulb@233 | 26 | |
paulb@233 | 27 | |
paulb@233 | 28 | |
paulb@233 | 29 | <!-- Match the document itself. --> |
paulb@233 | 30 | |
paulb@233 | 31 | <xsl:template match="/"> |
paulb@233 | 32 | <!-- Process the elements. --> |
paulb@233 | 33 | <xsl:apply-templates select="*"/> |
paulb@233 | 34 | </xsl:template> |
paulb@233 | 35 | |
paulb@233 | 36 | |
paulb@233 | 37 | |
paulb@233 | 38 | <!-- Match element references. --> |
paulb@233 | 39 | |
paulb@489 | 40 | <xsl:template match="*[@template:element]" priority="1"> |
paulb@233 | 41 | <xsl:call-template name="enter-element"> |
paulb@233 | 42 | <xsl:with-param name="other-elements" select="@template:element"/> |
paulb@284 | 43 | <xsl:with-param name="other-init" select="@template:init"/> |
paulb@233 | 44 | </xsl:call-template> |
paulb@233 | 45 | </xsl:template> |
paulb@233 | 46 | |
paulb@233 | 47 | <xsl:template name="enter-element"> |
paulb@233 | 48 | <xsl:param name="other-elements"/> |
paulb@284 | 49 | <xsl:param name="other-init"/> |
paulb@233 | 50 | <xsl:variable name="first-element" select="substring-before($other-elements, ',')"/> |
paulb@233 | 51 | <xsl:variable name="remaining-elements" select="substring-after($other-elements, ',')"/> |
paulb@284 | 52 | <xsl:variable name="first-init" select="substring-before($other-init, ',')"/> |
paulb@284 | 53 | <xsl:variable name="remaining-init" select="substring-after($other-init, ',')"/> |
paulb@233 | 54 | <xsl:choose> |
paulb@233 | 55 | <xsl:when test="$first-element = ''"> |
paulb@233 | 56 | <xsl:call-template name="next-element"> |
paulb@233 | 57 | <xsl:with-param name="first-element" select="$other-elements"/> |
paulb@284 | 58 | <xsl:with-param name="first-init" select="$other-init"/> |
paulb@233 | 59 | </xsl:call-template> |
paulb@233 | 60 | </xsl:when> |
paulb@233 | 61 | <xsl:otherwise> |
paulb@233 | 62 | <xsl:call-template name="next-element"> |
paulb@233 | 63 | <xsl:with-param name="first-element" select="$first-element"/> |
paulb@233 | 64 | <xsl:with-param name="remaining-elements" select="$remaining-elements"/> |
paulb@284 | 65 | <xsl:with-param name="first-init" select="$first-init"/> |
paulb@284 | 66 | <xsl:with-param name="remaining-init" select="$remaining-init"/> |
paulb@233 | 67 | </xsl:call-template> |
paulb@233 | 68 | </xsl:otherwise> |
paulb@233 | 69 | </xsl:choose> |
paulb@233 | 70 | </xsl:template> |
paulb@233 | 71 | |
paulb@233 | 72 | <xsl:template name="next-element"> |
paulb@233 | 73 | <xsl:param name="first-element"/> |
paulb@233 | 74 | <xsl:param name="remaining-elements"/> |
paulb@284 | 75 | <xsl:param name="first-init"/> |
paulb@284 | 76 | <xsl:param name="remaining-init"/> |
paulb@489 | 77 | <!-- Test for recursive references. --> |
paulb@489 | 78 | <xsl:variable name="recursive-element" select="ancestor::*[$first-element = str:split(@template:element, ',')[1]]"/> |
paulb@489 | 79 | <xsl:choose> |
paulb@489 | 80 | <!-- Generate a reference to the previous element definition. --> |
paulb@489 | 81 | <xsl:when test="$recursive-element"> |
paulb@489 | 82 | <element-ref> |
paulb@489 | 83 | <xsl:attribute name="name"><xsl:value-of select="$first-element"/></xsl:attribute> |
paulb@489 | 84 | </element-ref> |
paulb@489 | 85 | </xsl:when> |
paulb@489 | 86 | <!-- Generate a normal, nested element definition. --> |
paulb@489 | 87 | <xsl:otherwise> |
paulb@489 | 88 | <element> |
paulb@489 | 89 | <xsl:attribute name="name"><xsl:value-of select="$first-element"/></xsl:attribute> |
paulb@489 | 90 | <xsl:if test="$first-init != ''"> |
paulb@489 | 91 | <xsl:attribute name="init"><xsl:value-of select="$first-init"/></xsl:attribute> |
paulb@489 | 92 | </xsl:if> |
paulb@489 | 93 | <xsl:choose> |
paulb@489 | 94 | <xsl:when test="$remaining-elements = ''"> |
paulb@489 | 95 | <xsl:call-template name="enter-attribute"/> |
paulb@489 | 96 | </xsl:when> |
paulb@489 | 97 | <xsl:otherwise> |
paulb@489 | 98 | <xsl:call-template name="enter-element"> |
paulb@489 | 99 | <xsl:with-param name="other-elements" select="$remaining-elements"/> |
paulb@489 | 100 | <xsl:with-param name="other-init" select="$remaining-init"/> |
paulb@489 | 101 | </xsl:call-template> |
paulb@489 | 102 | </xsl:otherwise> |
paulb@489 | 103 | </xsl:choose> |
paulb@489 | 104 | </element> |
paulb@489 | 105 | </xsl:otherwise> |
paulb@489 | 106 | </xsl:choose> |
paulb@233 | 107 | </xsl:template> |
paulb@233 | 108 | |
paulb@233 | 109 | |
paulb@233 | 110 | |
paulb@233 | 111 | <!-- Match attributes. --> |
paulb@233 | 112 | |
paulb@489 | 113 | <xsl:template match="*[@template:attribute or @template:attribute-field or @template:attribute-area or @template:attribute-button or @template:attribute-list-button or @template:selector-field or @template:multiple-choice-field or @template:multiple-choice-list-field or @template:multiple-choice-value or @template:multiple-choice-list-value or @template:multiple-choice-list-element]"> |
paulb@233 | 114 | <xsl:call-template name="enter-attribute"/> |
paulb@233 | 115 | </xsl:template> |
paulb@233 | 116 | |
paulb@233 | 117 | <xsl:template name="enter-attribute"> |
paulb@233 | 118 | <xsl:choose> |
paulb@233 | 119 | <xsl:when test="@template:attribute"> |
paulb@245 | 120 | <attribute> |
paulb@233 | 121 | <xsl:attribute name="name"><xsl:value-of select="@template:attribute"/></xsl:attribute> |
paulb@245 | 122 | </attribute> |
paulb@233 | 123 | </xsl:when> |
paulb@258 | 124 | <xsl:when test="@template:attribute-field"> |
paulb@258 | 125 | <attribute> |
paulb@258 | 126 | <xsl:attribute name="name"><xsl:value-of select="@template:attribute-field"/></xsl:attribute> |
paulb@258 | 127 | </attribute> |
paulb@258 | 128 | </xsl:when> |
paulb@258 | 129 | <xsl:when test="@template:attribute-area"> |
paulb@258 | 130 | <attribute> |
paulb@281 | 131 | <xsl:variable name="field-attr" select="substring-before(@template:attribute-area, ',')"/> |
paulb@281 | 132 | <xsl:choose> |
paulb@281 | 133 | <xsl:when test="$field-attr != ''"> |
paulb@281 | 134 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@281 | 135 | </xsl:when> |
paulb@281 | 136 | <xsl:otherwise> |
paulb@281 | 137 | <xsl:attribute name="name"><xsl:value-of select="@template:attribute-area"/></xsl:attribute> |
paulb@281 | 138 | </xsl:otherwise> |
paulb@281 | 139 | </xsl:choose> |
paulb@258 | 140 | </attribute> |
paulb@258 | 141 | </xsl:when> |
paulb@258 | 142 | <xsl:when test="@template:attribute-button"> |
paulb@258 | 143 | <attribute> |
paulb@258 | 144 | <xsl:variable name="field-attr" select="substring-before(@template:attribute-button, ',')"/> |
paulb@258 | 145 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@258 | 146 | </attribute> |
paulb@258 | 147 | </xsl:when> |
paulb@281 | 148 | <xsl:when test="@template:attribute-list-button"> |
paulb@281 | 149 | <attribute> |
paulb@281 | 150 | <xsl:variable name="field-attr" select="substring-before(@template:attribute-list-button, ',')"/> |
paulb@281 | 151 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@281 | 152 | </attribute> |
paulb@281 | 153 | </xsl:when> |
paulb@258 | 154 | <xsl:when test="@template:selector-field"> |
paulb@258 | 155 | <xsl:variable name="field-name" select="substring-before(@template:selector-field, ',')"/> |
paulb@258 | 156 | <xsl:variable name="affected-element" select="substring-after(@template:selector-field, ',')"/> |
paulb@258 | 157 | <selector> |
paulb@258 | 158 | <xsl:choose> |
paulb@258 | 159 | <xsl:when test="$field-name != ''"> |
paulb@258 | 160 | <xsl:attribute name="name"><xsl:value-of select="$field-name"/></xsl:attribute> |
paulb@258 | 161 | <xsl:attribute name="element"><xsl:value-of select="$affected-element"/></xsl:attribute> |
paulb@258 | 162 | </xsl:when> |
paulb@258 | 163 | <xsl:otherwise> |
paulb@258 | 164 | <xsl:attribute name="name"><xsl:value-of select="@template:selector-field"/></xsl:attribute> |
paulb@258 | 165 | </xsl:otherwise> |
paulb@258 | 166 | </xsl:choose> |
paulb@258 | 167 | </selector> |
paulb@258 | 168 | </xsl:when> |
paulb@258 | 169 | <xsl:when test="@template:multiple-choice-field"> |
paulb@262 | 170 | <xsl:variable name="field-element" select="substring-before(@template:multiple-choice-field, ',')"/> |
paulb@282 | 171 | <xsl:variable name="field-attr-info" select="substring-after(@template:multiple-choice-field, ',')"/> |
paulb@282 | 172 | <xsl:variable name="field-attr" select="substring-before($field-attr-info, ',')"/> |
paulb@466 | 173 | <xsl:variable name="field-attr-type-info" select="substring-after($field-attr-info, ',')"/> |
paulb@466 | 174 | <xsl:variable name="field-attr-type" select="substring-before($field-attr-type-info, ',')"/> |
paulb@466 | 175 | <xsl:variable name="field-source-type" select="substring-after($field-attr-type-info, ',')"/> |
paulb@262 | 176 | <xsl:choose> |
paulb@262 | 177 | <xsl:when test="$field-element != '-'"> |
paulb@262 | 178 | <element type="multiple-choice"> |
paulb@262 | 179 | <xsl:attribute name="name"><xsl:value-of select="$field-element"/></xsl:attribute> |
paulb@466 | 180 | <xsl:if test="$field-source-type = 'dynamic'"> |
paulb@466 | 181 | <xsl:attribute name="source">dynamic</xsl:attribute> |
paulb@466 | 182 | </xsl:if> |
paulb@262 | 183 | <attribute> |
paulb@282 | 184 | <xsl:choose> |
paulb@282 | 185 | <xsl:when test="$field-attr != ''"> |
paulb@282 | 186 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@282 | 187 | </xsl:when> |
paulb@282 | 188 | <xsl:otherwise> |
paulb@282 | 189 | <xsl:attribute name="name"><xsl:value-of select="$field-attr-info"/></xsl:attribute> |
paulb@282 | 190 | </xsl:otherwise> |
paulb@282 | 191 | </xsl:choose> |
paulb@262 | 192 | </attribute> |
paulb@262 | 193 | <xsl:apply-templates select="*"/> |
paulb@262 | 194 | </element> |
paulb@262 | 195 | </xsl:when> |
paulb@262 | 196 | <xsl:otherwise> |
paulb@262 | 197 | <xsl:attribute name="type">multiple-choice</xsl:attribute> |
paulb@466 | 198 | <xsl:if test="$field-source-type = 'dynamic'"> |
paulb@466 | 199 | <xsl:attribute name="source">dynamic</xsl:attribute> |
paulb@466 | 200 | </xsl:if> |
paulb@262 | 201 | <attribute> |
paulb@282 | 202 | <xsl:choose> |
paulb@282 | 203 | <xsl:when test="$field-attr != ''"> |
paulb@282 | 204 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@282 | 205 | </xsl:when> |
paulb@282 | 206 | <xsl:otherwise> |
paulb@282 | 207 | <xsl:attribute name="name"><xsl:value-of select="$field-attr-info"/></xsl:attribute> |
paulb@282 | 208 | </xsl:otherwise> |
paulb@282 | 209 | </xsl:choose> |
paulb@262 | 210 | </attribute> |
paulb@262 | 211 | <xsl:apply-templates select="*"/> |
paulb@262 | 212 | </xsl:otherwise> |
paulb@262 | 213 | </xsl:choose> |
paulb@258 | 214 | </xsl:when> |
paulb@258 | 215 | <xsl:when test="@template:multiple-choice-list-field"> |
paulb@262 | 216 | <xsl:variable name="field-element" select="substring-before(@template:multiple-choice-list-field, ',')"/> |
paulb@262 | 217 | <xsl:variable name="field-list-info" select="substring-after(@template:multiple-choice-list-field, ',')"/> |
paulb@262 | 218 | <xsl:variable name="field-list-element" select="substring-before($field-list-info, ',')"/> |
paulb@466 | 219 | <xsl:variable name="field-list-attr-info" select="substring-after($field-list-info, ',')"/> |
paulb@466 | 220 | <xsl:variable name="field-list-attr" select="substring-before($field-list-attr-info, ',')"/> |
paulb@466 | 221 | <xsl:variable name="field-source-type" select="substring-after($field-list-attr-info, ',')"/> |
paulb@262 | 222 | <xsl:choose> |
paulb@262 | 223 | <xsl:when test="$field-element != '-'"> |
paulb@262 | 224 | <element type="multiple-choice-list"> |
paulb@262 | 225 | <xsl:attribute name="name"><xsl:value-of select="$field-element"/></xsl:attribute> |
paulb@466 | 226 | <xsl:if test="$field-source-type = 'dynamic'"> |
paulb@466 | 227 | <xsl:attribute name="source">dynamic</xsl:attribute> |
paulb@466 | 228 | </xsl:if> |
paulb@262 | 229 | <attribute> |
paulb@262 | 230 | <xsl:attribute name="name"><xsl:value-of select="$field-list-attr"/></xsl:attribute> |
paulb@262 | 231 | </attribute> |
paulb@262 | 232 | <xsl:apply-templates select="*"/> |
paulb@262 | 233 | </element> |
paulb@262 | 234 | </xsl:when> |
paulb@262 | 235 | <xsl:otherwise> |
paulb@262 | 236 | <xsl:attribute name="type">multiple-choice-list</xsl:attribute> |
paulb@466 | 237 | <xsl:if test="$field-source-type = 'dynamic'"> |
paulb@466 | 238 | <xsl:attribute name="source">dynamic</xsl:attribute> |
paulb@466 | 239 | </xsl:if> |
paulb@262 | 240 | <attribute> |
paulb@262 | 241 | <xsl:attribute name="name"><xsl:value-of select="$field-list-attr"/></xsl:attribute> |
paulb@262 | 242 | </attribute> |
paulb@262 | 243 | <xsl:apply-templates select="*"/> |
paulb@262 | 244 | </xsl:otherwise> |
paulb@262 | 245 | </xsl:choose> |
paulb@258 | 246 | </xsl:when> |
paulb@281 | 247 | <xsl:when test="@template:multiple-choice-list-element"> |
paulb@281 | 248 | <xsl:variable name="element" select="substring-before(@template:multiple-choice-list-element, ',')"/> |
paulb@281 | 249 | <xsl:variable name="element-list-info" select="substring-after(@template:multiple-choice-list-element, ',')"/> |
paulb@281 | 250 | <xsl:variable name="element-list-element" select="substring-before($element-list-info, ',')"/> |
paulb@281 | 251 | <xsl:variable name="element-list-attr" select="substring-after($element-list-info, ',')"/> |
paulb@281 | 252 | <xsl:choose> |
paulb@281 | 253 | <xsl:when test="$element != '-'"> |
paulb@281 | 254 | <element type="multiple-choice-list"> |
paulb@281 | 255 | <xsl:attribute name="name"><xsl:value-of select="$element"/></xsl:attribute> |
paulb@281 | 256 | <element type="multiple-choice-list-value"> |
paulb@281 | 257 | <xsl:attribute name="name"><xsl:value-of select="$element-list-element"/></xsl:attribute> |
paulb@281 | 258 | <xsl:attribute name="expr-name">value-is-set</xsl:attribute> |
paulb@281 | 259 | <xsl:apply-templates select="*"/> |
paulb@281 | 260 | </element> |
paulb@281 | 261 | </element> |
paulb@281 | 262 | </xsl:when> |
paulb@281 | 263 | <xsl:otherwise> |
paulb@281 | 264 | <xsl:attribute name="type">multiple-choice-list</xsl:attribute> |
paulb@281 | 265 | <element type="multiple-choice-list-value"> |
paulb@281 | 266 | <xsl:attribute name="name"><xsl:value-of select="$element-list-element"/></xsl:attribute> |
paulb@281 | 267 | <xsl:attribute name="expr-name">value-is-set</xsl:attribute> |
paulb@281 | 268 | <xsl:apply-templates select="*"/> |
paulb@281 | 269 | </element> |
paulb@281 | 270 | </xsl:otherwise> |
paulb@281 | 271 | </xsl:choose> |
paulb@281 | 272 | </xsl:when> |
paulb@258 | 273 | <xsl:when test="@template:multiple-choice-value"> |
paulb@258 | 274 | <element type="multiple-choice-value"> |
paulb@258 | 275 | <xsl:variable name="field-element" select="substring-before(@template:multiple-choice-value, ',')"/> |
paulb@258 | 276 | <xsl:variable name="field-attr-info" select="substring-after(@template:multiple-choice-value, ',')"/> |
paulb@258 | 277 | <xsl:variable name="field-attr" select="substring-before($field-attr-info, ',')"/> |
paulb@466 | 278 | <xsl:variable name="field-set-attr-info" select="substring-after($field-attr-info, ',')"/> |
paulb@466 | 279 | <xsl:variable name="field-set-attr" select="substring-before($field-set-attr-info, ',')"/> |
paulb@466 | 280 | <xsl:variable name="field-contents" select="substring-after($field-set-attr-info, ',')"/> |
paulb@258 | 281 | <xsl:attribute name="name"><xsl:value-of select="$field-element"/></xsl:attribute> |
paulb@258 | 282 | <xsl:attribute name="expr">@<xsl:value-of select="$field-attr"/> = ../@<xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@466 | 283 | <xsl:choose> |
paulb@466 | 284 | <xsl:when test="$field-set-attr != ''"> |
paulb@466 | 285 | <xsl:attribute name="expr-attr"><xsl:value-of select="$field-set-attr"/></xsl:attribute> |
paulb@466 | 286 | </xsl:when> |
paulb@466 | 287 | <xsl:otherwise> |
paulb@466 | 288 | <xsl:attribute name="expr-attr"><xsl:value-of select="$field-set-attr-info"/></xsl:attribute> |
paulb@466 | 289 | </xsl:otherwise> |
paulb@466 | 290 | </xsl:choose> |
paulb@258 | 291 | <attribute> |
paulb@258 | 292 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@258 | 293 | </attribute> |
paulb@258 | 294 | </element> |
paulb@258 | 295 | </xsl:when> |
paulb@258 | 296 | <xsl:when test="@template:multiple-choice-list-value"> |
paulb@258 | 297 | <element type="multiple-choice-list-value"> |
paulb@258 | 298 | <xsl:variable name="field-element" select="substring-before(@template:multiple-choice-list-value, ',')"/> |
paulb@258 | 299 | <xsl:variable name="field-attr-info" select="substring-after(@template:multiple-choice-list-value, ',')"/> |
paulb@258 | 300 | <xsl:variable name="field-attr" select="substring-before($field-attr-info, ',')"/> |
paulb@466 | 301 | <xsl:variable name="field-set-attr-info" select="substring-after($field-attr-info, ',')"/> |
paulb@466 | 302 | <xsl:variable name="field-set-attr" select="substring-before($field-set-attr-info, ',')"/> |
paulb@466 | 303 | <xsl:variable name="field-contents" select="substring-after($field-set-attr-info, ',')"/> |
paulb@258 | 304 | <xsl:attribute name="name"><xsl:value-of select="$field-element"/></xsl:attribute> |
paulb@258 | 305 | <xsl:attribute name="expr">@value-is-set</xsl:attribute> |
paulb@258 | 306 | <!-- Special attribute corresponding with the expression. --> |
paulb@258 | 307 | <xsl:attribute name="expr-name">value-is-set</xsl:attribute> |
paulb@466 | 308 | <xsl:choose> |
paulb@466 | 309 | <xsl:when test="$field-set-attr != ''"> |
paulb@466 | 310 | <xsl:attribute name="expr-attr"><xsl:value-of select="$field-set-attr"/></xsl:attribute> |
paulb@466 | 311 | </xsl:when> |
paulb@466 | 312 | <xsl:otherwise> |
paulb@466 | 313 | <xsl:attribute name="expr-attr"><xsl:value-of select="$field-set-attr-info"/></xsl:attribute> |
paulb@466 | 314 | </xsl:otherwise> |
paulb@466 | 315 | </xsl:choose> |
paulb@258 | 316 | <attribute> |
paulb@258 | 317 | <xsl:attribute name="name"><xsl:value-of select="$field-attr"/></xsl:attribute> |
paulb@258 | 318 | </attribute> |
paulb@258 | 319 | </element> |
paulb@258 | 320 | </xsl:when> |
paulb@233 | 321 | <xsl:otherwise> |
paulb@233 | 322 | <xsl:apply-templates select="*"/> |
paulb@233 | 323 | </xsl:otherwise> |
paulb@233 | 324 | </xsl:choose> |
paulb@233 | 325 | </xsl:template> |
paulb@233 | 326 | |
paulb@233 | 327 | |
paulb@233 | 328 | |
paulb@233 | 329 | <!-- Traverse unknown elements. --> |
paulb@233 | 330 | |
paulb@233 | 331 | <xsl:template match="*"> |
paulb@233 | 332 | <xsl:apply-templates select="*"/> |
paulb@233 | 333 | </xsl:template> |
paulb@233 | 334 | |
paulb@233 | 335 | </xsl:stylesheet> |