Commit 8cd39fb3 authored by Mark A. Hershberger's avatar Mark A. Hershberger

Initial merge of nxml

parent f7cf8b20
2007-11-23 Mark A. Hershberger <mah@everybody.org>
* nxml-mode.texi: Initial merge of nxml.
2007-11-18 Richard Stallman <rms@gnu.org>
* flymake.texi (Example -- Configuring a tool called directly):
......
This diff is collapsed.
2007-11-23 Mark A. Hershberger <mah@everybody.org>
* schema: Initial merge of nxml.
2007-11-22 Francesco Potort,Al(B <pot@gnu.org>
* NEWS: etags: the --members option is now the default.
......
# This file was generated automatically by Trang, and then manually
# edited to add back definitions for overridden parameter entities and
# undefined elements, specifically: bodyatt, secur, paracon,
# tbl.table.mdl, tbl.entry.mdl, caution, graphic, legend, note, para,
# title, warning. This makes the semantics of this module as close as
# possible to the original DTD and also allows this schema to be used
# independently of DocBook.
# ......................................................................
# DocBook CALS Table Model V4.2 ........................................
# File calstblx.mod ....................................................
# Copyright 1992-2002 HaL Computer Systems, Inc.,
# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
# Organization for the Advancement of Structured Information
# Standards (OASIS).
#
# This DTD is based on the CALS Table Model
# PUBLIC "-//USA-DOD//DTD Table Model 951010//EN"
#
# $Id: calstbl.rnc,v 1.2 2003/08/30 06:04:02 jjc Exp $
#
# Permission to use, copy, modify and distribute the DocBook DTD
# and its accompanying documentation for any purpose and without fee
# is hereby granted in perpetuity, provided that the above copyright
# notice and this paragraph appear in all copies. The copyright
# holders make no representation about the suitability of the DTD for
# any purpose. It is provided "as is" without expressed or implied
# warranty.
#
# If you modify the DocBook DTD in any way, except for declaring and
# referencing additional sets of general entities and declaring
# additional notations, label your DTD as a variant of DocBook. See
# the maintenance documentation for more information.
#
# Please direct all questions, bug reports, or suggestions for
# changes to the docbook@lists.oasis-open.org mailing list. For more
# information, see http://www.oasis-open.org/docbook/.
# ......................................................................
# This module contains the definitions for the CALS Table Model
# converted to XML.
# These definitions are not directly related to the table model, but are
# used in the default CALS table model and are usually defined elsewhere
# (and prior to the inclusion of this table module) in a CALS DTD.
bodyatt = empty
secur = empty
# no if zero(s),
# yes if any other digits value
yesorno = string
titles = title?
# default for use in entry content
paracon = text
# The parameter entities as defined below provide the CALS table model
# as published (as part of the Example DTD) in MIL-HDBK-28001.
#
# These following declarations provide the CALS-compliant default definitions
# for these entities. However, these entities can and should be redefined
# (by giving the appropriate parameter entity declaration(s) prior to the
# reference to this Table Model declaration set entity) to fit the needs
# of the current application.
tbl.table-titles.mdl = titles
tbl.table-main.mdl = tgroup+ | graphic+
tbl.table.mdl = tbl.table-titles.mdl | tbl.table-main.mdl
tbl.table.att =
attribute tabstyle { text }?,
attribute tocentry { yesorno }?,
attribute shortentry { yesorno }?,
attribute orient { "port" | "land" }?,
attribute pgwide { yesorno }?
tbl.tgroup.mdl = colspec*, spanspec*, thead?, tfoot?, tbody
tbl.tgroup.att = attribute tgroupstyle { text }?
tbl.hdft.mdl = colspec*, row+
tbl.row.mdl = (entry | entrytbl)+
tbl.entrytbl.mdl = colspec*, spanspec*, thead?, tbody
tbl.entry.mdl = paracon | para | warning | caution | note | legend
# ===== Element and attribute declarations follow. =====
start = table
table = element table { table.attlist, tbl.table.mdl }
table.attlist &=
attribute frame {
"top" | "bottom" | "topbot" | "all" | "sides" | "none"
}?,
attribute colsep { yesorno }?,
attribute rowsep { yesorno }?,
tbl.table.att,
bodyatt,
secur
tgroup = element tgroup { tgroup.attlist, tbl.tgroup.mdl }
tgroup.attlist &=
attribute cols { text },
tbl.tgroup.att,
attribute colsep { yesorno }?,
attribute rowsep { yesorno }?,
attribute align { "left" | "right" | "center" | "justify" | "char" }?,
attribute char { text }?,
attribute charoff { text }?,
secur
colspec = element colspec { colspec.attlist, empty }
colspec.attlist &=
attribute colnum { text }?,
attribute colname { text }?,
attribute colwidth { text }?,
attribute colsep { yesorno }?,
attribute rowsep { yesorno }?,
attribute align { "left" | "right" | "center" | "justify" | "char" }?,
attribute char { text }?,
attribute charoff { text }?
spanspec = element spanspec { spanspec.attlist, empty }
spanspec.attlist &=
attribute namest { text },
attribute nameend { text },
attribute spanname { text },
attribute colsep { yesorno }?,
attribute rowsep { yesorno }?,
attribute align { "left" | "right" | "center" | "justify" | "char" }?,
attribute char { text }?,
attribute charoff { text }?
thead = element thead { thead.attlist, tbl.hdft.mdl }
thead.attlist &=
attribute valign { "top" | "middle" | "bottom" }?,
secur
tfoot = element tfoot { tfoot.attlist, tbl.hdft.mdl }
tfoot.attlist &=
attribute valign { "top" | "middle" | "bottom" }?,
secur
tbody = element tbody { tbody.attlist, row+ }
tbody.attlist &=
attribute valign { "top" | "middle" | "bottom" }?,
secur
row = element row { row.attlist, tbl.row.mdl }
row.attlist &=
attribute rowsep { yesorno }?,
attribute valign { "top" | "middle" | "bottom" }?,
secur
entrytbl = element entrytbl { entrytbl.attlist, tbl.entrytbl.mdl }
entrytbl.attlist &=
attribute cols { text },
tbl.tgroup.att,
attribute colname { text }?,
attribute spanname { text }?,
attribute namest { text }?,
attribute nameend { text }?,
attribute colsep { yesorno }?,
attribute rowsep { yesorno }?,
attribute align { "left" | "right" | "center" | "justify" | "char" }?,
attribute char { text }?,
attribute charoff { text }?,
secur
entry = element entry { entry.attlist, tbl.entry.mdl* }
entry.attlist &=
attribute colname { text }?,
attribute namest { text }?,
attribute nameend { text }?,
attribute spanname { text }?,
attribute morerows { text }?,
attribute colsep { yesorno }?,
attribute rowsep { yesorno }?,
attribute align { "left" | "right" | "center" | "justify" | "char" }?,
attribute char { text }?,
attribute charoff { text }?,
attribute rotate { yesorno }?,
attribute valign { "top" | "middle" | "bottom" }?,
secur
caution |= notAllowed
graphic |= notAllowed
legend |= notAllowed
note |= notAllowed
para |= notAllowed
title |= notAllowed
warning |= notAllowed
# End of DocBook CALS Table Model V4.2 .................................
# ......................................................................
# Definitions specific to the CALS Table Model.
# Reference CALS Table Model
include "calstbl.rnc" {
# Override definition of start
start |= notAllowed
# Add label and role attributes to table and informaltable
bodyatt = label.attrib
# Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
# EntryTbl, and Entry (and InformalTable element).
secur = common.attrib, tables.role.attrib
# Content model for Table.
tbl.table.mdl =
blockinfo?,
formalobject.title.content,
ndxterm.class*,
textobject*,
(graphic+ | mediaobject+ | tgroup+)
# Allow either objects or inlines; beware of REs between elements.
tbl.entry.mdl = para.char.mix | tabentry.mix
}
common.table.attribs = bodyatt, secur
# end of table.module
# This is an alternative to dbsoextbl.rnc and dbcalstbl.rnc that
# allows the table model to be selected dynamically based on the
# definitions of cals.table.module and exchange.table.module.
#
# To use this copy, docbook.rnc to docbook-dyntbl.rnc replacing
# "dbcalstbl.rnc" by "dbdyntbl.rnc". Then, you can override the
# choice of table model by doing
#
# include "docbook-dyntbl.rnc" {
# cals.table.model = IGNORE
# exchange.table.model = INCLUDE
# }
INCLUDE = empty
IGNORE = notAllowed
cals.table.module = INCLUDE
exchange.table.module = IGNORE
# Add common attributes and the Label attribute to Table and
# InformalTable.
bodyatt = common.attrib, label.attrib, tables.role.attrib
# Content model for Table.
tbl.table.mdl =
blockinfo?,
formalobject.title.content,
ndxterm.class*,
textobject*,
(graphic+ | mediaobject+ | tgroup+)
table = cals.table | exchange.table
cals.table =
cals.table.module,
grammar {
# Reference CALS Table Model
include "calstbl.rnc" {
# Add label and role attributes to table and informaltable
bodyatt = parent label.attrib
# Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
# EntryTbl, and Entry (and InformalTable element).
secur = parent common.attrib, parent tables.role.attrib
tbl.table.mdl = parent tbl.table.mdl
}
}
exchange.table =
exchange.table.module,
grammar {
# Reference OASIS Exchange Table Model
include "soextbl.rnc" {
# Add common attributes and the Label attribute to Table and
# InformalTable.
bodyatt = parent bodyatt
tbl.table.mdl = parent tbl.table.mdl
}
}
tgroup = cals.tgroup | exchange.tgroup
cals.tgroup =
cals.table.module,
grammar {
# Reference CALS Table Model
include "calstbl.rnc" {
start = tgroup
# Add label and role attributes to table and informaltable
bodyatt = parent label.attrib
# Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
# EntryTbl, and Entry (and InformalTable element).
secur = parent common.attrib, parent tables.role.attrib
# Allow either objects or inlines; beware of REs between elements.
tbl.entry.mdl = parent para.char.mix | parent tabentry.mix
}
}
exchange.tgroup =
exchange.table.module,
grammar {
# Reference OASIS Exchange Table Model
include "soextbl.rnc" {
start = tgroup
bodyatt = parent bodyatt
# Add common attributes to TGroup, ColSpec, TBody, THead, Row, Entry
tbl.tgroup.att = parent common.attrib
tbl.colspec.att = parent common.attrib
tbl.tbody.att = parent common.attrib
tbl.thead.att = parent common.attrib
tbl.row.att = parent common.attrib
tbl.entry.att = parent common.attrib
# Allow either objects or inlines; beware of REs between elements.
tbl.entry.mdl = (parent para.char.mix | parent tabentry.mix)*
}
}
tbl.table.att = cals.tbl.table.att | exchange.tbl.table.att
cals.tbl.table.att =
cals.table.module,
grammar {
include "calstbl.rnc" {
start = tbl.table.att
}
}
exchange.tbl.table.att =
exchange.table.module,
grammar {
include "soextbl.rnc" {
start = tbl.table.att
}
}
common.table.attribs = bodyatt
# end of table.module
This diff is collapsed.
# ......................................................................
# DocBook notations module V4.2 ........................................
# File dbnotnx.mod .....................................................
# Copyright 1992-2002 HaL Computer Systems, Inc.,
# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
# Organization for the Advancement of Structured Information
# Standards (OASIS).
#
# $Id: dbnotn.rnc,v 1.1 2003/08/30 04:19:27 jjc Exp $
#
# Permission to use, copy, modify and distribute the DocBook DTD
# and its accompanying documentation for any purpose and without fee
# is hereby granted in perpetuity, provided that the above copyright
# notice and this paragraph appear in all copies. The copyright
# holders make no representation about the suitability of the DTD for
# any purpose. It is provided "as is" without expressed or implied
# warranty.
#
# If you modify the DocBook DTD in any way, except for declaring and
# referencing additional sets of general entities and declaring
# additional notations, label your DTD as a variant of DocBook. See
# the maintenance documentation for more information.
#
# Please direct all questions, bug reports, or suggestions for
# changes to the docbook@lists.oasis-open.org mailing list. For more
# information, see http://www.oasis-open.org/docbook/.
# ......................................................................
# This module contains the entity declarations for the standard ISO
# entity sets used by DocBook.
#
# In DTD driver files referring to this module, please use an entity
# declaration that uses the public identifier shown below:
#
# <!ENTITY % dbnotn PUBLIC
# "-//OASIS//ENTITIES DocBook Notations V4.2//EN"
# "dbnotnx.mod">
# %dbnotn;
#
# See the documentation for detailed information on the parameter
# entity and module scheme used in DocBook, customizing DocBook and
# planning for interchange, and changes made since the last release
# of DocBook.
local.notation.class = notAllowed
notation.class =
"BMP"
| "CGM-CHAR"
| "CGM-BINARY"
| "CGM-CLEAR"
| "DITROFF"
| "DVI"
| "EPS"
| "EQN"
| "FAX"
| "GIF"
| "GIF87a"
| "GIF89a"
| "JPG"
| "JPEG"
| "IGES"
| "PCX"
| "PIC"
| "PNG"
| "PS"
| "SGML"
| "TBL"
| "TEX"
| "TIFF"
| "WMF"
| "WPG"
| "SVG"
| "linespecific"
| local.notation.class
# WordPerfect Graphic format
# End of DocBook notations module V4.2 .................................
# ......................................................................
This diff is collapsed.
# Definitions specific to the OASIS XML Exchange Table Model.
# Reference OASIS Exchange Table Model
include "soextbl.rnc" {
# Override definition of start
start |= notAllowed
# Add common attributes and the Label attribute to Table and
# InformalTable.
bodyatt = common.attrib, label.attrib, tables.role.attrib
# Add common attributes to TGroup, ColSpec, TBody, THead, Row, Entry
tbl.tgroup.att = common.attrib
tbl.colspec.att = common.attrib
tbl.tbody.att = common.attrib
tbl.thead.att = common.attrib
tbl.row.att = common.attrib
tbl.entry.att = common.attrib
# Content model for Table.
tbl.table.mdl =
blockinfo?,
formalobject.title.content,
ndxterm.class*,
textobject*,
(graphic+ | mediaobject+ | tgroup+)
# Allow either objects or inlines; beware of REs between elements.
tbl.entry.mdl = (para.char.mix | tabentry.mix)*
}
common.table.attribs = bodyatt
# end of table.module
# This choice of root elements comes from the 1.0b1 RNG schema at
# http://www.oasis-open.org/docbook/relaxng/1.0b1/index.shtml
start =
set
| setindex
| book
| part
| reference
| preface
| chapter
| appendix
| article
| bibliography
| glossary
| index
| refentry
| sect1
| sect2
| sect3
| sect4
| sect5
| section
# Variant of docbook.rnc that allows the table model to be selected
# dynamically based on the definitions of cals.table.module and
# exchange.table.module. See dbdyntbl.rnc.
# Document (root) elements
include "dbstart.rnc"
# Notation declarations
include "dbnotn.rnc"
# Information pool
include "dbpool.rnc"
# Dynamic Table Model
include "dbdyntbl.rnc"
# Document hierarchy
include "dbhier.rnc"
# Variant of docbook.rnc that uses the OASIS XML Exchange Table Model
# rather than the CALS Table Model.
# Document (root) elements
include "dbstart.rnc"
# Notation declarations
include "dbnotn.rnc"
# Information pool
include "dbpool.rnc"
# OASIS XML Exchange Table Model
include "dbsoextbl.rnc"
# Document hierarchy
include "dbhier.rnc"
# Unofficial DocBook RELAX NG Compact Syntax schema
# This file was generated automatically by Trang
# (http://www.thaiopensource.com/relaxng/trang.html) from the DocBook
# XML DTD V4.2 (http://www.oasis-open.org/docbook/xml/4.2/), then
# changing the definition of start, changing the filenames,
# editing the comments and adding includes of dbstart.rnc
# and dbcalstbl.rnc.
# The following copyright applies to the DocBook XML DTD V4.2.
# Copyright 1992-2002 HaL Computer Systems, Inc.,
# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
# Organization for the Advancement of Structured Information
# Standards (OASIS).
#
# Permission to use, copy, modify and distribute the DocBook XML DTD
# and its accompanying documentation for any purpose and without fee
# is hereby granted in perpetuity, provided that the above copyright
# notice and this paragraph appear in all copies. The copyright
# holders make no representation about the suitability of the DTD for
# any purpose. It is provided "as is" without expressed or implied
# warranty.
#
# If you modify the DocBook DTD in any way, except for declaring and
# referencing additional sets of general entities and declaring
# additional notations, label your DTD as a variant of DocBook. See
# the maintenance documentation for more information.
#
# Please direct all questions, bug reports, or suggestions for
# changes to the docbook@lists.oasis-open.org mailing list. For more
# information, see http://www.oasis-open.org/docbook/.
# Document (root) elements
include "dbstart.rnc"
# Notation declarations
include "dbnotn.rnc"
# Information pool
include "dbpool.rnc"
# CALS Table Model
include "dbcalstbl.rnc"
# Document hierarchy
include "dbhier.rnc"
default namespace this = "http://thaiopensource.com/ns/locating-rules/1.0"
namespace local = ""
start = locatingRules
locatingRules = element locatingRules { common, rule* }
rule =
\include
# | group
| applyFollowingRules
| documentElement
# | doctypePublicId
| \namespace
| uri
| transformURI
# | typeIdProcessingInstruction
| \default
| typeId
# | typeIdBase
| extensionRule
## Grou