xsl-list
[Top] [All Lists]

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

2011-11-03 18:18:59
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

--~------------------------------------------------------------------
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>
--~--