Share

DITA Open Toolkit

Tracker: Patches

5 CSS for ditamap-to-HTML TOC - ID: 1481586
Last Update: Settings changed ( imagiczhang )

map2htmtoc.xsl is not aware of CSS, so sometimes it
looks ugly.

This patch (on DITA-OT 1.2) provides basic stylesheet
support for map2htmtoc:
- Honours user stylesheet variables $args.css and
$args.csspath, just like topic-to-html transform.
- Puts optional class attribute $args.xhtml.toc.class
on <body> of resulting HTML, so CSS can detect ToC and
style it independently of topics.
- Calls empty but overridable templates gen-user-head,
gen-user-scripts, gen-user-styles so that plugins can
override default behaviour in a shell.
- Externalizes contenttarget XSLT parameter as
$args.xhtml.contenttarget, so target="contentwin" can
be disabled from ant build file if desired.

Missing, requires updates to map DTD:
- generic @outputclass recognition for maps (map.dtd
does not define outputclass attribute)
- commonltr or commonrtl CSS linking (map does not
define xml:lang attribute).


Deborah Pickett ( debbiep-sf ) - 2006-05-04 04:27

5

Closed

Fixed

Yuanpeng (Stephen) Zhang

Code-XSL

None

Public


Comments ( 4 )

Date: 2007-09-20 03:29
Sender: imagiczhangProject Admin


Andrew,
If you want to apply the patch, you can use patch command in linux. In
windows, I use eclipse to apply the patch to my developing code.


Date: 2007-09-17 06:39
Sender: wxzhang_frank


to roxvillerooster:
Where do I place the PATCH file in my OT structure?
What you should do is just add the codes with the flag "+"( in the patch
files) to the files what was mentioned in the patch files.
What command do I run to apply it?
The command sample:
ant -f build.xml -Dargs.input=thefiletotransformated
-Dotherpaprameters=value -Dargs.css=Nameofuser-specifiedCSSfile.

You can get more details about the dita parameters on
http://dita-ot.sourceforge.net/doc/ot-userguide131/xhtml/processing/antparms.html


Date: 2007-09-06 13:00
Sender: roxvillerooster


Are there any instructions on installing this patch? Is there a standard
procedure?
Where do I place the PATCH file in my OT structure?
What command do I run to apply it?


Date: 2006-05-11 22:27
Sender: rdandersonProject Admin

Logged In: YES
user_id=1269447

With the current version of the map (DITA 1.0), the xml:lang
attribute is available on maps and topicref elements - in
the pre-OASIS version it was not. So, it should now be
possible to use one of the common stylesheets.


Attached Files ( 2 )

Filename Description Download
dita-map-html-toc-css.patch Download
dita-map-html-toc-css-second-bit.patch replacement patch for OT 1.3 file build_dita2xhtml.xml Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2007-10-23 10:04 imagiczhang
resolution_id None 2007-10-23 10:04 imagiczhang
close_date - 2007-10-23 10:04 imagiczhang
File Added 202732: dita-map-html-toc-css-second-bit.patch 2006-11-14 06:00 debbiep-sf
assigned_to nobody 2006-07-11 08:26 imagiczhang
File Added 176790: dita-map-html-toc-css.patch 2006-05-04 04:27 debbiep-sf