DITA XSLT writing techniques

General Tech Learning Aids/Tools 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Learning Aids/Tools related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I want to customize a DITA xml plugin to transform my file into a new XML format. e.g: MusicXML.

I have tried to write a valid XSLT to transform my file, however applied the xslt I wrote to the plugin in the DITA-OT, I did not get the expected output file.

Are there any instructions that can provide guidance to start writing my first DITA XSLT file.

XSLT file in other plugins, I find the code as following:

 name="setStandardAttr">
   name="IDPrefix" select="'dl'"/>

However, I didn't find a template named setStandardAttr and how this code can call that template? Or it is a built-in template?

profilepic.png
manpreet 2 years ago

XSLT is a programming language. When I want to start coding in a new programming language, I usually start by buying a good book on the subject and skim reading it from cover to cover.

So yes, there are instructions. There are books and tutorials, and online specifications. And when you've read them, and written your first program, and it doesn't do what you expect, then you can post your code here and ask why, and we can explain.

Reading other people's code can also be a good learning aid, and it seems you're doing that. This bit of code is calling a user-written template named setStandardAttr; if you can't find it then that's because you're looking in the wrong place.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.