Edgewall Software
Modify

Opened 17 years ago

Closed 15 years ago

#5194 closed enhancement (duplicate)

tracBrowser does not display a transformed xml file

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: version control/browser Version: 0.10
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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

Attachments (0)

Change History (4)

comment:1 by sid, 17 years ago

Keywords: needinfo added

Do you have an example you could point us to (or can upload XML and XSL examples to this ticket)? Does this work on other browsers? Which Firefox version are you using?

comment:2 by sid, 16 years ago

Keywords: needinfo removed
Severity: majornormal
Type: defectenhancement

Ahh, I see the issue. To see the raw XML with accompanying XSL formatting, you need both files to be looking at the raw files. Instead, you're looking at the raw XML, and it points to the Trac-ified XSL file. This sounds like an enhancement to support XML/XSL rendering now than a defect.

comment:3 by Remy Blank, 16 years ago

Milestone: 2.0
Owner: Christian Boos removed

comment:4 by Christian Boos, 15 years ago

Milestone: 2.0
Resolution: duplicate
Status: newclosed

This actually works as expected in 0.11 and even in 0.10.5, but was documented only in 0.11.2. See #7603.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.