[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
THanks for you reply. I had two questions:
function Fun(arg) {
</xsl:stylesheet>
<![CDATA[<element attr="100"><a>100</a><b>200</b></element>]]>
<element attr="100"> ... </element>
Thanks for your help.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] escaping from CDATA
Subject: Re: [xsl] escaping from CDATA From: "Steve Renshaw" <renshaw_steve@xxxxxxxxxxx> Date: Fri, 26 Oct 2001 06:18:23 +0000 |
THanks for you reply. I had two questions:
Question 1: You are using java - is there a way to do this in javascript in IE6? I am write javascript in the following context:
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://mycompany.com/mynamespace" version="1.0">
<msxsl:script language="javascript" implements-prefix="user"> <![CDATA[
function Fun(arg) {
} ]]> </msxsl:script>
<xsl:template ...> <xsl:value-of select="user:Fun($arg)"/> </xsl:template>
</xsl:stylesheet>
Question 2: I originally said the text was wrapped in CDATA:
<![CDATA[<element attr="100"><a>100</a><b>200</b></element>]]>
Would it make any difference if the string was not wrapped in CDATA but just had the angle brackets represented as entities (which is the actual case):
<element attr="100"> ... </element>
Thanks for your help.
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] escaping from CDATA, Michael Kay | Thread | Re: [xsl] escaping from CDATA, Mike Brown |
RE: [xsl] adding an attribute, Jarno . Elovirta | Date | Re: [xsl] Can't pass parameters acr, Jörg Heinicke |
Month |