DITA element for custom purposes
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 4
- Joined: Sat Mar 12, 2016 2:41 pm
DITA element for custom purposes
Hello. I use FrameMaker and save content in XML(Dita1.3) format. I want to be able to classify current snippets of the xml, but keep the validity of the xml file according to dita 1.3 specification. My purpose is after saving in xml format to be able to get specific parts of the xml. For example in HTML I would write this tag is of class "abc" and then in jquery I will get it this way $("tag[class=abc]").
So is there common attribut for the all elements, that is intended for custom purposes, or is there blank(useless) element with at least one attribute defined by the DITA 1.3 Standard?
So is there common attribut for the all elements, that is intended for custom purposes, or is there blank(useless) element with at least one attribute defined by the DITA 1.3 Standard?
-
- Posts: 9452
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA element for custom purposes
Hi,
Yes, the attribute is called outputclass:
https://www.oxygenxml.com/dita/1.3/spec ... butes.html
and once you set it on a DITA element, the published equivalent HTML element should contain its value in its @class attribute.
Regards,
Radu
Yes, the attribute is called outputclass:
https://www.oxygenxml.com/dita/1.3/spec ... butes.html
and once you set it on a DITA element, the published equivalent HTML element should contain its value in its @class attribute.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Sat Mar 12, 2016 2:41 pm
Re: DITA element for custom purposes
Thank you very much. But if I have a lot of paragraphs and want to fill different outputclass for some of them, but still want all of this paragraphs to be of one common outputclass(logically they are of one general type, but are subtypes of is like they are of class dog, but each is different dog breed) how am I going to do it? That is why I asked for non styled element(usless in the way like the document looks, but usefull for my logical separation - for example if after export to HTML in framemaker whant to get just this part of the html which is of class dog) 

-
- Posts: 9452
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA element for custom purposes
Hi,
You should try to publish a small DITA map sample containing a topic or two to XHTML and see how the generated XHTML looks like.
For example the DITA <p> element has the default @class attribute value topic/p and the corresponding HTML element has something like:
Regards,
Radu
You should try to publish a small DITA map sample containing a topic or two to XHTML and see how the generated XHTML looks like.
For example the DITA <p> element has the default @class attribute value topic/p and the corresponding HTML element has something like:
Code: Select all
<p class="p">...
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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