On 26.05.2004 23:41, Lars Huttar wrote:
You must fix your stylesheet. While the elements out of those named templates create elements in a default namespace (probably xhtml namespace), the named template don't do it, so the serializer must reset the default namespace.
http://www.w3.org/TR/REC-xml-names/ with main point in chapter 5.
To spell it out in more detail, your xhtml output is supposed to be in the xhtml namespace, and perhaps the outer part of it (<xhtml:html>, <xhtml:head>, etc.) is. In general these are serialized with xhtml as the default namespace: <html xmlns="...xhtmlNamespaceURI..."> <head> ...
However the template that is being called with call-template is producing <div>'s that are in no namespace, so they can't be serialized as just plain <div> in the above context.
The fix is to make sure the <div>'s are in the xhtml namespace. In other words, in your called template, instead of <div> say <xhtml:div>
Thanks for the clarification/completion.
The simplest way to fix it is probably to set the default namespace to xhtml namespace on the xsl:stylesheet:
<xsl:stylesheet xmlns:xhtml="...xhtmlNamespaceURI..."
xmlns="...xhtmlNamespaceURI..."
xmlns:xyz="some more">Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
