From: Norman W. <nw...@us...> - 2003-05-06 15:02:32
|
Update of /cvsroot/docbook/litprog In directory sc8-pr-cvs1:/tmp/cvs-serv14221 Modified Files: weave.xweb Log Message: Make w2docbook avoid copying namespace declarations Index: weave.xweb =================================================================== RCS file: /cvsroot/docbook/litprog/weave.xweb,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** weave.xweb 29 Dec 2002 15:19:56 -0000 1.7 --- weave.xweb 6 May 2003 15:02:29 -0000 1.8 *************** *** 1130,1135 **** instruction.</para> ! <para>This stylesheet imports <filename>weave.xsl</filename> for the ! weaving functionality and simply sets the public and system identifiers. </para> --- 1130,1137 ---- instruction.</para> ! <para>This stylesheet turns source fragments and fragment references into ! DocBook elements and removes namespace bindings. Note that <sgmltag>xsl:element</sgmltag> ! is used explicitly instead of <sgmltag>xsl:copy</sgmltag> so that namespace bindings ! aren't copied. </para> *************** *** 1148,1155 **** <xsl:template match="*"> ! <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> ! </xsl:copy> </xsl:template> --- 1150,1157 ---- <xsl:template match="*"> ! <xsl:element name="{local-name(.)}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> ! </xsl:element> </xsl:template> |