🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8537

redirection si node n'existe pas

#8537
From: Pat
Date: Wed, 26 Sep 2001 15:28
44 lines
1860 bytes
Bonjour a tous,

Je debute en xml, xsl et je rame un peu

Est il possible de faire un redirect (changement de page si un node
n'existe pas)

pour la redirection ca fonctionne en javascript cot� client

c'est pour le test dans xsl que j'ai du mal.

je fais un truc du style


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="/">
	 <xsl:apply-templates select="Procedure/Organisation[@OBJET = $Type]"
/>
</xsl:template>

<xsl:template match="Organisation">

<TABLE width="600" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td Colspan = "2" class="txt" height="30"><img
src="../../../images/Titre_images/flecheOrange.gif" width="188"
height="32" align="absmiddle"/> <b>Rappel des Formalit�s � accomplir
        : </b><BR/><BR/></td>
    </tr>


	<xsl:apply-templates select="EDI[@TYPE = $EDI]"/>

	ET LA SI PAS DE MATCH 

<script language="JavaScript">
              window.location = "page.htm"
</script>

</TABLE>
</xsl:template>
Technical Details
Message-ID: <35fc06f0.0109260728.7543e8d4@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,4c2c6da8d9ca5086,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-09-26 08:29:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: pgubernator@ealys.com (Pat)
Newsgroups: fr.comp.text.xml
Subject: redirection si node n'existe pas
Date: 26 Sep 2001 08:28:59 -0700
Organization: http://groups.google.com/
Lines: 44
Message-ID: <35fc06f0.0109260728.7543e8d4@posting.google.com>
NNTP-Posting-Host: 62.23.93.231
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1001518140 8183 127.0.0.1 (26 Sep 2001 15:29:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 26 Sep 2001 15:29:00 GMT