Page 1 of 1

Formatting a dita file

Posted: Fri Jul 01, 2016 7:06 am
by KISHORE085
Hi,
I am very new to xml. I just wanted to edit some dita files. I started using oXygen xml author since yesterday. I could edit the dita file. But when i export it to pdf, The format in original pdf and which i exported are different. Do i need any other files and along with dita for maintaining same format?? Or how to i format before exporting dita to pdf. I dont know anything in xml coding. Hence pls help with respect to oXygen xml author GUI.
Thanks in advance..

Re: Formatting a dita file

Posted: Fri Jul 01, 2016 8:03 am
by Radu
Hello,

By "format" you mean styling, right? For example you want to have different headers/footers in the PDF, different page format or a different front page, something like this?
Customizing the default PDF processing requires knowledge of XSLT and XSL-FO:

http://oxygenxml.com/doc/versions/18/ug ... ation.html

There is a good book on the market called DITA for Print which covers most of that:

http://xmlpress.net/publications/dita/dita-for-print/

Regards,
Radu

Re: Formatting a dita file

Posted: Fri Jul 01, 2016 9:23 am
by KISHORE085
Hi Radu,
Formatting in the sense, Lets say i have 3 dita files. What i wanted it to be is first dita file should be main heading, next two dita files should come as sub headings. and everything should be continuous pages. But what i am getting is each dita file as a different chapter and in new pages and in one definite format. like indentation, underline and spaces and all..
If i select topic dita template, i am getting : <topic id="topic_aaa_zzz">.......</topic>
Which template i should select for getting : <p-topic id="topic_aaa_zzz">.......<p-/topic>
In the same way which template i should select for ditamap file for getting : <datasheet>.....</datasheet>
I tried to rename it. But oXygen tool is not able to recognise the template after renaming.
And thanks a lot for so fast reply..

Re: Formatting a dita file

Posted: Fri Jul 01, 2016 9:26 am
by KISHORE085
Hi Radu,
Sorry i couldn't attach image in my previous reply. Can you tell me how to attach image while replying for better understanding of my problem..

Thanks

Re: Formatting a dita file

Posted: Fri Jul 01, 2016 9:36 am
by Radu
Hi,

The DITA standard has a set of element and attribute names defined by the DITA specification.
It allows defining new elements using a method called specialization but this does not mean that automatically you will get the desired output.
I would suggest that you start learning more about DITA:

http://blog.oxygenxml.com/2016/03/resou ... xygen.html

As for the PDF customization I'm maintaining my recommendation of reading the DITA for Print book.

Regards,
Radu

Re: Formatting a dita file

Posted: Fri Jul 01, 2016 11:22 am
by KISHORE085
Hi Radu,

Thanks for the info.. I'll go through that book. Thanks again..