Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [HELP] problem with XSLT

From: "Chris Barber" <chris@----------.--.--.------>
To: NULL
Date: 8/1/2004 6:22:00 PM
What's the error description?

And .. try this:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:param name="IsTest" select="string('test')" />

<xsl:variable name="HTTP_PREFIX">
   <xsl:if test="$IsTest = 'test'">1</xsl:if>
</xsl:variable>

<xsl:value-of select="$HTTP_PREFIX"/>

</xsl:template>
</xsl:stylesheet>

Against XML:

<root/>

And see if it generates an error in .NET - works find in Xselerator. Note the use of explicit
casting (again) to a string value.

Chris.

"tiraman" <tiraman@d...> wrote in message
news:DC1D0A7B-4FC4-44A9-B9B2-87DF0DAAA6A5@m......
hi,

i have the following problem in vb.NET,

i defined this kind of param :
<xsl:param name="IsTest" select="'test'" />

now i tried to use it in this new variable and i got an error
<xsl:variable name="HTTP_PREFIX">
         <xsl:if test="$IsTest = 'test' ">1</xsl:if>
</xsl:variable>

but when i m not using the $IsTest param in the variable then every thing ok

any idea ?

please note that this code work fine in vb6 but in vb.net i have
lots of wierd things :-(

Best Regards,

T :-)


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 29/07/2004




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