Changeset 285 for rfc2629xslt/rfc2629toFO.xslt
- Timestamp:
- 18/07/08 10:37:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toFO.xslt
r272 r285 32 32 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 33 33 version="1.0" 34 xmlns:ed="http://greenbytes.de/2002/rfcedit" 35 xmlns:exslt="http://exslt.org/common" 34 36 xmlns:fo="http://www.w3.org/1999/XSL/Format" 35 36 xmlns:ed="http://greenbytes.de/2002/rfcedit" 37 xmlns:msxsl="urn:schemas-microsoft-com:xslt" 38 xmlns:myns="mailto:julian.reschke@greenbytes.de?subject=rcf2629.xslt" 39 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 37 40 xmlns:x="http://purl.org/net/xml2rfc/ext" 38 xmlns:myns="mailto:julian.reschke@greenbytes.de?subject=rcf2629.xslt" 39 40 xmlns:msxsl="urn:schemas-microsoft-com:xslt" 41 xmlns:exslt="http://exslt.org/common" 42 43 exclude-result-prefixes="msxsl exslt myns ed x" 41 42 exclude-result-prefixes="ed exslt msxsl myns rdf x" 44 43 > 45 44 … … 206 205 </fo:block> 207 206 </xsl:for-each> 208 <xsl:if test="address/uri"> 209 <fo:block>URI: <fo:basic-link external-destination="url('{address/uri}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="address/uri" /></fo:basic-link></fo:block> 210 </xsl:if> 207 <xsl:for-each select="address/uri"> 208 <xsl:variable name="uri"> 209 <xsl:call-template name="extract-uri"/> 210 </xsl:variable> 211 <fo:block>URI: <fo:basic-link external-destination="url('{$uri}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="$uri" /></fo:basic-link></fo:block> 212 </xsl:for-each> 211 213 </xsl:template> 212 214 … … 2401 2403 </xsl:template> 2402 2404 2405 <!-- XML checking --> 2406 <xsl:template match="x:parse-xml"> 2407 <xsl:apply-templates/> 2408 </xsl:template> 2409 2403 2410 <xsl:template match="x:abnf-char-sequence"> 2404 2411 <xsl:choose> … … 2415 2422 </xsl:otherwise> 2416 2423 </xsl:choose> 2424 </xsl:template> 2425 2426 <!-- inlined RDF support --> 2427 <xsl:template match="rdf:Description"> 2428 <!-- ignore --> 2417 2429 </xsl:template> 2418 2430
Note: See TracChangeset
for help on using the changeset viewer.