From: Norman W. <nw...@us...> - 2006-05-19 13:04:23
|
Update of /cvsroot/docbook/docbook/relaxng/tools In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5210 Modified Files: doc2dtd.xsl Log Message: Fake the methodparam content model to avoid the UPA Index: doc2dtd.xsl =================================================================== RCS file: /cvsroot/docbook/docbook/relaxng/tools/doc2dtd.xsl,v retrieving revision 1.10 retrieving revision 1.11 diff -u -U2 -r1.10 -r1.11 --- doc2dtd.xsl 5 Apr 2006 14:53:40 -0000 1.10 +++ doc2dtd.xsl 19 May 2006 13:04:19 -0000 1.11 @@ -225,4 +225,30 @@ </xsl:when> + <!-- Handle the UPA problem in modifier... --> + <xsl:when test="@name = 'db.methodparam'"> + <dtd:element name="methodparam"> + <dtd:group> + <dtd:choice repeat="*"> + <dtd:ref name="modifier"/> + <dtd:ref name="type"/> + </dtd:choice> + <dtd:choice> + <dtd:group> + <dtd:ref name="parameter"/> + <dtd:ref name="initializer" repeat="?"/> + </dtd:group> + <dtd:ref name="funcparams"/> + </dtd:choice> + <dtd:choice repeat="*"> + <dtd:ref name="modifier"/> + </dtd:choice> + </dtd:group> + </dtd:element> + <dtd:attlist name="methodparam"> + <xsl:apply-templates select="rng:element/doc:attributes" + mode="attributes"/> + </dtd:attlist> + </xsl:when> + <xsl:otherwise> <xsl:apply-templates/> |