[Home] [By Thread] [By Date] [Recent Entries]
Wendell Piez wapiez@xxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Indeed, the xsl:namespace instruction will be ignored or used for all node types except document nodes, which will raise an error. In addition, if the stylesheet is complex, you may want to just add the namespace node to the root node, so that you do not have to add it to all your other node creation instructions: <xsl:template match="/*"> <xsl:copy> <xsl:namespace name="epub">http://www.idpf.org/2007/ops</xsl:namespace> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template>
Yes, the namespace fixup process will take care of it (see http://www.w3.org/TR/xslt20/#namespace-fixup). Cheers, Abel
|

Cart



