Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [HELP] problem with XSLT

From: tiraman@-----------.---------.---
To: NULL
Date: 8/6/2004 1:41:00 AM
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
> 
> 
> 


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