XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Adriaan VanderendeSubject: conditional if in wysiwyg
Author: Adriaan Vanderende
Date: 12 Jul 2004 06:03 AM
This sample does not work with activate xsl:if in wysiwyg.

<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet xmlns:xxx="http://www.ddd" exclude-result-prefixes="xxx" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:variable name="w">1</xsl:variable>
<xsl:template match="/">
<html xmlns:xxx="http://www.ddd"><head/>
<body>
<xsl:if test="$w='1'">
<input size="3" maxLength="3" title="KG0001-GEBR-PARAAF" style="LEFT:{26 }px;TOP:{1 }px;" class="inputfield disabled " value="{//KG0001-LEGE-ACHTERGROND}"/>
</xsl:if>
<xsl:if test="$w='2'">
<input size="3" maxLength="3" title="KG0001-GEBR-PARAAF" style="LEFT:{26 }px;TOP:{1 }px;" class="inputfield disabled " value="{//KG0001-LEGE-ACHTERGROND}"/>
</xsl:if>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Posttop
Minollo I.Subject: conditional if in wysiwyg
Author: Minollo I.
Date: 13 Jul 2004 02:18 PM
...how could it?

$w is assigned to 1 as a global variable; and the second check is:
<xsl:if test="$w='2'">

There is no path in the XSLT processor that will make that <xsl:if> condition succeed.

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.