|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
||||
|
||||
|
How to create an xsl internal template match
I want to out put this html via my xsl everytime and there is no <element> reference in the xml page. I just want to display this button when this xsl page is transformed. How do i do this without using a template match (since there is no match) or how would i create an internal match inside the xsl?
Code:
<table cellPadding="2" cellSpacing="1" border="0">
<tr>
<form name="redirectMe">
<td align="right">
<input type="button" value="Exit Course" onClick="javascript:document.location.href='{@href}'" id="button1" name="button1"/>
</td>
</form>
</tr>
</table>
__________________
mr... mike.rusaw@realpage.com RalPage, Inc. "I have made this letter longer than usual, only because I have not had the time to make it shorter." - Blaise Paschal |
|
#2
|
|||
|
|||
|
Put your code in a separate page and call it via the <xsl:copy-of> element:
<xsl:copy-of select="document('http://www.yourdomain.com/yourfile.html')"/> If your webserver supports server-side includes, you could also use the <xsl:comment> element to insert an SSI. |
|
#3
|
||||
|
||||
|
Thanks!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > How to create an xsl internal template match |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|