Hi all,
I was getting an error when a --code block contained xml. Apparently that text 
wasn't being escaped. I added <!CDATA[[  and ]]> inside the xml tags in 
templates/docbook/edit/content/text_to_xml/class.Block.php and now it works 
fine. 
I'm using the latest CVS sources.
--- ./templates/docbook/edit/content/text_to_xml/class.Block.php.old	2006-09-12 17:49:22.000000000 +0400
+++ ./templates/docbook/edit/content/text_to_xml/class.Block.php	2006-09-12 17:49:43.000000000 +0400
@@ -98,9 +98,9 @@
 
       if ($tag=='programlisting' or $tag=='screen' or $tag=='literallayout')
         {
-          $xml = ("\n$indent<$tag>"
+          $xml = ("\n$indent<$tag><![CDATA["
                   . Tpl::to_xml()
-                  . "</$tag>\n");
+                  . "]]></$tag>\n");
         }
       else if ($tag=='figure' or $tag=='example')
         {
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Doc-book-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doc-book-users

Reply via email to