Subject: [xsl] Trying to read a parameter in the request in a XSL file From: "Diodato, Anthony" <adiodato@xxxxxxx> Date: Fri, 3 Oct 2003 16:28:13 -0400 |
Here is the task that I am trying to accomplish. If there is a better way to do it, just let me know. This is the primary reason I thought I could use Cocoon. Otherwise, my site doesn't use cocoon. I have a massive xml(test.xml) file, which is essentially the back bone of my website. If I navigate directly to the test.xml file, in my "test" webapp, it spits out all of the xml code in my test.xml. If I navigate directly to my test.xml file, in my "cocoon" webapp, it is spitting out what I am specifying in my XSL, based off of the tags in my test.xml. This part is working. (Was working before I installed Cocoon) I thought Id be able to pass parameters to my XSL with Cocoon, which is the reason I am trying this in this environment. Essentially, I cant add anything to the test.xml file because it will affect the website. Once we generate out site, it reads this test.xml, and creates all of the directories that it needs, based off of the "dir" attribute, etc, etc, etc.. My goal is to build a web front end, that will explain what is going on in my test.xml, really for management purposes. A Manager really doesn't want to read all of the XML that makes the site, but would like to see a slick web front end, describing it. Here is a brief description of what is in my test.xml <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <Level1 name="Utility" dir="util" visible="false"> <Level2 name="Add Auth" dir="aa" visible="false" serviceid="FPP001"/> <Level2 name="Agent Authorization" visible="false" dir="sec" serviceid="FPP001"> <Level3 name="Change Org" dir="co" menu="true" content="true" visible="true" serviceid="FPP001"/> <Level3 name="Authorizations Issued" dir="ai" menu="true" content="true" visible="true" serviceid="FPP001"/> <Level3 name="Search" dir="ss" menu="true" content="true" visible="true" serviceid="FPP001"/> <Level3 name="Search Authorizations" dir="sau" serviceid="FPP001"/> <Level3 name="Search Agents" dir="sag" serviceid="FPP001"/> </Level2> </Level1> this file is over 2200 lines of code, so Ill keep it simple. So when you go to this page in my "test" webapp, this xml is what is displayed. It is using the file server, to just show the xml code. What I want to do, is to be able to show this code above, like this below in the browser, but be able to use it as a slick web tool. These words below would all be links, and I can add graphics, etc... > Utility-(util) * Add Auth(aa) * Agent Authorization(sec) For example, the word Utility above is a link (so would Add Auth & Agent Authorization). When you first go to http://localhost:8100/cocoon/test.xml at first, only the Level1 tag will be shown. (Utility as a link) Now, when you click on Utility (This is the link >> http://localhost:8100/cocoon/test.xml?L1=util for Utility) You will still be on test.xml, but in my XSL, I want to take the L1 parameter, and be able to display the Level2's below it. Is this possible the way I am doing things, or do I need to do it differently. Thanks Tony This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] msxsl:script and selectSi, Michael Kay | Thread | RE: [xsl] Trying to read a paramete, Robert Koberg |
RE: [xsl] problem - generating XML , Michael Kay | Date | Re: [xsl] problem - generating XML , Christian Sell |
Month |