When transforming xhtml documents, I found out that sometimes an
xml:space="preserve" attribute is added.
If the xhtml document has doctype XHTML Basic 1.0, the attribute is
added. If the doctype is XHTML 1.0 Strict, it isn't.
Why this difference, and how do I prevent it?
The are probably defaulted by the DTD. To prevent them just add a
no-op template:
<xsl:template match="@xml:space"/>
cheers
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--