DITA XSLT writing techniques

General Tech Learning Aids/Tools 3 years ago

3.28K 2 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 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?

0 views
0 shares

profilepic.png
manpreet 3 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.

Similar Forum