Subject: RE: [xsl] Problem trying to display additional information in popup box From: Rene de Vries <RdVries@xxxxxxxxxxx> Date: Fri, 13 Jul 2001 16:29:08 +0200 |
Hi Betty, If I understand you right, you want to display the text of <chgmsg> in a separate window in your browser. One of the ways you can do that is creating a button like this: <xsl:template match="/"> <html> <head> <script type="text/javascript"> function DisplayPU(cText) { alert(cText); } </script> </head> <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="chgmsg"> <xsl:value-of select="@type"/> <input name="puBox" type="button" onclick="DisplayPU('{chgdesc}')" value="Change Message"/> </xsl:template> Greetings Rene { @ @ } ^ \__/ "You don't need eyes to see, you need vision!" -----Oorspronkelijk bericht----- Van: Betty.Risher@xxxxxxxxxxxx [SMTP:Betty.Risher@xxxxxxxxxxxx] Verzonden: vrijdag 13 juli 2001 15:20 Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Onderwerp: [xsl] Problem trying to display additional information in popup box Hi, I'm trying to resolve an issue with additional information displaying in a separate popup box, from the main text display. The data element of <chgmsg> resides within the main flow of the data, but needs to be displayed in a separate display box. Based on the code provided below, I have tried to create a link (using an image) to click on, that opens another box for display. This portion seems to work ok, but I can't get any of the information within the <chgmsg> to display within the box. I've tried to find information and examples pertaining to this issue, but have had no luck. I'm not sure what I'm doing incorrectly. Am I on the right track? Is what I'm attempting to do possible? Any assistance would be greatly appreciated. Thanks, Betty Risher **************************************************** XSL styles snipet <xsl:template match="chgmsg"> <a href="#{generate-id(chgdesc)}" target="display"> <img src="./pics/exlink.gif" align="right"></img> </a> </xsl:template> <xsl:template match="chdesc"> <xsl:apply-templates/> </xsl:template> *************************************************** XML Code <pgblk chapnbr="07" sectnbr="00" subjnbr="00" pgblknbr="00" confltr="" confnbr="01" chg="U" effvect="001999" id="T07-00-00-00" mfrid="EN0700000000"> <effect effvect="001999" efftext="001999"/> <chgmsg type="AIRBUS"> <chgdesc>CORRECTION/ADDITION/AMPLIFICATION CONNECTOR PART NUMBER REVISED.</chgdesc> </chgmsg> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem trying to display, Michael Kay | Thread | [no subject], Alex Genis |
RE: [xsl] And while you're figuring, Daniel Newman | Date | Re: [xsl] Trying to put a <BR> in a, David Carlisle |
Month |