This project is read-only.

Redirect, is possible?..

Aug 11, 2011 at 9:08 PM
Edited Aug 12, 2011 at 5:47 PM

Good Day, 

it´s a simple question, if anyone could help me, really i´m appreciate that

1. there is xslt code for a simple redirection, and it works.


<xsl:variable name="qbcr" select="mdo:query-string('Search', '0')" />
<xsl:variable name="sql">
SELECT COUNT(*) AS counters
FROM {databaseOwner}[{objectQualifier}XXTable] 
WHERE Identificacion = '{{$qbcr}}';
<xsl:variable name="data" select="mdo:sql($sql, 'mod')"/>
<xsl:when test="($data!=0) and ($data!= '')">it works!</xsl:when>
<xsl:execute select="mdo:redirect('')" />

2. ok i got one issue when i try put some html into "<xsl:when test.. " node the transformation not render html but put all the code again. 
i´m use xsl:output and xsl:text and not work, then i use <xsl:value-of select="." disable-output-escaping="yes" /> and got nothing.. any suggest here?..

I would appreciate to give suggestions for improving the code