Re: content not generated from template
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Brian Frein wrote:
> How should be the datasource?
I can't tell you which RDF formats Mozilla supports. I can give you an
example though.
<RDF:Seq about="urn:parent">
<RDF:li resource="urn:child"/>
</RDF:Seq>
<RDF:Description about="urn:child" ns:property="value"/>
Simple template syntax:
<container datasources="above" ref="urn:parent">
<template>
<rule>
<element uri="rdf:*" attribute="rdf:&ns_NS;property"/>
</rule>
</template>
</container>
Extended template syntax:
<container datasources="above" ref="urn:parent">
<template>
<rule>
<conditions>
<content uri="?container"/>
<member container="?container" child="?element"/>
</conditions>
<bindings>
<binding subject="?member" predicate="&ns_NS;property"
object="?value"/>
</binding>
<action>
<element uri="?member" attribute="?value"/>
</action>
</rule>
</template>
</container>
In either case one <element> will be templated for each <RDF:li>.
--
Warning: May contain traces of nuts.