Subject: Re: [xsl] How to allow element to appear 0, or 2 or more times (but not once)? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 31 Jul 2008 10:12:01 -0400 |
I have a working schema for data that we use, and want to expand it to do more checking on the XML elements.
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.
That is, I want to detect a singular occurrence of <FM> during file validation.
There are other sibling elements along with <FM>.
Can this be done, and can it be done with the schema itself, or with uniqueness constraints, or???
I'm using Oxygen 9.1 and XSLT 2.0.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to allow element to a, mlcook | Thread | Re: [xsl] How to allow element to a, CyberSpace Industrie |
RE: [xsl] First occurrence of gloss, Wendell Piez | Date | RE: [xsl] coping with missing exter, Wendell Piez |
Month |