Atlassian JIRA   History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: XRP-67
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Reporter: Bill Bruyn
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
xReporter

Allow multiple styles per report definition

Created: 02/May/05 05:15 PM   Updated: 27/Oct/07 08:11 PM
Component/s: xReporter-Cocoon
Affects Version/s: None
Fix Version/s: 1.3

File Attachments: 1. HTML File soma-online.html (19 kb)
2. HTML File soma-pill.html (17 kb)
3. HTML File soma-tablet.html (15 kb)

Issue Links:
Incorporates
 
This issue is part of:
XRP-75 Plugable custom formats for reports Minor Resolved


 Description   
A handful of people have asked that we allow more than one stylesheet of the same format per report definition. e.g., for some report id="foo", I might like a foo-style1.xsl and a foo-style2.xsl.

How would the client know which style to render?


 All   Comments   Change History      Sort Order:
Comment by Marc Portier [03/May/05 03:21 AM]
formally linking issues

Comment by Bill Bruyn [06/May/05 06:54 PM]
Earmarking for 1.3.0

Comment by Kristof Van Cleemput [26/Jul/07 06:28 AM]
Including multiple style sheets voor PDF and XLS

Comment by Bruno Dumon [21/Sep/07 04:36 AM]
It is now possible to specify the location of the XSL or the style parameterization file in the format file.

This is done with f:stylesheet and f:styleconf tags, for example:

<?xml version="1.0"?>
<f:format xmlns:f="http://outerx.org/xreporter/format/1.0">
  <f:info>
    <f:formattype>html</f:formattype>
    <f:name>HTML custom styled</f:name>
    <f:chunking enabled="true" size="50"/>
  </f:info>
  <f:stylesheet>custom-style.xsl</f:stylesheet>
  <f:styleconf>custom-style.xml</f:styleconf>
</f:format>

The locations of these files are resolved relative to the location of the format file.

The values specified in the format file have precedence over the filename-based lookup of the custom stylesheet files (<report-definition-id>.xsl).