- <template match="html:style|html:object[@type='text/css']"/>
- <template match="html:object[@type='text/javascript']">
- <html:script type="{@type}" src="{@data}">
+ <template match="html:style[&wrapped; and not(ancestor::html:head)]|html:object[@type='text/css' and &wrapped;]" mode="书社:finalize" priority="0"/>
+ <template match="html:object[@type='text/javascript']" mode="书社:finalize" priority="0">
+ <element name="script" namespace="&xhtml;">
+ <attribute name="type">
+ <value-of select="@type"/>
+ </attribute>
+ <attribute name="src">
+ <value-of select="@data"/>
+ </attribute>