|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
Parsing comments in XSL
I'm trying to parse an element in XSL that contains a comment in it's body;
<script type="text/javascript"> <!-- var NS6 = ((document.getElementById) &&(navigator.userAgent.indexOf('Netscape')!=-1)) ? true : false; var NS4 = (document.layers) ? true : false; var IE4 = (document.all) ? true : false; //--> </script> I don't seem to be able to access the text within the script element though. If I try and use "script/text()" I get nothing back. Does anyone know if it is possible to access this text at all or is it being blocked by the XSL "engine" because it thinks it's a comment? Thanks, Giles |
|
#2
|
|||
|
|||
|
Code:
<xsl:value-of select="comment()"/> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Parsing comments in XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|