xslt quoting

Alex Schröder kensanata at gmail.com
Thu Oct 7 09:49:52 EST 2010

I'm trying to grapply with some XSLT problems and took a look at xslt.py.
There, I noticed the following code:

    if string.find("'")<0:
        return "'" + string + "'"
    elif string.find("'")<0:
        return '"' + string + '"'
        # unclear how to quote strings with both types of quotes for libxslt
        return "'" + string.replace("'",apos) + "'"

Without having any test code at hand, it seems to me that line 3 should use
'"' instead of "'" -- what do you think?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: </archives/devel/attachments/20101007/6ba4571d/attachment.html>

More information about the devel mailing list