[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Tags to prevent from XSLT to process
Subject: RE: [xsl] Tags to prevent from XSLT to process From: Rajesh Kommineni <r_kommineni@xxxxxxxxx> Date: Thu, 29 Mar 2001 08:18:07 -0800 (PST) |
>>Hello all, >>Are there any tags in xsl that prevents the XSLT from >>processing content between those tags? >>Basically, I am outputting html that has some client >>side java script and I dont want XSLT to look at that >>part. >I think what you are probably looking for is a CDATA >section to protect your >JavaScript. The FAQ has a good section on the use of >CDATA with XSLT at >http://www.dpawson.co.uk/xsl/cdata.html. But using CDATA escapes only < and &. So, if you have any [ or ] inside the java script (which is quite common :) ) it will create a problem right? Is there any other way to tackle this? >> >>Is this a good programming practice in the first >>place? >I think that depends on what you are trying to do. >Outputting JavaScript >into HTML from XSLT is quite a common thing to do. ?>There is a balance between using XSLT code to control >the appearance of a HTML page and using >JavaScript to do client side work. Both approaches >have there own strengths >but normally a combination works best. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Changing encoding using a, Michael Kay | Thread | Re: [xsl] Tags to prevent from XSLT, David Carlisle |
[xsl] value of an element, Java XML | Date | Re: [xsl] Null Values, Wendell Piez |
Month |