Ticket #494 (closed question: fixed)
Ref contraction with default XSLT?
| Reported by: | cmueller | Owned by: | dmisev |
|---|---|---|---|
| Priority: | minor | Milestone: | Release v0.1.3 |
| Component: | XSLT | Version: | v0.1.3 |
| Keywords: | Cc: | vzholudev, dmisev, kohlhase, clange | |
| Blocked By: | Blocking: | ||
| Due to close: | Include in GanttChart: | no | |
| Dependencies: | Due to assign: |
Description
Do the JOMDoc default XSLT initialise the contraction of ref-elements?
When calling jomdoc transform -X exam08-ref.omdoc with the below input file:
<?xml version="1.0"?> <omdoc xmlns="http://omdoc.org/ns" xmlns:dc="http://purl.org/dc/elements/1.1/"> <theory xml:id="exam08-ref.t"> <import from="graph/en/graph.omdoc#graph.t" /> <import from="graph/en/tree.omdoc#tree.t" /> <import from="graph/en/fun.omdoc#fun.t" /> <tgroup layout="section"> <metadata> <dc:title>Graphs</dc:title> </metadata> <ref xref="./graph/problems/graph1.omdoc#graph1.ex" /> </tgroup> <tgroup layout="section"> <metadata> <dc:title>Trees</dc:title> </metadata> <ref xref="./tree/problems/tree1.omdoc#tree1.ex" /> </tgroup> <tgroup layout="section"> <metadata> <dc:title>Function</dc:title> </metadata> <ref xref="./fun/problems/fun1.omdoc#fun1.ex" /> </tgroup> </theory> </omdoc>
The output is as follows
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="omdoc-default.css"/>
<title/>
</head>
<body>
<div class="theory" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dc="http://purl.org/dc/elements/1.1/">
<div class="omdoc-tgroup">
<h2>1. Graphs</h2>
</div>
<div class="omdoc-tgroup">
<h2>1. Trees</h2>
</div>
<div class="omdoc-tgroup">
<h2>1. Function</h2>
</div>
</div>
</body>
</html>
Is this right? I thought that at some point in time the XSLT did flatten a document automatically. How is this currently done for the JOBAD demo?
Thanks a lot in advance!
Change History
Note: See
TracTickets for help on using
tickets.
