[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] accessing info outside current context
How do I access information outside my current context? I have seen this question posted before, but I still don't understand. I havtried every combination of ancestor, etc. I can think of, and it still doesn't work. Specifically this is what I am doing: <xsl:if test="/discoverer/account/eul/workbook[@name = 'DISCADMIN.Cockpit']> <!-- Display an icon here to allow user to invoke discoverer workbook called Cockpit --> </xsl:if> <xsl:if test="/discoverer/account/eul/workbook[@name = 'DISCADMIN.PSR']> <!-- Display an icon here to allow user to invoke discoverer workbook called PSR --> </xsl:if> The user has access to both workbooks, so when you first enter the application, both icons appear as expected. After the user clicks the icon to execute the PSR workbook, the context changes, and the icon for Cockpit disappears! Similarly, if the user clicks the Cockpit icon, the PSR icon disappears. I want both icons to appear no matter what. I have already tried this (didn't work): <xsl:if test="/discoverer/account/eul/workbook[@name = 'DISCADMIN.Cockpit'] or ancestor::eul/workbook[@name = 'DISCADMIN.Cockpit'] > <!-- Display an icon here to allow user to invoke discoverer workbook called Cockpit --> </xsl:if> Isn't there any way to force a start from the root node? Using / at the beginning of the locator path doesn't seem to do it. Do I need to create a variable to represent the root node? Help! Rose Rose.Pekarek@xxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|