[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Getting epub: namespace into root html element
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|