Ticket #633 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

XSLT and CSS modification to accomodate different list styles

Reported by: susanne Assigned to: alex
Priority: medium Milestone:
Component: ambra Version: 0.8
Keywords: xslt bullets css Cc:
Blocking: Blocked By:

Description

Currently, XSLT checks for list-type="bullet" and displays as an HTML unordered list <ul>, otherwise, it displays the list as an ordered list <ol>. Research articles sometimes require other kinds of ordered lists. Please modify XSLT to check for different list-type values and transform them into appropriate HTML unordered or ordered lists with specific CSS class values. Please modify CSS with the new class values.

When XML says: <list list-type="bullet"> Transform to HTML: <ul>

When XML says: <list list-type="order"> Transform to HTML: <ol>

When XML says: <list list-type="simple"> Transform to HTML: <ol class="simple">

When XML says: <list list-type="roman-lower"> Transform to HTML: <ol class="roman-lower">

When XML says: <list list-type="roman-upper"> Transform to HTML: <ol class="roman-upper">

When XML says: <list list-type="alpha-lower"> Transform to HTML: <ol class="alpha-lower">

When XML says: <list list-type="alpha-upper"> Transform to HTML: <ol class="alpha-upper">

Add to CSS: ol.simple {list-style-type: none;} ol.roman-lower {list-style-type: lower-roman;} ol.roman-upper {list-style-type: upper-roman;} ol.alpha-lower {list-style-type: lower-alpha;} ol.alpha-upper {list-style-type: upper-alpha;}

References: http://dtd.nlm.nih.gov/publishing/tag-library/2.0/n-3ae0.html http://www.w3schools.com/css/pr_list-style-type.asp

Dependency Graph

Change History

09/11/07 16:00:41 changed by amit

  • keywords set to xslt bullets css.
  • owner deleted.
  • version set to 0.8.
  • component changed from topaz to publishing-app.
  • priority changed from unassigned to medium.

09/20/07 11:09:58 changed by amit

  • type changed from unassigned to enhancement.

10/29/07 20:46:46 changed by amit

  • owner set to alex.

11/07/07 18:19:12 changed by alex

  • status changed from new to closed.
  • resolution set to fixed.

(In [4077]) Fixes #633 - added new list styles to the XSL template and added corresponding styles to pone_screen.css files for each journal

11/08/07 11:58:17 changed by alex

(In [4078]) re #633 - a cleaner implementation (Thanks for the suggestion Amit!)

11/24/07 16:00:10 changed by alex

(In [4110]) merge of 4077 and 4078 from head re #633 (added new list styles).

01/02/08 13:23:21 changed by jsuttor

(In [4296]) Recorded merge of revisions 4110 via svnmerge from http://gandalf.topazproject.org/svn/branches/0.8.2

........

r4110 | alex | 2007-11-24 16:00:10 -0800 (Sat, 24 Nov 2007) | 1 line

merge of 4077 and 4078 from head re #633 (added new list styles).

........