[oXygen-user] Using cref, oxygen, and transforms
George Cristian Bina
Mon Jun 15 16:29:46 CDT 2009
Hi Steve,
oXygen provides simple transformation scenarios to covert a topic
directly to PDF or HTML through a stylesheet. It also provides
transformation scenarios that wrap the DITA Open toolkit and those are
the ones you should use to get the conrefs resolved. They are available
from the DITA Maps Manager view.
One way to get that working is to
* make visible the DITA Maps Manager from Perspective ->Show View ->DITA
Maps Manager
* Use the open action from the DITA Maps Manager and open your topic
file (for instance I named that test.xml)
* Use the Configure Transformation Scenario action from the DITA Maps
Manager to start the scenario configuration dialog and then use the New
button to create a new scenario. You will get a list of possible
scenarios including XHTML and PDF - IDIOM FO Plugin, select the one you
want, Ok everything.
* Use the Apply transformation scenario action from the DITA Maps
Manager to get your output - you should be able to see in the results
area in oXygen also the output of the DITA OT preceded by the command
line used by oXygen to invoke the DITA OT.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Steve Matlock wrote:
> I have two files, one with a topic and one with definitions:
> * TOPIC*
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "Topic.dtd">
> <topic id="CREF_TOPIC">
> <title>Topic with crossref</title>
> <body>
> <p>The best thing since sliced bread is <ph
> conref="cfs.dita#cfs/mpm"/>.</p>
> </body>
> </topic>
>
> *DEFINITIONS*
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Composite//EN" "Topic.dtd">
> <topic id="cfs">
> <title>Cross References</title>
> <body>
> <p>
> <ph id="mpm">My Payment Method</ph>
> </p>
> <p>
> <ph id="stx">SuperTransactions</ph>
> </p>
> </body>
> </topic>
>
> If I set this up & view in Oxygen 10.2, the first tile (TOPIC) displays
> the cref values just fine.
>
> When I run any of the default transforms in Oxygen (to PDF, HTML, etc.),
> the cref value is blank. I'm not getting an error in the transform -
> says it transformed fine. But cref isn't working.
>
> Clues on how to debug this? The cref is a major component of my
> documentation plans - I want to have pre-defined values that I can use
> in documentation so I don't need to update product names, release dates,
> and so on, inside the final documents.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list