note 19764 added to ref.xslt

From: Date: Sun, 10 Mar 2002 10:56:27 +0000
Subject: note 19764 added to ref.xslt
Groups: php.notes 
Request: Send a blank email to php-notes+get-27577@lists.php.net to get a copy of this message
I had problems parsing an xml-source which has a script-section (<script language="javascript">...</script>). When having < and > comparision in the script, for example: ... <script language="javascript"> if(a < b) { ... } </script> ... the parser terminates with an error in the line where the '<' occurs. Well, there's quite an easy way to avoid that: Just put the javascript-code into a comment block (<!-- .. -->), like often done to hide javascript-code from older browsers. The parser will ignore the contents... Probably the same applies to <style> </style> sections of code. -- http://www.php.net/manual/en/ref.xslt.php http://master.php.net/manage/user-notes.php?action=edit+19764 http://master.php.net/manage/user-notes.php?action=delete+19764 http://master.php.net/manage/user-notes.php?action=reject+19764

« previous php.notes (#27577) next »