Replace tags while keeping text
Posted: Tue May 02, 2017 4:50 am
Hi,
I have an authoring template which has some questions. Most of the questions are just regular questions.
<li class="question">
<p>Question text</p>
</li>
Some are going to have a downloadable file.
<li class="question">
<p>Question text</p>
<div class="download">
<a href="" class="ulink">Download this File</a>
</div>
</li>
I want to add a button to this so if the question has a downloadable file they can click a button to update the tagging. The button's no problem, but what's the best way to transform/change this? The question text will already exist when the decision is made regarding the downloadable file, so the button needs to change the tagging, and leave the text. I tried to use "ro.sync.ecss.extensions.commons.operations.XSLTOperation", but I can't find anything that shows examples of what to put in the available fields. Do you know where I could locate that? I'm not sure what to put into sourceLocation or targetLocation for example.
Thanks,
Tom
I have an authoring template which has some questions. Most of the questions are just regular questions.
<li class="question">
<p>Question text</p>
</li>
Some are going to have a downloadable file.
<li class="question">
<p>Question text</p>
<div class="download">
<a href="" class="ulink">Download this File</a>
</div>
</li>
I want to add a button to this so if the question has a downloadable file they can click a button to update the tagging. The button's no problem, but what's the best way to transform/change this? The question text will already exist when the decision is made regarding the downloadable file, so the button needs to change the tagging, and leave the text. I tried to use "ro.sync.ecss.extensions.commons.operations.XSLTOperation", but I can't find anything that shows examples of what to put in the available fields. Do you know where I could locate that? I'm not sure what to put into sourceLocation or targetLocation for example.
Thanks,
Tom