author URIs

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@1214 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2007-09-13 21:32:33 +00:00
parent 3b5a972c3a
commit e373d066cf
4 changed files with 17 additions and 3 deletions

View File

@ -20,13 +20,14 @@
<!ELEMENT url (#PCDATA)* >
<!ELEMENT registry EMPTY>
<!ELEMENT expires (#PCDATA)* >
<!ELEMENT author ( firstname, surname, authornote?, org?, email?, jid? ) >
<!ELEMENT author ( firstname, surname, authornote?, org?, email?, jid?, uri? ) >
<!ELEMENT firstname (#PCDATA)* >
<!ELEMENT surname (#PCDATA)* >
<!ELEMENT authornote EMPTY>
<!ELEMENT org (#PCDATA)* >
<!ELEMENT email (#PCDATA)* >
<!ELEMENT jid (#PCDATA)* >
<!ELEMENT uri (#PCDATA)* >
<!ELEMENT revision ( version, date, initials, remark ) >
<!ELEMENT version (#PCDATA)* >
<!ELEMENT date (#PCDATA)* >

View File

@ -536,8 +536,8 @@ IANA Service Location Protocol, Version 2 (SLPv2) Templates</link></span> <note>
<author>
<firstname>Peter</firstname>
<surname>Saint-Andre</surname>
<email>stpeter@jabber.org</email>
<jid>stpeter@jabber.org</jid>
<uri>https://stpeter.im/</uri>
</author>
" >
<!ENTITY dizzyd "

View File

@ -123,8 +123,9 @@
<xs:element name='surname' type='xs:string'/>
<xs:element name='authornote' type='empty' minOccurs='0'/>
<xs:element name='org' type='xs:string' minOccurs='0'/>
<xs:element name='email' type='xs:string'/>
<xs:element name='email' type='xs:string' minOccurs='0'/>
<xs:element name='jid' type='xs:string' minOccurs='0'/>
<xs:element name='uri' type='xs:string' minOccurs='0'/>
</xs:sequence>
</xs:complexType>
</xs:element>

12
xep.xsl
View File

@ -306,6 +306,7 @@
<xsl:variable name='org.count' select='count(org)'/>
<xsl:variable name='email.count' select='count(email)'/>
<xsl:variable name='jid.count' select='count(jid)'/>
<xsl:variable name='uri.count' select='count(uri)'/>
<xsl:variable name='authornote.count' select='count(authornote)'/>
<xsl:if test='$authornote.count &gt; 0'>
See <a href='#authornote'>Author Note</a><br />
@ -333,6 +334,17 @@
</xsl:attribute>
<xsl:value-of select='jid' />
</a>
<br />
</xsl:if>
<xsl:if test='$uri.count &gt; 0'>
URI:
<a>
<xsl:attribute name='href'>
<xsl:value-of select='uri' />
</xsl:attribute>
<xsl:value-of select='uri' />
</a>
<br />
</xsl:if>
</p>
</xsl:template>