Last change
on this file since 421 was
421,
checked in by julian.reschke@…, 14 years ago
|
add collected abnf appendices (related to #36)
|
File size:
990 bytes
|
Line | |
---|
1 | <xsl:transform
|
---|
2 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
3 | version="2.0">
|
---|
4 |
|
---|
5 | <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
|
---|
6 |
|
---|
7 | <xsl:param name="abnf"/>
|
---|
8 |
|
---|
9 | <xsl:template match="/">
|
---|
10 | <xsl:variable name="collected" select="unparsed-text($abnf)"/>
|
---|
11 |
|
---|
12 | <section title="Collected ABNF" anchor="collected.abnf">
|
---|
13 | <figure>
|
---|
14 | <artwork type="abnf" name="{$abnf}">
|
---|
15 | <xsl:value-of select="$collected"/>
|
---|
16 | </artwork>
|
---|
17 | </figure>
|
---|
18 | </section>
|
---|
19 |
|
---|
20 | <!-- check whether it's up2date... -->
|
---|
21 |
|
---|
22 | <xsl:if test="not(//section[@anchor='collected.abnf']) or //section[@anchor='collected.abnf']//artwork != $collected">
|
---|
23 | <xsl:message>WARNING: appendix contained inside source document needs to be updated</xsl:message>
|
---|
24 | <!-- <xsl:message>A: <xsl:value-of select="//section[@anchor='collected.abnf']//artwork"/></xsl:message>
|
---|
25 | <xsl:message>B: <xsl:value-of select="$collected"/></xsl:message>-->
|
---|
26 | </xsl:if>
|
---|
27 | </xsl:template>
|
---|
28 |
|
---|
29 |
|
---|
30 | </xsl:transform> |
---|
Note: See
TracBrowser
for help on using the repository browser.