1.1 --- a/XSLForms/XSL/Prepare.xsl Sun Nov 16 01:19:33 2008 +0100
1.2 +++ b/XSLForms/XSL/Prepare.xsl Mon Nov 17 01:50:18 2008 +0100
1.3 @@ -4,7 +4,7 @@
1.4 stylesheet - something which is capable of transforming XML documents into Web
1.5 pages or other kinds of XML documents.
1.6
1.7 -Copyright (C) 2005, 2007 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2005, 2006, 2007, 2008 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU Lesser General Public License as published by the Free
1.12 @@ -147,6 +147,17 @@
1.13
1.14
1.15
1.16 + <!-- Match elements referencing selected sections. -->
1.17 +
1.18 + <xsl:template match="*[@template:select]" priority="1">
1.19 + <!-- Produce a loop using the annotation's content. -->
1.20 + <axsl:for-each select="{@template:select}">
1.21 + <xsl:call-template name="enter-attribute"/>
1.22 + </axsl:for-each>
1.23 + </xsl:template>
1.24 +
1.25 +
1.26 +
1.27 <!-- Match special conditional expression attributes. -->
1.28
1.29 <xsl:template match="*[@template:if]" priority="2">
1.30 @@ -324,7 +335,7 @@
1.31
1.32 <!-- Remove template attributes. -->
1.33
1.34 - <xsl:template match="@template:element|@template:init|@template:attribute|@template:value|@template:expr|@template:expr-attr|@template:effect|@template:if|@template:i18n|@template:copy">
1.35 + <xsl:template match="@template:element|@template:init|@template:attribute|@template:value|@template:expr|@template:expr-attr|@template:effect|@template:if|@template:i18n|@template:copy|@template:select|@template:output">
1.36 </xsl:template>
1.37
1.38