xslt.py whould return the result as a string (was: Re: dc:language)

Eric van der Vlist vdv at dyomedea.com
Fri Oct 13 05:51:54 EST 2006


Le jeudi 12 octobre 2006 =E0 12:59 -0400, Sam Ruby a =E9crit :
> Eric van der Vlist wrote:
> > =

> > RSS 1.0 <dc:language/> elements don't seem to find their way into the
> > resulting Atom entries...
> > =

> > This RSS 1.0 channel includes <dc:language/> elements:
> > http://apassant.net/blog/rss.php
> =

> Cool!  A test case!
> =

> Captured:
> =

> http://intertwingly.net/code/venus/tests/data/reconstitute/dc_lang.xml
> =

> And fixed.  Pull the latest.  :-)

That's working fine, thanks!

And now another one :=3D)

The current version of xslt.py doesn't seem to support the case when its
"output_file" argument is None. In that case, other shell script such as
py.py return the result while xslt.py just returns nothing and that
breaks the pipe when xslt.py is used to run a filter.

When we work in DOM mode, saving the transformation result with:

res =3D style.saveResultToString(result)

and returning this string does the trick.

In command line mode, I guess that you'd have to save the result in a
temporary file and return the content of this file...

Thanks,

Eric

> - Sam Ruby
> =

> =

-- =

GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Ceci est une partie de message
	=3D?ISO-8859-1?Q?num=3DE9riquement?=3D =3D?ISO-8859-1?Q?_sign=3DE9e?=3D
Url : /archives/devel/attachments/20061012/6f532657/attachment.pgp


More information about the devel mailing list