Changeset 292 for draft-ietf-httpbis/latest/extract-method-defs.xslt
- Timestamp:
- Jul 19, 2008, 6:16:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
draft-ietf-httpbis/latest/extract-method-defs.xslt
r288 r292 30 30 <xsl:variable name="oldtable" select="//texttable[@anchor='iana.method.registration.table']" /> 31 31 32 <xsl:if test="string($table//ttcol | $table//c) != string($oldtable//ttcol | $oldtable//c)"> 33 <xsl:message>WARNING: table contained inside source document needs to be updated!</xsl:message> 32 <xsl:variable name="s"> 33 <xsl:apply-templates select="$table//texttable" mode="tostring"/> 34 </xsl:variable> 35 36 <xsl:variable name="s1"> 37 <xsl:apply-templates select="$oldtable" mode="tostring"/> 38 </xsl:variable> 39 40 <xsl:if test="$s != $s1"> 41 <xsl:message>WARNING: table contained inside source document needs to be updated</xsl:message> 42 <xsl:message><xsl:value-of select="$s"/></xsl:message> 43 <xsl:message><xsl:value-of select="$s1"/></xsl:message> 34 44 </xsl:if> 35 45 36 46 </xsl:template> 47 48 <xsl:template match="*" mode="tostring"> 49 <xsl:text><</xsl:text> 50 <xsl:value-of select="name()"/> 51 <xsl:for-each select="@*"> 52 <xsl:sort select="name()"/> 53 <xsl:text> </xsl:text> 54 <xsl:value-of select="name()"/> 55 <xsl:text>=</xsl:text> 56 <xsl:value-of select="."/> 57 </xsl:for-each> 58 <xsl:text>></xsl:text> 59 60 <xsl:apply-templates select="node()" mode="tostring"/> 61 62 <xsl:text></</xsl:text> 63 <xsl:value-of select="name()"/> 64 <xsl:text>></xsl:text> 65 66 </xsl:template> 67 68 <xsl:template match="text()" mode="tostring"> 69 <xsl:value-of select="."/> 70 </xsl:template> 71 72 <xsl:template match="texttable/text()" mode="tostring"/> 73 <xsl:template match="texttable/c[xref]/text()" mode="tostring"/> 37 74 38 75 <xsl:template match="section">
Note: See TracChangeset
for help on using the changeset viewer.