allow link/@class

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@1850 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2009-10-02 21:10:58 +00:00
parent 4951269754
commit 631176b79d
3 changed files with 6 additions and 1 deletions

View File

@ -54,6 +54,7 @@
<!ATTLIST link
href %URI; #IMPLIED
title CDATA #IMPLIED
class CDATA #IMPLIED
>
<!ELEMENT image (#PCDATA)>

View File

@ -95,7 +95,6 @@
<xs:group name="Inline.class">
<xs:choice>
<xs:element ref="link"/>
<xs:element ref="link"/>
<xs:element ref="em"/>
<xs:element ref="image"/>
@ -126,6 +125,7 @@
<xs:element ref="image" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="href" type="xs:anyURI" use="optional"/>
<xs:attribute name="class" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>

View File

@ -69,6 +69,10 @@
</xsl:variable>
<a href="{$href}">
<xsl:if test="@class">
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</a>
</xsl:template>