xsl-list
[Top] [All Lists]

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

2008-07-31 07:19:49

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>