Re: [xsl] How to allow element to appear 0, or 2 or more times (but not once)?

Subject: Re: [xsl] How to allow element to appear 0, or 2 or more times (but not once)?
From: "CyberSpace Industries 2000 Inc." <csi2000@xxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 10:19:16 -0400
We have a particular data element, say <FM>, that is not required to
appear in our data, but if it does, it must appear at least twice, and
possibly more.



Would the following (expressed as a DTD) be what you were looking for?


<!ELEMENT Parent (FM,FM+)? >

i.e. FM may not exist - but if it does, it must occur at least 2 times.

Cheers...Hugh

CyberSpace Industries 2000 Inc.
Multimedia Promotion
XML Training and Consulting
http://cyberspace-industries-2000.com

Current Thread