Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


doubt in xslt

From: mobi <mobeena.mobeena@-----.--->
To: NULL
Date: 5/5/2008 4:15:00 AM
hi
i have a doubt
i have an xml input file ,it contains a container,in that container it
contains different parameters ,from that i want to write code



xml code
<container>
<container:parametervalues>
<container:enum>parameter1</container:enum>
<container:value>data<container:value>
<container:enum>parameter2</container:enum>
<container:value></container:value>
<container:int>parameter3</container:int>
<container:value>3</container:value>
<container:boolean>parameter4</container:boolean>
<container:value>true</container:value>
</container:parametervalues>
</container>

like this it contains 4 containers with same parameters with same or
different values

perl code
if($parameter1!='data')
{
if($parameter2=' ')
{
print error
}
if($parameter3='3 ')
{
print error
}
}

i wrote the xslt code like this but it not fetching the values
properly

xslt code


<xsl:if test="DEF= '/container/parameter1'">
<xsl:if test="VALUE != 'data'">
<xsl:if test="DEF= ''/container/parameter2'">
<xsl:if test="'VALUE' = ''">
error:the value is not configured
</xsl:if>
</xsl:if>
<xsl:if test="DEF= ''/container/parameter3'">
<xsl:if test="'VALUE' = '3'"> error:the value is 3
</xsl:if>
</xsl:if>
</xsl:if>

now based on these codes i need in xslt
the problem is not fetching the values properly
i tried different methods but its not coming
plz reply as soon as possible


transparent
Print
Mail
Like It
Disclaimer
.

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 www.altova.com/list/index.html. 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.

.
.

transparent

transparent