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

Re: Remove @xmlns:xi AFTER p:xinclude

From: Olivier Jeulin <olivier.jeulin@gmail.com>
Date: Wed, 22 Sep 2010 23:22:06 +0200
Message-ID: <4C9A737E.3070800@gmail.com>
To: xproc-dev <xproc-dev@w3.org>
Le 22/09/2010 21:26, Tony Rogers a ťcrit :
> *Disclaimer:*
> 	XProc newbie here.  Iím back to toying with XProc as an alternative to Ant (which is fine but annoying to use for my purposes).
>
> Ö
>
> I canít shake the feeling that the answer is right in front of me, but Iíve just searched for half an hour with nothing but frustration as the result.
>
> (Grr! =)
>
> All I want to do is run a p:xinclude step, and after the process has finished remove all @xmlns:xi attributes from the result.  I canít seem to figure out how to do it.
>
> And p:delete throws an error (just as the spec says itís supposed toófor whatever reason).  So with the only obvious candidate out the window, I am all kinds of stuck.
>
> The closest thing I found is the @exclude-inline-prefixes, but Iím not dealing with something inline.  Iíve got a very simple p:document on the input port, which is simply p:xincluded and then p:stored.  I have a nagging suspicion that there is a concise way to do this without any significant rewriting (and ideally without any rewriting at all except for the addition of whatever removes the namespace).
>
> ÖHelp?

 From http://lists.w3.org/Archives/Public/xproc-dev/2010May/0008.html
 > > I don't think namespace declarations should be considered as 
attributes. By
 > > the way the p:add-attribute step cannot be used to add namespace
 > > declarations (see [err:XC0059]), the same for the p:delete (see
 > > [err:XC0062]).
(that's your reason ;)

You could just use p:xslt with a transformation that removes those 
namespaces?
Received on Friday, 24 September 2010 07:17:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 24 September 2010 07:17:12 GMT