Re: no xmlns on xhtml output?

* Axel Kittenberger wrote:
>Is it possible to get tidy to ommit the "xmlns" attribute in the xhtml output?

Not yet.

>I want to post-process the output with a XSLT stylesheet, and well XSLT get's 
>all confused just because of this xmlns namespace attribute.

You need to declare a prefix for the XHTML namespace and use it in
XPaths, e.g.

  <xsl:transform
    version = '1.0'
    ...
    xmlns:x = 'http://www.w3.org/1999/xhtml'
  >

  <xsl:template match = 'x:a'>
    ...
  </xsl:template>

  ...

Received on Sunday, 31 August 2003 16:03:51 UTC