[lxml-dev] xslt transformations and django templates
I am not sure if this is the proper place for this, but here's my question. I have about 4000 html documents that I am trying to transform into django templates. Everything has been working well but I am trying to add some django template variables using xslt. As I understand it a curly brace is treated specially by xslt in general and so i have to do something like `div class="{{{{ somevariable }}}}"` to end up with a django template tag `div class="{{ somevariable }}"` in the transformed document. no big deal, but when I try `a name="{{ somevariable }}"` i end up with escaped curly braces. I have some code posted at http://stackoverflow.com/questions/4674217/building-django-template-files-wi... that will probably make more sense than I do, but I am trying to find out if there is a way to turn off the urlencoding for anchor tags, does that make sense? I am using lxml 2.2.8. thanks brandon
I have updated my question here: http://stackoverflow.com/questions/4684614/is-there-a-way-to-disable-urlenco... hopefully this is a little clearer. thanks brandon
participants (1)
-
Brandon M Lewis