It seems that Firefox is fine with the mimetype being text/xml, but
Trac is more strict.  It seems to want the mimetype for an XSL file to
be text/xsl (which should also work in Firefox)

On 4/20/07, K Bouton <[EMAIL PROTECTED]> wrote:
>
> I have three files in my subversion repository, an xsd file, an xml
> file and an xsl file.
> Using a regular browser, if I browse to the xml file, it is
> transformed by the xsl file very nicely into an html page, so I know
> it works.
>
> When I use trac (0.10). and click my way through to the xml file via
> the browse source menu and click onthe xml file, I get a file svn:mime-
> type set to text/xml with the line numbers etc. Fine. But if I click
> on "original format" at the bottom of the page, I would expect the
> transformed html page, as above. Instead what I get is an error
> message
>
> Error loading stylesheet: An XSLT stylesheet does not have an XML
> mimetype:
> http://url/then/path/to/file.xsl - which when I paste into the firefox
> browser address is n fact a good url?
>
> And if the mimetype was wrong - why wouldit work when I view the file
> from outside of TracBrowser?
>
> Thanks
>
> Katherine
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to