Subject: Complicated Variable testing. From: "Medina, Edward" <emedina@xxxxxxx> Date: Fri, 5 May 2000 08:49:39 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Stylesheet for RTF to HTML II, David Halsted | Thread | Re: Complicated Variable testing., David Carlisle |
Stylesheet for RTF to HTML II, Hakan Pettersson | Date | Re: Stylesheet for RTF to HTML, Marcus Carr |
Month |