From: Wolfgang M. <wol...@ex...> - 2010-03-28 07:32:57
|
> 5. I noticed that CDATA was difficult to insert in the code samples. > Does anyone have any suggestions on this? I think you have to switch to the "Text" mode in Oxygen and enter the CDATA manually. I could not find any shortcuts for this. We use the following conventions for the syntax highlighting in eXist's standard stylesheets: XQuery code example: <example> <title>A Simple Query</title> <programlisting language="xquery"><![CDATA[for $m in //SPEECH[ft:query(., "boil bubble")] order by ft:score($m) descending return $m]]></programlisting> </example> XML code: <example> <title>collection.xconf fragment</title> <programlisting><markup><![CDATA[<lucene> <text qname="p"/> <text qname="note"/> <ignore qname="note"/> </lucene>]]></markup> </programlisting> Single line of XQuery: <synopsis language="xquery">//p[ft:query(., "note")]</synopsis> Using those elements should give you nicely rendered code. Wolfgang |