xsl-list
[Top] [All Lists]

[xsl] XML schema: require a descendant?

2017-07-02 03:01:12
I guess this might be a bit off-topic for an XSLT list, but in any case it's related to XPath.

In my data (simplified here):

<entry>
  <sense>
  <sense>
  <sense>
</entry>

I want at least *one* of the <sense> nodes to contain <term>, <persName>, or <title>. But it only needs to be in one of them, thus <entry> needs at least one descendant from the above three tags.

Is there a way of writing this into a DTD or schema?

Chuck


---------------------------
A. Charles Muller

Graduate School of Humanities and Sociology
Faculty of Letters
University of Tokyo
7-3-1 Hongō, Bunkyō-ku
Tokyo 113-8654, Japan

Office Phone: 03-5841-3735

Web Site: Resources for East Asian Language and Thought
http://www.acmuller.net

Twitter: @H_Buddhism
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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