Ignore:
Timestamp:
Jul 18, 2008, 4:43:35 AM (11 years ago)
Author:
julian.reschke@…
Message:

Added safeness to method registration "template" (related to #72)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/extract-method-defs.xslt

    r270 r286  
    11<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    22               xmlns:x="http://purl.org/net/xml2rfc/ext"
     3               xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    34               version="1.0"
    45>
     
    1718  <texttable align="left">
    1819    <ttcol>Method</ttcol>
     20    <ttcol>Safe</ttcol>
    1921    <ttcol>Reference</ttcol>
    2022    <xsl:apply-templates select="//section[iref/@item='Methods']">
     
    2931
    3032<xsl:template match="section">
     33
    3134  <xsl:variable name="text" select="iref[@item='Methods']/@subitem"/>
     35
     36  <xsl:variable name="safe" xmlns:p2="urn:ietf:id:draft-ietf-httpbis-p2-semantics#">
     37    <xsl:choose>
     38      <xsl:when test="rdf:Description/p2:safe='yes'">yes</xsl:when>
     39      <xsl:otherwise>no</xsl:otherwise>
     40    </xsl:choose>
     41  </xsl:variable>
     42
    3243  <xsl:text>&#10;</xsl:text>
    3344  <c><xsl:value-of select="$text"/></c>
     45  <c><xsl:value-of select="$safe"/></c>
    3446  <c><xref target="{@anchor}"/></c>
    3547</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.