Right now I'm using Firefox 2.x and I haven't had any sort of XSLT
issues until now. Was the way I tried to have the XML doc reference
the template correct?
On Apr 7, 5:15 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> Maybe your browser doesn't support XSLT?On Mon, Apr 7, 2008 at 12:55 PM, Joe
> Tseng <[EMAIL PROTECTED]> wrote:
> > Thanks to the list for the help earlier... Now I'm trying to apply an XSLT
> > document to the generated XML and nothing seems to show up. I suspect if it
> > worked as it's supposed to you'd see two code 200 msgs in STDOUT - one for
> > the XML itself and one for the XSLT document. So far I'm only getting one
> > and I can see the contents of my XSLT doc only if I look directly at it with
> > the browser. Is this something else that is blindingly obvious for others?
>
> > My code.py is as follows:
>
> > urls = (
> > "/", "index",
> > "/main.xsl", "xslmain"
> > )
> > ...
> > xmlstr = "<?xml version=\"1.0\"
> > encoding=\"UTF-8\"?>\n<?xml-stylesheet type=\"text/xsl\"
> > href=\"./main.xsl\"?>\n"
> > xmlstr = xmlstr + etree.tostring(runlist, pretty_print=True)
> > ...class xslmain:
> > def GET (self):
> > web.header("Content-Type","text/xml; charset=utf-8")
> > print open("templates/main.xsl").read()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---