Changeset 118 for rfc2629xslt/rfc2629toXHTML.xslt
- Timestamp:
- 31/12/07 13:49:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toXHTML.xslt
r32 r118 468 468 </xsl:when> 469 469 <xsl:otherwise> 470 <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message> 471 <p xmlns="http://www.w3.org/1999/xhtml" class="error"><xsl:value-of select="$node-set-warning"/></p> 470 <xsl:call-template name="error"> 471 <xsl:with-param name="msg" select="$node-set-warning"/> 472 </xsl:call-template> 472 473 </xsl:otherwise> 473 474 </xsl:choose> … … 537 538 </xsl:when> 538 539 <xsl:otherwise> 539 <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message> 540 <p class="error"><xsl:value-of select="$node-set-warning"/></p> 540 <xsl:call-template name="error"> 541 <xsl:with-param name="msg" select="$node-set-warning"/> 542 </xsl:call-template> 541 543 </xsl:otherwise> 542 544 </xsl:choose> … … 580 582 </xsl:when> 581 583 <xsl:otherwise> 582 <xsl:message><xsl:value-of select="$node-set-warning"/></xsl:message> 583 <p xmlns="http://www.w3.org/1999/xhtml" class="error"><xsl:value-of select="$node-set-warning"/></p> 584 <xsl:call-template name="error"> 585 <xsl:with-param name="msg" select="$node-set-warning"/> 586 </xsl:call-template> 584 587 </xsl:otherwise> 585 588 </xsl:choose> … … 1517 1520 <!-- Other x:fmt values than "none": unsupported --> 1518 1521 <xsl:when test="@x:fmt and @x:fmt!='none'"> 1519 <xsl:message>unknown xref/@x:fmt extension: <xsl:value-of select="@x:fmt"/></xsl:message> 1520 <span xmlns="http://www.w3.org/1999/xhtml" class="error">unknown xref/@x:fmt extension: <xsl:value-of select="@x:fmt"/></span> 1522 <xsl:call-template name="error"> 1523 <xsl:with-param name="msg" select="concat('unknown xref/@x:fmt extension: ',@x:fmt)"/> 1524 </xsl:call-template> 1521 1525 </xsl:when> 1522 1526 … … 1564 1568 <xsl:variable name="node" select="$src//*[@anchor=$target]"/> 1565 1569 <xsl:if test="count($node)=0 and not(ancestor::ed:del)"> 1566 <xsl:message>Undefined target: <xsl:value-of select="@target"/></xsl:message> 1567 <span xmlns="http://www.w3.org/1999/xhtml" class="error">Undefined target: <xsl:value-of select="@target"/></span> 1570 <xsl:call-template name="error"> 1571 <xsl:with-param name="msg" select="concat('Undefined target: ',@target)"/> 1572 </xsl:call-template> 1568 1573 </xsl:if> 1569 1574 … … 1703 1708 1704 1709 <xsl:if test="$fmt and not($fmt='()' or $fmt=',' or $fmt='of' or $fmt='sec' or $fmt='anchor' or $fmt='number')"> 1705 <xsl:message>unknown xref/@x:fmt extension: <xsl:value-of select="$fmt"/></xsl:message> 1706 <span xmlns="http://www.w3.org/1999/xhtml" class="error">unknown xref/@x:fmt extension: <xsl:value-of select="$fmt"/></span> 1710 <xsl:call-template name="error"> 1711 <xsl:with-param name="msg" select="concat('unknown xref/@x:fmt extension: ',$fmt)"/> 1712 </xsl:call-template> 1707 1713 </xsl:if> 1708 1714 … … 1809 1815 1810 1816 <xsl:otherwise> 1811 <xsl:message>xref to unknown element: <xsl:value-of select="name($node)"/></xsl:message> 1812 <span xmlns="http://www.w3.org/1999/xhtml" class="error">xref to unknown element: <xsl:value-of select="name($node)"/></span> 1817 <xsl:call-template name="error"> 1818 <xsl:with-param name="msg" select="concat('xref to unknown element: ',name($node))"/> 1819 </xsl:call-template> 1813 1820 </xsl:otherwise> 1814 1821 </xsl:choose> … … 3551 3558 <xsl:when test="contains($list,',')"> 3552 3559 <xsl:variable name="rfcNo" select="substring-before($list,',')"/> 3560 <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$rfcNo])=0"> 3561 <xsl:call-template name="warning"> 3562 <xsl:with-param name="inline" select="'no'"/> 3563 <xsl:with-param name="msg" select="concat('front matter mentions RFC',$rfcNo,' for which there is no reference element')"/> 3564 </xsl:call-template> 3565 </xsl:if> 3553 3566 <a xmlns="http://www.w3.org/1999/xhtml" href="{concat($rfcUrlPrefix,$rfcNo,$rfcUrlPostfix)}"><xsl:value-of select="$rfcNo"/></a>, 3554 3567 <xsl:call-template name="rfclist"> … … 3558 3571 <xsl:otherwise> 3559 3572 <xsl:variable name="rfcNo" select="$list"/> 3573 <xsl:if test="count(//references//reference/seriesInfo[@name='RFC' and @value=$rfcNo])=0"> 3574 <xsl:call-template name="warning"> 3575 <xsl:with-param name="inline" select="'no'"/> 3576 <xsl:with-param name="msg" select="concat('front matter mentions RFC',$rfcNo,' for which there is no reference element')"/> 3577 </xsl:call-template> 3578 </xsl:if> 3560 3579 <a xmlns="http://www.w3.org/1999/xhtml" href="{concat($rfcUrlPrefix,$rfcNo,$rfcUrlPostfix)}"><xsl:value-of select="$rfcNo"/></a> 3561 3580 </xsl:otherwise> … … 4188 4207 <xsl:param name="msg"/> 4189 4208 <xsl:param name="msg2"/> 4190 <div xmlns="http://www.w3.org/1999/xhtml" class="error">WARNING: <xsl:value-of select="$msg"/></div> 4209 <xsl:param name="inline"/> 4210 <xsl:if test="$inline!='no'"> 4211 <div xmlns="http://www.w3.org/1999/xhtml" class="error">WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div> 4212 </xsl:if> 4191 4213 <xsl:message>WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message> 4192 4214 </xsl:template> … … 4195 4217 <xsl:param name="msg"/> 4196 4218 <xsl:param name="msg2"/> 4197 <div xmlns="http://www.w3.org/1999/xhtml" class="error">ERROR: <xsl:value-of select="$msg"/></div> 4219 <xsl:param name="inline"/> 4220 <xsl:if test="$inline='no'"> 4221 <div xmlns="http://www.w3.org/1999/xhtml" class="error">ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div> 4222 </xsl:if> 4198 4223 <xsl:message>ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message> 4199 4224 </xsl:template> … … 4464 4489 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 4465 4490 <!-- when RCS keyword substitution in place, add version info --> 4466 <xsl:if test="contains('$Revision: 1.35 3$',':')">4467 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.35 3$', 'Revision: '),'$','')),', ')"/>4491 <xsl:if test="contains('$Revision: 1.354 $',':')"> 4492 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.354 $', 'Revision: '),'$','')),', ')"/> 4468 4493 </xsl:if> 4469 <xsl:if test="contains('$Date: 2007/12/ 11 23:20:44$',':')">4470 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/ 11 23:20:44$', 'Date: '),'$','')),', ')"/>4494 <xsl:if test="contains('$Date: 2007/12/31 13:43:05 $',':')"> 4495 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2007/12/31 13:43:05 $', 'Date: '),'$','')),', ')"/> 4471 4496 </xsl:if> 4472 4497 <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))"/>
Note: See TracChangeset
for help on using the changeset viewer.