
Hi Radu, Thanks for the info. My use case is, I am generating XHTML with the DITA OT and importing the files into Drupal. My Drupal developer tells me that each HTML file needs to have a globally unique ID, and I want to put an id in the index.html files that get generated from maps. (I notice that the OT does not put an id in index files, even if an id exists in the source DITA map. I'll have to fix that.) By the way, is there any way in Oxygen to add IDs to a single file? I thought I saw something like that in years past. Regards, Mark On 4/14/2015 2:19 AM, Oxygen XML Editor Support (Radu Coravu) wrote:
Hi Mark,
You could try to edit the new file template used to create DTD-based DITA Maps:
OXYGEN_INSTALL_DIR\frameworks\dita\templates\map\Map.ditamap
and set the ID attribute to use the Oxygen-specific "${id}" editor variable which is expanded when the new file template is used, something like:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd"> <map id="map_${id}"> <title>DITA Topic Map</title> </map>
We do not have a way for batch generation of IDs. What is your use case? IDs set on a map root element are not that useful in general.
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 4/14/2015 9:07 AM, Mark Giffin wrote:
Is there a way to get Oxygen to generate an ID for a new DITA map? It already does this for topics.
Also, is there a way to batch generate IDs for a whole group of XML files, like those in a DITA map? I see info on things like "Managing ID/IDREFS" in the help, but that seems to apply to something else.
Thanks, Mark _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user