[mdoc] Generate <threadsafe/> from <threadSafety/>.
authorJonathan Pryor <jonpryor@vt.edu>
Thu, 2 Sep 2010 17:46:24 +0000 (13:46 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Thu, 2 Sep 2010 22:27:08 +0000 (18:27 -0400)
We also need to update monodoc-ecma.xsd so that multiple <para/>s are valid
within <threadsafe/>; otherwise, we report validation errors on the
'mdoc x-msitomsx' output.

mcs/tools/mdoc/Resources/monodoc-ecma.xsd
mcs/tools/mdoc/Resources/msitomsx.xsl

index 82f3d836ae8c34ad5af04c8ce0d34eb6cb010539..dc3971b0c6b04984f8a0177104db4a9ab95e2700 100644 (file)
@@ -746,7 +746,7 @@ add masterdoc support?
   <xs:element name="threadsafe">
     <xs:complexType>
      <xs:sequence>
-       <xs:element ref="para" minOccurs="1" />
+       <xs:element ref="para" minOccurs="1" maxOccurs="unbounded" />
      </xs:sequence>
     </xs:complexType>
   </xs:element>
index d9451342246ccab23f289ddb0892d98b836b18f7..e6ac4d5caadaf2e26d223472c7ef9c0db97f8738 100644 (file)
     </permission>
   </xsl:template>
 
+  <xsl:template match="authoring:threadSafety">
+    <threadsafe>
+      <xsl:apply-templates />
+    </threadsafe>
+  </xsl:template>
+
   <xsl:template match="authoring:token">
     <xsl:choose>
       <xsl:when test=". = 'compact_v20_long'">