About pyana ...

Barghest barghest at wanadoo.fr
Fri Nov 8 10:18:24 EST 2002


Hi,

import Pyana
def formatRef():
    return "Hello <b> %s </b>" % 'foo'
...
Pyana.installGlobalExtension( 'pyNS', formatRef, 'formatRef' )
data = Pyana.transform2String( source = readData( "fichier.xml" ), style =
readData( "test3.xsl" ) )

=> Hello <b> foo </b>

Just a simple question.
Why all my tags returned from my functions are always converted to entities
??
How can I obtain "Hello <b> foo </b>"  ?





More information about the Python-list mailing list