Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : XML : Education - Tutorials
Tootomatic with Java 2 v1.4.2_05, and a Self-test feature
PDF (letter)PDF (A4)Javascript e-mail it pop-up
Main menuSection menuFeedbackPreviousNext
3. Fixing the Problems
  


Feedback Form Functionality page 3 of 6


Changes to build-individual-panels.xsl


COMMENT OUT

<!--
<xsl:template match="feedback-form" mode="build-individual-panels">
<xsl:for-each select="$feedback-form">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:template>
-->

ADD

<xsl:template match="feedback-form" mode="build-individual-panels">
<form action="{@action-url}" method="post">
<input type="hidden" name="RedirectURL" value="{@redirect-url}" />
<input type="hidden" name="zone" value="{//tutorial/@zone}" />
<input type="hidden" name="OnlineCourseTitle" value="{//tutorial/title}" />
<xsl:for-each select="$feedback-form">
<xsl:copy-of select="."/>
</xsl:for-each>
</form>
</xsl:template>

The tutorial's feedback page that is online utilizes the feedback-form elements's "action-url" and "redirect-url" attributes. As created by tootomatic, however, the page's form tags are absent. The online page also has the 2 hidden inputs, "zone" and "OnlineCourseTitle". The above changes will create those tags on the feedback page. Depending on what is needed for information, other attributes could be added to the feedback.html file, and/or these other 2 hidden inputs could be left out or ignored and left unused.

A detailed chapter dealing with customization is found in the "t-o-m" version of the tutorial that is created from the downloaded tootomatic.xml file.

*** NOTE *** Using this modification Without changing the feed-back element's action-url attribute will submit the form to developerWorks.
Please do NOT do that, (unless it should be, of course)

Avoid the "white-space" problems involved with copying the above code and Cut and Paste from the zipped Text files. The modified xsl:template code for the build-individual-panels.xsl file is included in the File Modifications folder


Main menuSection menuFeedbackPreviousNext
About IBM | Privacy | Legal | Contact