W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

Re: no xmlns on xhtml output?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 31 Aug 2003 22:03:30 +0200
To: Axel Kittenberger <axel@kittenberger.net>
Cc: html-tidy@w3.org
Message-ID: <3f8e3924.109279615@smtp.bjoern.hoehrmann.de>

* 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC