MozillaZine

Contents.rdf

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 23:46, 22 November 2004
Asqueella (Talk | contribs)

<-- Previous diff
Revision as of 23:46, 12 February 2005
Asqueella (Talk | contribs)
(make RDF the default namespace and note that chrome:extension arc is optional)
Next diff -->
Line 6: Line 6:
<pre><?xml version="1.0"?> <pre><?xml version="1.0"?>
-<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:chrome="http://www.mozilla.org/rdf/chrome#">+ xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
- <RDF:Seq about="urn:mozilla:package:root">+ <Seq about="urn:mozilla:package:root">
- <RDF:li resource="urn:mozilla:package:myext"/>+ <li resource="urn:mozilla:package:myext"/>
- </RDF:Seq>+ </Seq>
- <RDF:Description about="urn:mozilla:package:myext"+ <Description about="urn:mozilla:package:myext" chrome:name="myext"/>
- chrome:name="myext"+<!-- additionally for Mozilla Suite and old Firefox/Thunderbird versions include:
- chrome:extension="true" />+ chrome:extension="true"
-<!-- for Mozilla Suite and old Firefox/Thunderbird versions:+
chrome:displayName="My Extension's Long Name" chrome:displayName="My Extension's Long Name"
chrome:author="Me" chrome:author="Me"
Line 23: Line 22:
--> -->
- <RDF:Seq about="urn:mozilla:overlays">+ <Seq about="urn:mozilla:overlays">
- <RDF:li resource="chrome://browser/content/browser.xul"/>+ <li resource="chrome://browser/content/browser.xul"/>
- </RDF:Seq>+ </Seq>
- <RDF:Seq about="chrome://browser/content/browser.xul">+ <Seq about="chrome://browser/content/browser.xul">
- <RDF:li>chrome://myext/content/overlay.xul</RDF:li>+ <li>chrome://myext/content/overlay.xul</li>
- </RDF:Seq>+ </Seq>
-</RDF:RDF></pre>+</RDF></pre>
===For locales=== ===For locales===
===For skin=== ===For skin===

Revision as of 23:46, 12 February 2005

Contents

Example contents.rdf files

For content

See Dev : Extensions : Overlays for more information. myext should be your extension's short name.

<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
  <Seq about="urn:mozilla:package:root">
    <li resource="urn:mozilla:package:myext"/>
  </Seq>

  <Description about="urn:mozilla:package:myext" chrome:name="myext"/>
<!-- additionally for Mozilla Suite and old Firefox/Thunderbird versions include:
	chrome:extension="true"
	chrome:displayName="My Extension's Long Name"
	chrome:author="Me"
	chrome:authorURL="http://myext.com/"
	chrome:description="An example extension"
	chrome:settingsURL="chrome://myext/content/"
-->

  <Seq about="urn:mozilla:overlays">
    <li resource="chrome://browser/content/browser.xul"/>
  </Seq>

  <Seq about="chrome://browser/content/browser.xul">
    <li>chrome://myext/content/overlay.xul</li>
  </Seq>
</RDF>

For locales

For skin