Re: [xsl] XPath which tests that an element does not have mixed content?

Subject: Re: [xsl] XPath which tests that an element does not have mixed content?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 03 Nov 2011 23:18:50 +0000
On 03/11/2011 18:44, Costello, Roger L. wrote:
Hi Folks,

Would you please recommend an XPath expression which ensures that the content of<author> is optional whitespace,<Person>, optional whitespace, and nothing else

self::author[Person and not(*[2]) and not(text()[normalize-space()] and not(comment()) and not(processing-instruction())]


Michael Kay
Saxonica

Current Thread