Re: Remove @xmlns:xi AFTER p:xinclude

I guess I would also have expected the p:xinclude step to do this  
namespace cleanup itself, but in any case you should be able to use  
the p:namespace-rename step (with an emtpy @to attribute to force  
remove the namespace).

<p:namespace-rename from="http://www.w3.org/2001/XInclude"/>

Hope this helps,
Romain.


Le 22 sept. 10 à 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?
>
> —Tony

Received on Wednesday, 22 September 2010 21:53:14 UTC