ZedAI CM Finalize Traits

From zedwiki

Jump to: navigation, search

Contents

Specializations

Format

Add a z:specialization element with @of to specify source element:

<z:specialization of="z3986.ref">This element is a specialization of the {#z3986.ref} element.</z:specialization>

Elements

The below collects all specialization info we need to add to the component defs. Syntax: ancestor ==> specializor

Added

  • ref => noteref
  • ref => citation
  • ref => object (with note about xlink:show and xlink:actuate)


Alterability

Format

Include restrictions using the attributes:

  • z:contentModel="fixed" sits on <z:content>. Either this or @condition
  • z:attrModel="fixed" sits on <z:attlist>. Either this or @condition
  • z:usageContext="fixed" sits on <z:context>. Either this or @condition
  • z:alterability="..." Used insted of the above attrs when pertially fixed/restricted, contains prose

Alternative:

  • z:alterability used on all three elements, with the reserved value fixed, OR a prose string possibly with wiki markup

To express a completely fixed element content model:

<z:contentModel z:contentModel="fixed">RNC</z:contentModel>

To express a partially fixed element content model:

<z:contentModel z:alterability="FOO must be allowed at least once">RNC</z:contentModel>

To express a partially fixed element attribute model:

<z:attributeModel z:alterability="@FOO must be allowed">RNC</z:contentModel>


z:content

If no alteration attributes are present, the content and attribute models are completely open to alteration.

The z:contentModel and z:attrModel attributes will result in auto-generated restriction text, such as "The content model for this element cannot be altered.".

If only one attribute is attached, the other is assumed to be alterable.

The z:alterability attribute can be used in place of the restriction attributes where the auto-generated text is not wanted, to provide clarifications about the restrictions and/or to write specific restrictions that only apply to parts of the content and/or attribute models (e.g., "This element can be altered, but must always allow 1-n instances of element y in its content model").

z:context

Only @z:alterability is attachable to define specific use parent restrictions. It's absence implies the element can be used in any context (subject to ADM layer restrictions).

Document foundation

document module

document
z:content z:alterability="fixed"
head
z:content z:alterability="The content model must allow at least one {#z3986.meta meta} elements."
z:context z:alterability="fixed"
body
z:context z:alterability="fixed"

datatypes module

global classes module

Section layer

section module

section

article module

article
article head
z:context z:alterability="fixed"
article body
z:context z:alterability="fixed"
article section
z:context z:alterability="fixed"

bibliography module

bibliography
z:content z:alterability="The content model must allow {#z3986.bibliography.entry entry} elements."
bibliography section
z:content z:alterability="The content model must allow {#z3986.bibliography.entry entry} elements."
z:context z:alterability="fixed"
bibliography entry
z:context z:alterability="fixed"

book module

frontmatter
bodymatter
backmatter

cover module

cover
z:content z:alterability="The {cover} element must contain at least one of its {#z3986.spine spine}, {#z3986.frontcover frontcover}, {#z3986.backcover backcover} or {#z3986.flaps flaps} children."
spine
z:context z:alterability="fixed"
frontcover
z:context z:alterability="fixed"
backcover
z:context z:alterability="fixed"
flaps
z:context z:alterability="fixed"

glossary module

glossary
z:content z:alterability="The content model must allow {#z3986.glossary.entry entry} elements."
glossary section
z:content z:alterability="The content model must allow {#z3986.glossary.entry entry} elements."
z:context z:alterability="fixed"
glossary entry
z:context z:alterability="fixed"

index module

index
z:content z:alterability="The content model must allow {#z3986.index.entry entry} elements."
index section
z:content z:alterability="The content model must allow {#z3986.index.entry entry} elements."
z:context z:alterability="fixed"
index entry
z:context z:alterability="fixed"

table of contents module

toc
z:content z:alterability="The content model must allow {#z3986.toc.entry entry} elements."
toc entry
z:context z:alterability="fixed"
toc label
z:context z:alterability="fixed"
toc section
z:content z:alterability="The content model must allow {#z3986.toc.entry entry} elements."
z:context z:alterability="fixed"
toc aside
z:context z:alterability="fixed"

verse module

verse (Section)
verse (Block)
verse section
z:context z:alterability="fixed"

Block layer

block module

block

annotation module

annotation (Block)
z:attlist z:alterability="The attribute model must allow the {#z3986.ref.attrib ref} attribute."
annotation (Phrase)
z:attlist z:alterability="The attribute model must allow the {#z3986.ref.attrib ref} attribute."

aside module

aside

byline module

byline

caption module

caption (Block)
z:attlist z:alterability="The attribute model must allow the {#z3986.ref.attrib ref} attribute."
caption (Phrase)
z:attlist z:alterability="The attribute model must allow the {#z3986.ref.attrib ref} attribute."

citation module

citation
z:attlist z:alterability="The attribute model must allow either the {#z3986.ref.attrib ref} or {#xlink.attrib} attributes."

code module

code (Block)
code (Phrase)
lngroup (code)
z:content z:alterability="The content model must allow {#z3986.code.ln ln} elements."
z:context z:alterability="fixed"
ln (code)
z:context z:alterability="fixed"

dateline module

dateline

definition module

definition

headings module

h
z:context z:alterability="No element may allow more than one {h} element in its content model."
hpart
z:context z:alterability="fixed"
hd

list module

list (Block)
z:content z:alterability="The content model must allow {#z3986.list.item.block item} elements."
z:attlist z:alterability="The attribute model must allow the {#z3986.list.type.attrib type} and #z3986.list.type.attrib type attributes."
list (Phrase)
z:content z:alterability="The content model must allow {#z3986.list.item.phrase item} elements."
z:attlist z:alterability="The attribute model must allow the {#z3986.list.type.attrib type} and #z3986.list.type.attrib type attributes."
item (Block)
z:context z:alterability="fixed"
item (Phrase)
z:context z:alterability="fixed"
type attribute
start attribute

meta module

meta
z:attlist z:alterability="The attribute model must allow the {#Rdfa.attrib RDFa} attributes."

note module

note
noteref
z:attlist z:alterability="The attribute model must allow the {#z3986.ref.attrib ref} attribute."

object module

object (Block)
z:attlist z:alterability="The attribute model must allow the {#z3986.src.attrib src} and {#z3986.srctype.attrib srctype} attributes."
object (Phrase)
z:attlist z:alterability="The attribute model must allow the {#z3986.src.attrib src} and {#z3986.srctype.attrib srctype} attributes."
object (Text)
z:attlist z:alterability="The attribute model must allow the {#z3986.src.attrib src} and {#z3986.srctype.attrib srctype} attributes."

paragraph module

p

pagebreak module

pagebreak
z:attlist z:alterability="The attribute model must allow the {#z3986.pagebreak.value.attrib value} attribute."
pagebreak value attribute

quote module

quote (Block)
quote (Phrase)

separator module

separator

table module

table
z:content z:alterability="The {table} element must allow the {#z3986.table.thead thead}, {#z3986.table.tbody tbody} and {#z3986.table.tfoot tfoot} elements and/or one or more {#z3986.table.tr tr} elements. The order of the {thead}, {tbody} and {tfoot} elements must not be altered."
col
z:attlist z:alterability="The attribute model must allow the {#z3986.table.col.span.attrib span} attribute."
z:context z:alterability="fixed"
colgroup
z:content z:alterability="fixed"
z:attlist z:alterability="The attribute model must allow the {#z3986.table.colgroup.span.attrib span} attribute."
z:context z:alterability="fixed"
thead
z:context z:alterability="fixed"
tbody
z:context z:alterability="fixed"
tfoot
z:context z:alterability="fixed"
tr
z:context z:alterability="fixed"
th
z:context z:alterability="fixed"
td
z:context z:alterability="fixed"
span attribute (col) 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"
span attribute (colgroup) 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"
abbr attribute 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"
colspan attribute 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"
rowspan attribute 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"
scope attribute 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"
headers attribute 
Markus: fixed(?)
z:content z:alterability="fixed"
z:context z:alterability="fixed"

Phrase layer

span module

span

abbreviations module

abbr
z:attlist z:alterability="The attribute model must allow the {#z3986.abbr.type.attrib type} and {#z3986.ref.attrib ref} attributes."
expansion
abbreviation type attribute

dialogue module

d

emphasis module

emph

line module

ln
lnum
z:context z:alterability="fixed"
lngroup
z:content z:alterability="The content model must allow {#z3986.ln ln} elements."

linking and embedding module

ref
z:content z:alterability="fixed"
ref attribute
src attribute 
Markus : fixed datatype
z:content z:alterability="fixed"
srctype attribute 
Markus : fixed datatype
z:content z:alterability="fixed"
continuation attribute 
Markus : fixed datatype
z:content z:alterability="fixed"

name module

name

num module

num
z:content z:alterability="The content model must not allow elements from MathML."
z:attlist z:alterability="The attribute model must allow the {#z3986.num.value.attrib value} attribute."
value attribute
z:context z:alterability="fixed"

sentence module

s

term module

term
z:attlist z:alterability="The attribute model must allow the {#z3986.ref.attrib ref} attribute."

time module

time
z:attlist z:alterability="The attribute model must allow the {#z3986.time.attrib time} attribute."
time attribute
z:context z:alterability="fixed"

word module

w
wpart 
Markus usage model fixed.
z:context z:alterability="fixed"

Text layer

char module

char 
Markus: fixed
z:content z:alterability="fixed"

super- and subscript module

sub
sup

Global attributes

core attributes module

xml:id attribute
xml:space attribute
xml:base attribute
class attribute

depth module

depth attribute

I18n module

xml:lang attribute
its:dir attribute
its:translate attribute

XLink attributes module

XLink href attribute
XLink type attribute
XLink role attribute
XLink arcrole attribute
XLink title attribute
XLink show attribute
XLink actuate attribute

Metadata attributes

RDFa Attributes Module

RDFa about attribute
RDFa content attribute
RDFa datatype attribute
RDFa typeof attribute
RDFa property attribute
RDFa rel attribute
RDFa resource attribute
RDFa rev attribute

role module

Personal tools