I use xsl-template to match //request, but sometimes it
does work, sometimes it does not.
and //param always work, dont know why.
//request works fine if I copy the xml and use other
xsl/xml transformer.
xml for request is like below:
<request>
<param name="xsubmission_xfield@16_summary">
<value></value>
</param><param
name="xsubmission_xfield@30_global/client_dob">
<value></value>
</param><param
name="xsubmission_xfield@8_global/client_ctn">
<value></value>
</param><param name="formid">
<value>108</value>
</param><param name="ancestorL">
<value></value>
</param><param name="preview">
<value>Submit</value>
</param><param
name="xsubmission_xfield@21_extension">
<value></value>
</param><param
name="xsubmission_xfield@6_global/client_hcn">
<value>1</value>
</param><param name="repeatID">
<value></value>
</param><param name="total_page">
<value>1</value>
</param><param name="formvo.ID">
<value>108</value>
</param><param name="scrolly">
<value>0</value>
</param><param name="header">
<value></value>
</param><param name="processDefinitionId">
<value>-1</value>
</param><param
name="xsubmission_xfield@7_global/client_verscode">
<value></value>
</param><param
name="xsubmission_xfield@29_global/client_phone">
<value></value>
</param><param name="navigation">
<value></value>
</param><param name="xslt">
<value></value>
</param><param name="curr_page">
<value>1</value>
</param><param name="submission.version">
<value></value>
</param><param name="draft">
<value>false</value>
</param><param name="isPublicCategory">
<value></value>
</param><param
name="xsubmission_xfield@37_ddd_fff/ooo">
<value></value>
</param><param
name="xsubmission_xfield@33_global/physician_phone"
>
<value></value>
</param><param
name="xsubmission_xfield@10_ssss">
<value>1</value>
</param><param name="page_mode">
<value></value>
</param><param name="submission.formversion">
<value>1.1.1.1</value>
</param><param
name="xsubmission_xfield@14_stage">
<value>444</value>
</param><param name="showHeaders">
<value>true</value>
</param><param
name="xsubmission_xfield@3_global/client_firstname">
<value>1</value>
</param><param name="hiddenReqFields">
<value></value>
</param><param
name="xsubmission_xfield@31_sys_ref/id31">
<value></value>
</param><param
name="xsubmission_xfield@34_global/physician_billing_
code">
<value></value>
</param><param name="scrollx">
<value>0</value>
</param><param
name="xsubmission_xfield@17_primary_contact">
<value>armandom</value>
</param><param
name="xsubmission_xfield@27_global/client_city">
<value></value>
</param><param name="maintenHiddenList">
<value></value>
</param><param name="formtype">
<value>form</value>
</param><param
name="xsubmission_xfield@5_global/client_alias">
<value></value>
</param><param name="submission.id">
<value></value>
</param><param
name="xsubmission_xfield@35_global/client_participant"
>
<value></value>
</param><param
name="xsubmission_xfield@25_current_user">
<value>root</value>
</param><param
name="xsubmission_xfield@28_global/client_postal_cod
e">
<value></value>
</param><param name="formvo.type">
<value>form</value>
</param><param
name="xsubmission_xfield@4_global/client_lastname">
<value>1</value>
</param><param name="workflowEvent">
<value></value>
</param><param
name="xsubmission_xfield@32_global/physician_userna
me">
<value></value>
</param><param name="formvo.categoryID">
<value>19</value>
</param><param name="flowId">
<value>-1</value>
</param><param name="mode">
<value>preview</value>
</param><param
name="xsubmission_xfield@26_global/client_address">
<value></value>
</param><param name="submission.formid">
<value>108</value>
</param><param name="attachId">
<value>-1</value>
</param><param
name="xsubmission_xfield@20_date">
<value>2005/04/09</value>
</param><param name="repeatCount">
<value></value>
</param><param
name="xsubmission_xfield@36_global/casemanager_us
ername">
<value></value>
</param><param name="viewmode">
<value>submitpreview</value>
</param><param name="maxID">
<value></value>
</param><param name="project">
<value></value>
</param><param name="categoryId">
<value>19</value>
</param>
</request>
xsl is like below:
<xsl:template name="response"
match="//stxxChainedXMLDocuments">
<html>
<body>
<pre>
<xsl:copy-of select="/"/>
<!-- this part sometimes does not work-->
<xsl:for-each
select="/stxxChainedXMLDocuments/request/param">
<xsl:value-of select="@name"/>:::<xsl:value-of
select="name(..)"/>:::<xsl:value-of
select="./value"/>;
</xsl:for-each>
<!-- this part sometimes does not work-->
<xsl:for-each select="//request/param">
<xsl:variable name="vv" select="./value"/>
<xsl:value-of select="@name"/>:::<xsl:value-
of select="name(..)"/>:::<xsl:text disable-output-
escaping="yes"><xsl:value-of
select="./value"/></xsl:text>;
</xsl:for-each>
<!-- this part sometimes always works-->
<xsl:for-each select="//param">
<xsl:value-of select="@name"/>:::<xsl:value-
of select="name(..)"/>:::<xsl:value-of
select="./value"/>;;;
</xsl:for-each>
</pre></body>
</html>
</xsl:template>
Logged In: NO
my contact is:
michaellucad@gmail.com