Altova Mailing List Archives

[xsl] debug stylesheet,str:tokenize issue

From: himanshu padmanabhi <himanshu.padmanabhi@--------->
Date: 3/19/2009 12:53:00 PM
How to debug stylesheet for checking value of variables,params(like
'printf' statements in C)?
I tried using '<xsl:message>',but that message was not displayed even
though it was in the code flow.
Downloading 'oxygen' on my CentOS 5 machine.Will check whether it is
having line by line debugging facility like some XSLT debuggers on

I am using 'str:tokenize' function in XSL version 1.0.

Here 'args1' and 'args2' are space separated values passed from perl script.
args1=a b c d e   args2=1 2 3 4 5 6 7

I am passing 'value' as '--switch1 <a|b|c|d|e> -switch2 <1|2|3|4|5|6|7>'

So I need to tokenize $value first and add corrosponding value as the
first one in respective combo's followed by corresponding space
separated values(args1|args2)

<xsl:template match="filename">
        <td>   <xsl:value-of select="name"/>        </td>
        <td>    <xsl:value-of select="desc"/>        </td>
            <xsl:if test="label = 'combo1'">
                <select name="args1">
                <xsl:call-template name="str:tokenize">
                     <xsl:with-param name="args" select="$args1" />

            <xsl:if test="label = 'combo2'">
                <select name="args2">
                <xsl:call-template name="str:tokenize">
                     <xsl:with-param name="args" select="$args2" />


<?xml version='1.0'?>
<?xml-stylesheet href="my.xsl" type="text/xsl"?>
            <desc>specify name</desc>
            <desc>specify ip address</desc>

Yes.As you might have figured out,it is the usual 'EDIT' functionality
of any application.I configured the entity by selecting values from 2
combos and on clicking edit,I should see the previous set one as first
ones,followed by remaining values.

Can I change str:tokenize to achieve this? or without changing it
also,I can achieve the said.
I need to tokenize 'value' to decide first values in 'args1' and 'args2'.
Thanks and Regards,
Himanshu Padmanabhi


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.