Christoph Zwerschke schrieb:
> The other problem is that the xml-stylesheet instructions goes outside 
> the rss element.
> 
> One possible workaround for both problems is using this:
> 
> <root xmlns:py="http://purl.org/kid/ns#"; py:strip="True">
> <?python
> ...
> ?>
> <div py:replace="sspi"/>
> <rss>
> <bla/>
> </rss>
> </root>

Thanks, that works. It feels a bit hackish though, because the template
is no longer a valid RSS document.

>  > Should I open a ticket with a feature request for this?
> 
> What would you suggest to make this easier here? I would not want to 
> generally enable expression substition for processing instructions.

Why not?

> we are having similar problems with XML comments, where in certain 
> cases, substition is performed, in other cases not:
> http://kid-templating.org/language.html#xml-comments

The mechanism for comments would not work for processing instructions.

> So my suggestion is adding a mechanism for excplicitly enabling and 
> disabling expression substitution. E.g. something like
> <div py:use="substition">...always with substitution here...</div>
> or <div py:pragma="no_substition">...no substitution here...</div>

Why not make this a PI itself?

<? kid substitution="on" ?>
...
<? kid substitution="off" ?>


Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to