Change the schema to allow code. Also have to implement it as copying the node to the output document. There might be a better way but I do not know of it.
This commit is contained in:
@@ -66,8 +66,12 @@
|
||||
|
||||
|
||||
<xs:complexType name="Function" mixed="true">
|
||||
<xs:sequence>
|
||||
<xs:element name="Link" minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:choice>
|
||||
<xs:element name="Link" />
|
||||
<!-- HTML elements we want to let through. -->
|
||||
<xs:element name="code" />
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required" />
|
||||
<xs:attribute name="return" type="xs:string" use="optional" />
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
hr {
|
||||
width: 90%
|
||||
}
|
||||
code {
|
||||
font-family: monospace
|
||||
}
|
||||
.trigger {
|
||||
cursor: pointer
|
||||
}
|
||||
@@ -289,4 +292,9 @@
|
||||
<br />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- XXX: This is annoying, how can we tell xsl to just pass the html through? -->
|
||||
<xsl:template match="sm:code">
|
||||
<xsl:copy><xsl:apply-templates /></xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user