Associating default DITA CSS with new DTD shells
Oxygen general issues.
-
- Posts: 14
- Joined: Mon Feb 03, 2014 4:45 pm
Associating default DITA CSS with new DTD shells
Hi,
I've probably missed this in the help but I can't seem to figure out how to get my new DTD shells to display correctly in Author mode. I don't want to associate the default CSS with each new document, I want this to stay with the rest of my global options. How can I make this work? Thanks.
I've probably missed this in the help but I can't seem to figure out how to get my new DTD shells to display correctly in Author mode. I don't want to associate the default CSS with each new document, I want this to stay with the rest of my global options. How can I make this work? Thanks.
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Associating default DITA CSS with new DTD shells
Hi Julio,
I will assume you are using Oxygen 15.2.
Basically you create (you probably already have) a folder on your disk in which the custom CSSs are located. Let's say the main CSS is called custom.css.
Then in the same folder you create an XML catalog file catalog.xml which has a single URI mapping like:
Then in the Oxygen Preferences->XML / XML Catalog page you add a reference to your XML catalog and reopen the topics, your CSS should be used as an additional layer in addition to all CSSs which come with the base DITA configuration in Oxygen.
http://www.oxygenxml.com/doc/ug-oxygen/ ... ports.html
Regards,
Radu
I will assume you are using Oxygen 15.2.
Basically you create (you probably already have) a folder on your disk in which the custom CSSs are located. Let's say the main CSS is called custom.css.
Then in the same folder you create an XML catalog file catalog.xml which has a single URI mapping like:
Code: Select all
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="http://www.oxygenxml.com/extensions/author/css/userCustom.css" uri="custom.css"/>
</catalog>
http://www.oxygenxml.com/doc/ug-oxygen/ ... ports.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Mon Feb 03, 2014 4:45 pm
Re: Associating default DITA CSS with new DTD shells
Hi Radu,
Unfortunately, the team I'm working with doesn't have oXygen 15.2 (don't ask, long story). However, what I want to do is associate the base CSS files supplied by oXygen with my new DTD shells (as they only incorporate a single element based on ph). I need this to work for 13 and 14. Thanks.
Unfortunately, the team I'm working with doesn't have oXygen 15.2 (don't ask, long story). However, what I want to do is associate the base CSS files supplied by oXygen with my new DTD shells (as they only incorporate a single element based on ph). I need this to work for 13 and 14. Thanks.
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Associating default DITA CSS with new DTD shells
Hi Julio,
Did you integrate your DTD specialization in the DITA OT which comes with Oxygen?
http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html
If so, when opening a specialization topic Oxygen should auto-detect it to be DITA and apply the DITA CSSs to it (+ DITA toolbar, actions, validation, etc).
If this is not the case, maybe your specialization DTDs are not properly constructed.
In the Oxygen Preferences->Document Type Association page there is a DITA document type configuration. If you edit that, it has a set of association rules.
The last of the rules in that list is a custom rule which checks if the DITAArchVersion attribute is defined on the root element of the opened topic (the DTDs should add it as a default attribute to the root topic element).
You can add a new rule in the list specific for your public ID but as I said, that last rule we have in the DITA document type configuration should match any valid DITA specialization.
If you consider your specialization DTDs to be correct and Oxygen is still not recognizing your topics out of the box to be DITA, maybe you can email us some resources (DTDs, sample topics) and we'll take a look at them.
Regards,
Radu
Did you integrate your DTD specialization in the DITA OT which comes with Oxygen?
http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html
If so, when opening a specialization topic Oxygen should auto-detect it to be DITA and apply the DITA CSSs to it (+ DITA toolbar, actions, validation, etc).
If this is not the case, maybe your specialization DTDs are not properly constructed.
In the Oxygen Preferences->Document Type Association page there is a DITA document type configuration. If you edit that, it has a set of association rules.
The last of the rules in that list is a custom rule which checks if the DITAArchVersion attribute is defined on the root element of the opened topic (the DTDs should add it as a default attribute to the root topic element).
You can add a new rule in the list specific for your public ID but as I said, that last rule we have in the DITA document type configuration should match any valid DITA specialization.
If you consider your specialization DTDs to be correct and Oxygen is still not recognizing your topics out of the box to be DITA, maybe you can email us some resources (DTDs, sample topics) and we'll take a look at them.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Mon Feb 03, 2014 4:45 pm
Re: Associating default DITA CSS with new DTD shells
I think this is probably the issue. I've integrated the specialization with an external OT so it's not connected to the OT you supply. Later today, I'll see if adding a new rule for the publidID will help. Busy, busy, busy.Radu wrote:Hi Julio,
Did you integrate your DTD specialization in the DITA OT which comes with Oxygen?
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service