Ignore:
Timestamp:
Jul 6, 2008, 6:57:34 AM (11 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt, and take advantage of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629grddl.xslt

    r246 r272  
    6161    </rdf:Description>
    6262
     63    <xsl:for-each select="//rdf:Description">
     64     
     65      <rdf:Description>
     66        <xsl:attribute name="rdf:about">
     67          <xsl:choose>
     68            <xsl:when test="@rdf:about">
     69              <xsl:value-of select="rdf:about"/>
     70            </xsl:when>
     71            <xsl:otherwise>
     72              <xsl:value-of select="concat('#',ancestor::*[@anchor][1]/@anchor)"/>
     73            </xsl:otherwise>
     74          </xsl:choose>
     75        </xsl:attribute>
     76       
     77        <xsl:if test="not(dc:title) and ancestor::section[@title]">
     78          <dc:title><xsl:value-of select="ancestor::section[@title][1]/@title"/></dc:title>
     79        </xsl:if>
     80       
     81        <xsl:copy-of select="*"/>
     82       
     83      </rdf:Description>
     84   
     85    </xsl:for-each>
     86   
    6387  </rdf:RDF>
    6488</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.