Changeset 1276 for rfc2629xslt/samples/rfc2629.xslt
- Timestamp:
- 01/05/11 09:08:45 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/samples/rfc2629.xslt
- Property svn:eol-style set to native
r1145 r1276 3242 3242 }</xsl:if> 3243 3243 dd { 3244 margin-right: 2em;<xsl:if test="$xml2rfc-ext-justification='always'"> 3245 text-align: justify;</xsl:if> 3244 margin-right: 2em; 3246 3245 } 3247 3246 dl { … … 3289 3288 li { 3290 3289 margin-left: 2em; 3291 margin-right: 2em;<xsl:if test="$xml2rfc-ext-justification='always'"> 3292 text-align: justify;</xsl:if> 3290 margin-right: 2em; 3293 3291 } 3294 3292 ol { … … 3310 3308 p { 3311 3309 margin-left: 2em; 3312 margin-right: 2em;<xsl:if test="$xml2rfc-ext-justification='always'"> 3313 text-align: justify;</xsl:if> 3310 margin-right: 2em; 3314 3311 } 3315 3312 pre { … … 3606 3603 font-size: smaller; 3607 3604 font-weight: bold; 3605 }</xsl:if><xsl:if test="$xml2rfc-ext-justification='always'"> 3606 3607 dd, li, p { 3608 text-align: justify; 3608 3609 }</xsl:if> 3609 3610 … … 3644 3645 } 3645 3646 <xsl:if test="$xml2rfc-ext-justification='print'"> 3646 dd { 3647 text-align: justify; 3648 } 3649 li { 3650 text-align: justify; 3651 } 3652 p { 3647 dd, li, p { 3653 3648 text-align: justify; 3654 3649 } … … 4064 4059 <xsl:template name="insertPreamble" myns:namespaceless-elements="xml2rfc"> 4065 4060 4066 <xsl:variable name="escapeclause"> 4061 <!-- TLP4, Section 6.c.iii --> 4062 <xsl:variable name="pre5378EscapeClause"> 4067 4063 This document may contain material from IETF Documents or IETF Contributions published or 4068 4064 made publicly available before November 10, 2008. The person(s) controlling the copyright in … … 4073 4069 Standards Process, except to format it for publication as an RFC or to translate it into languages 4074 4070 other than English. 4071 </xsl:variable> 4072 4073 <!-- TLP1, Section 6.c.i --> 4074 <xsl:variable name="noModificationTrust200811Clause"> 4075 This document may not be modified, and derivative works of it may not be 4076 created, except to format it for publication as an RFC and to translate it 4077 into languages other than English. 4078 </xsl:variable> 4079 4080 <!-- TLP2..4, Section 6.c.i --> 4081 <xsl:variable name="noModificationTrust200902Clause"> 4082 This document may not be modified, and derivative works of it may not be 4083 created, except to format it for publication as an RFC or to translate it 4084 into languages other than English.<!-- "and" changes to "or" --> 4085 </xsl:variable> 4086 4087 <!-- TLP1..4, Section 6.c.ii --> 4088 <xsl:variable name="noDerivativesTrust200___Clause"> 4089 This document may not be modified, and derivative works of it may not be 4090 created, and it may not be published except as an Internet-Draft. 4075 4091 </xsl:variable> 4076 4092 … … 4202 4218 <xsl:choose> 4203 4219 <xsl:when test="/rfc/@ipr = 'noModificationTrust200811'"> 4204 This document may not be modified, and derivative works of it may 4205 not be created, except to format it for publication as an RFC and 4206 to translate it into languages other than English. 4220 <xsl:value-of select="$noModificationTrust200811Clause"/> 4207 4221 </xsl:when> 4208 4222 <xsl:when test="/rfc/@ipr = 'noDerivativesTrust200811'"> 4209 This document may not be modified, and derivative works of it may 4210 not be created, and it may not be published except as an Internet-Draft. 4223 <xsl:value-of select="$noDerivativesTrust200___Clause"/> 4211 4224 </xsl:when> 4212 4225 <xsl:when test="/rfc/@ipr = 'noModificationTrust200902'"> 4213 This document may not be modified, and derivative works of it may 4214 not be created, except to format it for publication as an RFC or 4215 to translate it into languages other than English. 4226 <xsl:value-of select="$noModificationTrust200902Clause"/> 4216 4227 </xsl:when> 4217 4228 <xsl:when test="/rfc/@ipr = 'noDerivativesTrust200902'"> 4218 This document may not be modified, and derivative works of it may 4219 not be created, and it may not be published except as an Internet-Draft. 4229 <xsl:value-of select="$noDerivativesTrust200___Clause"/> 4220 4230 </xsl:when> 4221 4231 <!-- escape clause moved to Copyright Notice as of 2009-11 --> 4222 4232 <xsl:when test="/rfc/@ipr = 'pre5378Trust200902' and $pub-yearmonth < 200911"> 4223 <xsl:value-of select="$ escapeclause"/>4233 <xsl:value-of select="$pre5378EscapeClause"/> 4224 4234 </xsl:when> 4225 4235 … … 4513 4523 </xsl:choose> 4514 4524 4515 <!-- special case: RFC5378 escape applies to RFCs as well --> 4516 <!-- for IDs historically in Status Of This Memo, over here starting 2009-11 --> 4517 <xsl:if test="(/rfc/@number or $pub-yearmonth >= 200911) and /rfc/@ipr = 'pre5378Trust200902'"> 4518 <t> 4519 <xsl:value-of select="$escapeclause"/> 4520 </t> 4521 </xsl:if> 4525 <!-- add warning for incpmpatible IPR attribute on RFCs --> 4526 <xsl:variable name="stds-rfc-compatible-ipr" 4527 select="/rfc/@ipr='pre5378Trust200902' or /rfc/@ipr='trust200902' or /rfc/@ipr='trust200811' or /rfc/@ipr='full3978' or /rfc/@ipr='full3667' or /rfc/@ipr='full2026'"/> 4528 4529 <xsl:variable name="rfc-compatible-ipr" 4530 select="$stds-rfc-compatible-ipr or /rfc/@ipr='noModificationTrust200902' or /rfc/@ipr='noDerivativesTrust200902' or /rfc/@ipr='noModificationTrust200811' or /rfc/@ipr='noDerivativesTrust200811'"/> 4531 <!-- TODO: may want to add more historic variants --> 4532 4533 <xsl:variable name="is-stds-track" 4534 select="$submissionType='IETF' and /rfc/@category='std'"/> 4535 4536 <xsl:variable name="status-diags"> 4537 <xsl:choose> 4538 <xsl:when test="$is-stds-track and /rfc/@number and /rfc/@ipr and not($stds-rfc-compatible-ipr)"> 4539 <xsl:value-of select="concat('The /rfc/@ipr attribute value of ',/rfc/@ipr,' is not allowed on standards-track RFCs.')"/> 4540 </xsl:when> 4541 <xsl:when test="/rfc/@number and /rfc/@ipr and not($rfc-compatible-ipr)"> 4542 <xsl:value-of select="concat('The /rfc/@ipr attribute value of ',/rfc/@ipr,' is not allowed on RFCs.')"/> 4543 </xsl:when> 4544 <xsl:otherwise/> 4545 </xsl:choose> 4546 </xsl:variable> 4547 4548 <xsl:choose> 4549 <xsl:when test="$status-diags!=''"> 4550 <t> 4551 <spanx><xsl:value-of select="$status-diags"/></spanx> 4552 </t> 4553 <xsl:call-template name="error"> 4554 <xsl:with-param name="msg" select="$status-diags"/> 4555 <xsl:with-param name="inline" select="'no'"/> 4556 </xsl:call-template> 4557 </xsl:when> 4558 <xsl:when test="(/rfc/@number or $pub-yearmonth >= 200911) and /rfc/@ipr = 'pre5378Trust200902'"> 4559 <!-- special case: RFC5378 escape applies to RFCs as well --> 4560 <!-- for IDs historically in Status Of This Memo, over here starting 2009-11 --> 4561 <t> 4562 <xsl:value-of select="$pre5378EscapeClause"/> 4563 </t> 4564 </xsl:when> 4565 <xsl:when test="not(/rfc/@number)"> 4566 <!-- not an RFC, handled elsewhere --> 4567 </xsl:when> 4568 <xsl:when test="not(/rfc/@ipr)"> 4569 <!-- no IPR value; done --> 4570 </xsl:when> 4571 <xsl:when test="/rfc/@ipr='trust200902' or /rfc/@ipr='trust200811' or /rfc/@ipr='full3978' or /rfc/@ipr='full3667' or /rfc/@ipr='full2026'"> 4572 <!-- default IPR, allowed here --> 4573 </xsl:when> 4574 <xsl:when test="/rfc/@ipr='noModificationTrust200811'"> 4575 <t> 4576 <xsl:value-of select="$noModificationTrust200811Clause"/> 4577 </t> 4578 </xsl:when> 4579 <xsl:when test="/rfc/@ipr='noModificationTrust200902'"> 4580 <t> 4581 <xsl:value-of select="$noModificationTrust200902Clause"/> 4582 </t> 4583 </xsl:when> 4584 <xsl:when test="/rfc/@ipr='noDerivativesTrust200902' or /rfc/@ipr='noDerivativesTrust200811'"> 4585 <t> 4586 <xsl:value-of select="$noDerivativesTrust200___Clause"/> 4587 </t> 4588 </xsl:when> 4589 <xsl:otherwise> 4590 <xsl:variable name="msg" select="concat('unexpected value of /rfc/@ipr for this type of document: ',/rfc/@ipr)"/> 4591 <t> 4592 <spanx><xsl:value-of select="$msg"/></spanx> 4593 </t> 4594 <xsl:call-template name="error"> 4595 <xsl:with-param name="msg" select="$msg"/> 4596 <xsl:with-param name="inline" select="'no'"/> 4597 </xsl:call-template> 4598 </xsl:otherwise> 4599 </xsl:choose> 4522 4600 4523 4601 </section> … … 6241 6319 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 6242 6320 <!-- when RCS keyword substitution in place, add version info --> 6243 <xsl:if test="contains('$Revision: 1.54 3$',':')">6244 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.54 3$', 'Revision: '),'$','')),', ')" />6321 <xsl:if test="contains('$Revision: 1.547 $',':')"> 6322 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.547 $', 'Revision: '),'$','')),', ')" /> 6245 6323 </xsl:if> 6246 <xsl:if test="contains('$Date: 2011-0 2-18 21:03:40$',':')">6247 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-0 2-18 21:03:40$', 'Date: '),'$','')),', ')" />6324 <xsl:if test="contains('$Date: 2011-04-17 09:42:41 $',':')"> 6325 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-04-17 09:42:41 $', 'Date: '),'$','')),', ')" /> 6248 6326 </xsl:if> 6249 6327 <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.