Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
Stylus Studio Technical Forum
»
conditional if in wysiwyg
Topic
Topic Page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Prev Topic
Next Topic
next
Subject:
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>
top
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
Prev Topic
Next Topic
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 to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
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.