W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2010

Calabash: adding redundant namespaces to p:xslt ?

From: Manfred Staudinger <manfred.staudinger@gmail.com>
Date: Thu, 16 Sep 2010 01:01:38 +0200
Message-ID: <AANLkTimtZjEUzhFTdHN8UXXpR89czx6NdCHcBc0m_jZS@mail.gmail.com>
To: xproc-dev <xproc-dev@w3.org>
Hi List,

Recently I wanted to add a p:xslt step to my pipeline and first tested
the stylesheet standalone. The input document has a c:file root with
elements in a prefixed namespace mixed with those in no-namespace. The
output should have the same root with some child elements in
no-namespace, nothing difficult. The stylesheet starts with:
   <xsl:stylesheet version="2.0"
When I added the transformation to my pipeline, I found the output had
changed. Every child element had added three namespace declarations to
which are declared on the pipeline root element (p:declare-step) but
not on the stylesheet nor its input document. To get rid of this
annoyance I had to specify
      exclude-result-prefixes="dwf cx dwfx xs"
but this makes the stylesheet invalid outside the xproc:
      XTSE0808: Namespace prefix cx has not been declared

Is there a better way to handle this or to avoid the implicit
declaration of those namespaces altogether? (Using Calabash 0.9.22)

Thanks in advance,

Received on Wednesday, 15 September 2010 23:02:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:54 UTC