You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2003/01/09 16:52:46 UTC
cvs commit: xml-forrest/src/resources/schema/relaxng skinconf.rnc skinconf-v10.rng
jefft 2003/01/09 07:52:46
Modified: src/resources/forrest-shbat forrest.build.xml
Added: src/resources/schema/relaxng skinconf.rnc
Removed: src/resources/schema/relaxng skinconf-v10.rng
Log:
- Replace DTD-generated skinconf RNG with a hand-written one
- Add 'id' and 'role' optional attributes to <credit>, to allow for PDF-only
"Created by FOP" credits (and that sort of thing..)
Revision Changes Path
1.37 +3 -1 xml-forrest/src/resources/forrest-shbat/forrest.build.xml
Index: forrest.build.xml
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/forrest-shbat/forrest.build.xml,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- forrest.build.xml 9 Jan 2003 15:46:37 -0000 1.36
+++ forrest.build.xml 9 Jan 2003 15:52:46 -0000 1.37
@@ -747,7 +747,9 @@
<target name="validate-skinconf" depends="validation-props"
if="validate.skinconf">
- <jing rngfile="${forrest.home}/context/resources/schema/relaxng/skinconf-v10.rng">
+
+ <jing compactSyntax="true"
+ rngfile="${forrest.home}/context/resources/schema/relaxng/skinconf.rnc">
<fileset dir="${project.content-dir}"
includes="${forrest.validate.skinconf.includes}"
excludes="${forrest.validate.skinconf.excludes}"/>
1.1 xml-forrest/src/resources/schema/relaxng/skinconf.rnc
Index: skinconf.rnc
===================================================================
# Skin configuration file. This file contains details of your project, which
# will be used to configure the chosen Forrest skin.
start = skinconfig
skinconfig = element skinconfig {
(
element disable-search {xsd:boolean}?, # Disable search feature. 'true' or 'false'
element searchsite-domain {text}?, # DNS domain to search. Eg 'xml.apache.org'
element searchsite-name {text}?, # "Search the ... site"
element project-name {text}, # Eg 'Forrest'
element project-url {xsd:anyURI},
element project-logo {text}, # Eg 'images/project-logo.gif'
element group-name {text}?, # Group/Organization owning project, eg 'Apache XML'
element group-url {xsd:anyURI}?,
element group-logo {text}?, # Eg images/group-logo.gif
element host-url {xsd:anyURI}?, # Eg Sourceforge URL
element host-logo {text}?,
element year {xsd:gYear}?, # Used in Copyright
element vendor {text}?, # Used in Copyright
trail?, # 'Breadcrumbs' trail in skins that support it
credits?
)*
}
trail = element trail {
element link1 { link_attrs },
element link2 { link_attrs },
element link3 { link_attrs }
}
link_attrs = (attribute name {text}, attribute href {text}?) # Leave these attributes blank if you don't want a trail
## Credits are typically rendered as a set of small clickable images in the
## page footer
credits = element credits { credit* }
credit = element credit {
## Unique identifier, in case the skin has some special rendering for it
attribute id {text}?,
## Role played by this creditee, eg 'pdf' for PDF generation
attribute role {text}?,
element name {text}, # Eg 'Built with Apache Forrest'
element url {text},
element image {xsd:anyURI}?, # Eg 'images/built-with-forrest-button.png'
element width {xsd:nonNegativeInteger}?,
element height {xsd:nonNegativeInteger}?
}