1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 02:02:16 -05:00

councilnote

This commit is contained in:
stpeter 2012-01-11 10:50:27 -07:00
parent 59f5288095
commit c940f5c79f
3 changed files with 29 additions and 2 deletions

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
<!ELEMENT xep ( header, section1* ) >
<!ATTLIST xep
xmlns CDATA '' >
<!ELEMENT header ( title, abstract, legal, number, status, lastcall*, interim*, type, sig, approver*, dependencies, supersedes, supersededby, shortname, schemaloc*, registry?, discuss?, expires?, author+, revision+ ) >
<!ELEMENT header ( title, abstract, legal, number, status, lastcall*, interim*, type, sig, approver*, dependencies, supersedes, supersededby, shortname, schemaloc*, registry?, discuss?, expires?, author+, revision+, councilnote? ) >
<!ELEMENT title (#PCDATA)* >
<!ELEMENT abstract (#PCDATA)* >
<!ELEMENT legal ( copyright, permissions, warranty, liability, conformance ) >
@ -67,6 +67,7 @@ THE SOFTWARE.
<!ELEMENT date (#PCDATA)* >
<!ELEMENT initials (#PCDATA)* >
<!ELEMENT remark ( p | ul )* >
<!ELEMENT councilnote (#PCDATA)* >
<!ELEMENT section1 ( div | p | section2 | example | code | ul | ol | dl | table )* >
<!ATTLIST section1
topic CDATA ''

16
xep.xsd
View File

@ -76,6 +76,7 @@ THE SOFTWARE.
<xs:element name='expires' minOccurs='0' type='xs:string'/>
<xs:element ref='author' minOccurs='1' maxOccurs='unbounded'/>
<xs:element ref='revision' minOccurs='1' maxOccurs='unbounded'/>
<xs:element ref='councilnote' minOccurs='0'/>
</xs:sequence>
</xs:complexType>
</xs:element>
@ -180,6 +181,21 @@ THE SOFTWARE.
</xs:complexType>
</xs:element>
<xs:element name='councilnote'>
<xs:complexType>
<xs:choice maxOccurs='unbounded'>
<xs:element ref='code' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='div' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='dl' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='example' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ol' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='p' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='table' minOccurs='0' maxOccurs='unbounded'/>
<xs:element ref='ul' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name='remark'>
<xs:complexType>
<xs:choice>

10
xep.xsl
View File

@ -145,6 +145,8 @@ OR OTHER DEALINGS IN THE SOFTWARE.
<td><xsl:value-of select='/xep/header/revision[position()=1]/date'/></td>
</tr>
</table>
<!-- COUNCIL NOTE -->
<xsl:apply-templates select='/xep/header/councilnote'/>
<!-- DEPLOYABILITY -->
<hr />
<xsl:variable name='thestatus' select='/xep/header/status'/>
@ -431,6 +433,14 @@ OR OTHER DEALINGS IN THE SOFTWARE.
</div>
</xsl:template>
<xsl:template match='councilnote'>
<hr />
<div>
<h3>COUNCIL NOTE</h3>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match='author' mode='meta'>
<meta>
<xsl:attribute name='name'><xsl:text>DC.Creator</xsl:text></xsl:attribute>