Parent-Child Content Creator

Use-Cases

  1. Create
  2. Delete
  3. Move

Create: Input Fields

parent:Hidden
id:
name:
Child Type:Branch Leaf
doctype:

Doctype Sample/Template (Based on Doctype Schema)

When the child is created, the systems takes a sample of the appropriate doctype and makes a copy of that sample, such that the user has a starting point for editing.

Sitemap XML

<?xml version="1.0"?>

<tree>
  <branch relURI="" doctype="Department" menuName="Department">
    <branch relURI="g06" doctype="Group" menuName="Polymer Chemistry">
      <branch relURI="members" doctype="Members" menuName="Members">
        <leaf relURI="m01" doctype="Member" menuName="Liese Meitner"/>
        <leaf relURI="m02" doctype="Member" menuName="Linus Pauling"/>
      </branch>
      <leaf relURI="research" doctype="Generic" menuName="Research"/>
      <leaf relURI="positions" doctype="Generic" menuName="Open Positions"/>
      <leaf relURI="related" doctype="Generic" menuName="Related Topics"/>
    </branch>
    <branch relURI="g07" doctype="Group" menuName="Polymer Physics">
      <branch relURI="members" doctype="Members" menuName="Members">
        <leaf relURI="m01" doctype="Member" menuName="Nils Bohr"/>
        <leaf relURI="m02" doctype="Member" menuName="Werner Heisenberg"/>
      </branch>
      <leaf relURI="research" doctype="Generic" menuName="Research" URL="http://www.ethz.ch"/>
      <leaf relURI="positions" doctype="Generic" menuName="Open Positions"/>
      <leaf relURI="related" doctype="Generic" menuName="Related Topics"/>
    </branch>
  </branch>
</tree>

Parent-Child XML

<?xml version="1.0"?>

<parentchild relURI="g06" doctype="Group" name="Polymer Chemistry">

  <parents>
    <parent relURI="" doctype="Department" name="Department"/>
  </parents>

  <children>
    <child type="branch" relURI="members" doctype="Members" name="Members"/>
    <child type="leaf" relURI="research" doctype="Generic" name="Research"/>
    <child type="leaf" relURI="positions" doctype="Generic" name="Open Positions"/>
    <child type="leaf" relURI="related" doctype="Generic" name="Related Topics"/>
  </children>
</parentchild>

Related Resources

XMLDB
Action Example
org.apache.cocoon.generation.XMLDBGenerator
XUpdate
XIndice (dbXML)