Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - [HELP] problem with XSLT >Thread Next - Re: [HELP] problem with XSLT Re: [HELP] problem with XSLTTo: 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
