Ticket #344 (closed question: fixed)
Integrating the JOMDoc XSLT handling
| Reported by: | cmueller | Owned by: | dmisev |
|---|---|---|---|
| Priority: | major | Milestone: | Release v0.1.3 |
| Component: | XSLT | Version: | |
| Keywords: | Cc: | nmueller | |
| Blocked By: | Blocking: | ||
| Due to close: | YYYY/MM/DD | Include in GanttChart: | no |
| Dependencies: | Due to assign: | YYYY/MM/DD |
Description (last modified by cmueller) (diff)
concerning ticket:343
The org.omdoc RendererFactory? does not allow to set an XSLT. Can you please explain which class/ method I should use to provide an input and XSLT Document as input and to receive a converted XOM document? Thank you!
I am particularly interested to switch the language parameters of the XSLT. Should I use org.omdoc.jomdoc.util.xml.XSLTUtil.transform(Document doc, Context params)? I don't understand how and where the parameters are considered in that method. Can you please explain? Cheers.
Another question refers to ref elements. How are these currently handled? When trying to convert the below document to XHTML, I get an error. Ideally, the ref would not be automatically resolved but rather be replaced by links. Would it be possible to adapt the XSLTs to take a parameter to either resolve refs or convert them into XHTML links?
Input document:
<?xml version="1.0"?> <omdoc xmlns="http://omdoc.org/ns" xmlns:om="http://www.openmath.org/OpenMath" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns" xmlns:m="http://www.w3.org/1998/Math/MathML" modules="CD" version="1.8" xml:id="d21d39ff-68bf-45fe-b7c3-957be6c0d841"> <ref type="include" xml:id="b6824bc8-7c4b-4415-87b1-1a2e137596da" xref="910bac8a-88dc-48c5-98ea-41c5a6bdc8a2" /> <ref type="include" xml:id="50e76767-38a6-421e-a895-1bd134423e38" xref="fc72c925-eb6c-40d7-9d0a-a6d4f28ae657" /> </omdoc>
Error message and output
Processing included Document 3f30537c-9ca2-41ba-88d9-0eb9a701a185 (xref 7ec1974c-ca7d-4653-ae40-3f489f1d81d7) ...
Recoverable error on line 123
FODC0002: java.net.MalformedURLException
Processing included Document 3cb0dffe-1d62-42b5-a6dc-37570a719395 (xref d58dfe47-4ada-44e9-aad9-2b6b8f61063f) ...
Recoverable error on line 123
FODC0002: java.net.MalformedURLException
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" id="3811a2e5-6174-46c8-b99e-780d4b016083">
<head>
<link rel="stylesheet" type="text/css" href="omdoc-default.css" />
<title />
</head>
<body>
</body>
</html>
