Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: [HELP] problem with XSLT [Thread Next] Re: [HELP] problem with XSLTTo: NULL Date: 8/6/2004 8:23:00 PM You'll have to send an example XML and XSL that shows the error (eg. it actually occurs at transform
time). XSL is *very* specific in what it will and won't handle. More to the point, I'll be able to
trace the 'execution' as it compiles and outputs to see what's going on.
Chris.
"tiraman" <tiraman@d...> wrote in message
news:102FB49E-8005-42DC-BA74-3FC95E25B11A@m......
hi,
sorry for the late response but i still have problems.
i tried the code that you sent me and it was ok but it look like that
my problem is in other place.
i have this kind of params and variables in one file:
<xsl:param name="IsSecure" select="0"/>
<xsl:variable name="HTTP_PREFIX">
<xsl:choose>
<xsl:when test="$IsSecure=0">http://</xsl:when>
<xsl:otherwise>https://</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="IMAGES_DOMAIN"
select="concat($HTTP_PREFIX,
'images',$ENVIRONMENT_NAME,'.domain.com/')"/>
and i have some other file that import the first file and doing this
<xsl:variable name="myparam" select="$HTTP_PREFIX" />
and i m getting an error but if i will do this
<xsl:variable name="myparam" select="'http://'" />
every thing ok
sorry that i m not sending the error since i m not getting an error that
point to the problem.
i m getting an higher level error.
let me reminde you that this kind of code working fine to me today for more
then 2
years but not in the .NET development
"Chris Barber" wrote:
> 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
>
>
>
---
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 | |||
|
