[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Complicated Variable testing.

Subject: Complicated Variable testing.
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Fri, 5 May 2000 08:49:39 -0400
variable testing
Good Morning All!

The top of my xsl looks like a mess!  I'm testing approximately
for seven variables, not to mention the minor other tests that 
I have through out the entire xsl.  Now I find out that the logic I have
to apply is more complicated than what I thought.  
Our documents have a top and bottom banner which describe the
overall level of priority, dissemination, restrictions and perishability
of the information.  In all there are approximately seven different 
components to the banners, and some components are dependent
on others.

IE of a banner.

HIGH/TECHNICAL-MANAGER/MANAGERS/2yrs


Now these banners are dependent on the components of the paragraphs.  

Here is some of the xsl
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0"
	xmlns:c="file:/dev/null"
	xmlns:d="file:/dev/null"
	xmlns:q="file:/dev/null"
	xmlns:t="file:/dev/null">

<c:priority VH="VERYHIGH/"/>
<c:priority H="HIGH/"/>
<c:priority M="MEDIUM/"/>
<c:priority L="LOW/"/>
<c:priority VL="VERYLOW/"/>

<d:codeword TEAM="/TECHNICAL-ENGINEER-ADMINISTRATIVE-MANAGER"/>
<d:codeword TAM="/TECHNICAL-ADMINISTRATIVE-MANAGER"/>
<d:codeword TEM="/TECHNICAL-ENGINEER-MANAGER"/>
<d:codeword TEA="/TECHNICAL-ENGINEER-ADMINISTRATIVE"/>
<d:codeword TA="/TECHNICAL-ADMINISTRATIVE"/>
<d:codeword TM="/TECHNICAL-MANAGER"/>
<d:codeword TE="/TECHNICAL-ENGINEER"/>
<d:codeword T="/TECHNICAL"/>
 
<q:perishable 7="//5yrs"/>
<q:perishable 6="//4yrs"/>
<q:perishable 5="//3yrs"/>
<q:perishable 4="//2yrs"/>
<q:perishable 3="//1yr"/>
<q:perishable 2="//6months"/>
<q:perishable 1="//Determined by VPs"/>


<t:relto SMMM="/SUPERVISORS, MANAGERS, and MIDDLE MANAGERS"/>
<t:relto SMM="/SUPERVISORS, and MIDDLE MANAGERS"/>
<t:relto SM="/SUPERVISORS, and MANAGERS"/>
<t:relto MIDDLEMANAGER="/MIDDLE MANAGERS"/>
<t:relto MANAGERS="/MANAGERS"/>
<t:relto SUPERVISORS="/SUPERVISORS"/>
<t:relto ALL="/ALL"/>

There are more but I think you get the idea.

If a document has three paragraphs and 
one is  releasable to supervisors another
to managers, and another to middle manager
then the entire document is not releasable
to anyone except the CEO.
I have done the top and bottom banners with the highest 
restriction, and the highest priority, and long with the least 
releasability, but I don't know how to not choose something.
Any, help would be appreciated.

Eddy


 



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.