Subject: Re: [xsl] Determining Web server address in xslt doc From: Robert Koberg <rob@xxxxxxxxxx> Date: Mon, 26 Jan 2009 15:53:13 -0500 |
FYI I am a newbie who has been tasked with maintaining
some existing XSLT. I would like to make some XSLT dynamic across environments using a choose statement.
Is there a way I can determine the root of the Web server where the XSLT document is so I can hard code URL addresses etc based on if I'm in Dev vs Production? Example: dev.imanewbiefool.com Vs uat.imanewbiefool.com or www..imanewbiefool.com
In HTML you can use the CGI REMOTE_HOST variable.
<dev.imanewbiefool.com> ... the wrapped xml... </dev.imanewbiefool.com>
<www.imanewbiefool.com> ... the wrapped xml... </www.imanewbiefool.com>
<xsl:template match="/"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="dev.imanewbiefool.com"> ... do whatev... </xsl:template>
<xsl:template match="www.imanewbiefool.com"> ... do whatev... </xsl:template>
Lee
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Determining Web server ad, Florent Georges | Thread | RE: [xsl] Determining Web server ad, Michael Kay |
Re: [xsl] Determining Web server ad, Florent Georges | Date | RE: [xsl] Determining Web server ad, Michael Kay |
Month |