cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject sitemap-v06.rng
Date Thu, 29 Apr 2004 11:21:46 GMT

Hi all,

I propose to change the RelaxNG validation file sitemap-v06.rng in this way:
Component declaration like <map:generator>, <map:transformer>, <map:serializer>,
and similars would need to be:

	<define name="map.generator">
		<element name="map:generator">
			<ref name="map.generator.attlist"/>
			<ref name="component.config"/>
		</element>
	</define>

where component.config is defined as

	<define name="component.config">
		<zeroOrMore>
			<element>
				<anyName>
					<except>
						<nsName ns="http://apache.org/cocoon/sitemap/1.0"/>
					</except>
				</anyName>
				<zeroOrMore>
					<attribute>
						<anyName>
							<except>
								<nsName ns="http://apache.org/cocoon/sitemap/1.0"/>
							</except>
						</anyName>
					</attribute>
				</zeroOrMore>
				<choice>
					<ref name="config"/>
					<text/>
				</choice>
			</element>
		</zeroOrMore>
	</define>

That is, to allow any configuration content.  If we make it too restrictive, what about custom
components setup?.

What do you think about this?

David

*************************************************************
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message