This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem trying to display additional information in popup box


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@Jeppesen.com [SMTP:Betty.Risher@Jeppesen.com]
Verzonden:	vrijdag 13 juli 2001 15:20
Aan:	xsl-list@lists.mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]