Difference between revisions of "Inlined CML File"

From Jmol
Jump to navigation Jump to search
m (add to Category)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
<size>150</size>
 
<size>150</size>
 
<color>red</color>
 
<color>red</color>
     <inlineContents><![CDATA[<cml:molecule xmlns:cml="http://www.xml-cml.org/schema/cml2/core"
+
     <inlineContents><![CDATA[<cml:molecule xmlns:cml="http://www.xml-cml.org/schema/cml2/core" title="chair.mol">
title="chair.mol">
 
 
<cml:metadataList title="generated automatically from Openbabel">
 
<cml:metadataList title="generated automatically from Openbabel">
 
<cml:metadata name="dc:creator" content="OpenBabel version 1-100.1"/>
 
<cml:metadata name="dc:creator" content="OpenBabel version 1-100.1"/>
Line 34: Line 33:
 
<size>150</size>
 
<size>150</size>
 
<color>orange</color>
 
<color>orange</color>
     <inlineContents><![CDATA[&lt;cml:molecule xmlns:cml="http://www.xml-cml.org/schema/cml2/core"
+
     <inlineContents><![CDATA[&lt;cml:molecule xmlns:cml="http://www.xml-cml.org/schema/cml2/core" title="chair.mol"&gt;
title="chair.mol"&gt;
 
 
&lt;cml:metadataList title="generated automatically from Openbabel"&gt;
 
&lt;cml:metadataList title="generated automatically from Openbabel"&gt;
 
&lt;cml:metadata name="dc:creator" content="OpenBabel version 1-100.1"/&gt;
 
&lt;cml:metadata name="dc:creator" content="OpenBabel version 1-100.1"/&gt;
Line 56: Line 54:
  
 
Both of these examples display if (and only if) the CML contents is put inside <code>&lt;![CDATA[</code> and <code>]]&gt;</code> tags.
 
Both of these examples display if (and only if) the CML contents is put inside <code>&lt;![CDATA[</code> and <code>]]&gt;</code> tags.
 +
 +
[[Category:Pages Using Jmol MW Extension]]

Latest revision as of 20:39, 23 November 2010

Inlined CML File

This inline example is of a datafile in XML format, but fully carried in a declared namespace of xmlns:cml="http://www.xml-cml.org/schema/cml2/core. In theory, this XML should be processable separately from e.g. the jmol default namespace. Does Mediawiki honour such namespaces?

The next example is the same datafile, but fully escaped.

Both of these examples display if (and only if) the CML contents is put inside <![CDATA[ and ]]> tags.