|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I try to create the following using XSL:
Code:
<table onclick"index.php?action=get_record&record=product&id=1"> But I either get an error because of ampersands and equal signs or a lot of < & when I try the following: Code:
<xsl:element name="table">
<xsl:attribute name="onclick">
<xsl:value-of select="PHP_SELF" />?<![CDATA
[action=get_record&record=product&id=]]><xsl:value-of select="ID" /></xsl:attribute>
Does anyone know a good solution? |
|
#2
|
|||
|
|||
|
First of all, your source:
Code:
<table onclick"index.php?action=get_record&record=product&id=1"> Will generate errors in any decent XML parser - you can't have unadorned ampersands in your XML files - this line should read: Code:
<table onclick"index.php?action=get_record&record=product&id=1"> You'll also need to replace the & with the entitity replacement value in your XSLT. Don't worry, the browser will be able to read it. Don't forget the closing tag to </xsl:element> too. ![]() -- Jough |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > complex URL's in xsl:attribute |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|