Technically I think "mixed content" is a property of an element type in a
schema or DTD, it is not a property of an instance. Given an instance such
as <a>xyz</a> or <a><b/></a> you can't actually tell whether the schema/DTD
allows mixed content or not.
But at the instance level you can test whether an element has both
(non-whitespace) child text nodes and child elements using test="* and
text()[normalize-space(.)]".
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: jesper(_dot_)tverskov(_at_)gmail(_dot_)com
[mailto:jesper(_dot_)tverskov(_at_)gmail(_dot_)com] On Behalf Of Jesper
Tverskov
Sent: 12 September 2007 12:06
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Test for mixed content
Hi list
What is the best way to test if an element contains mixed content.
Cheers
Jesper Tverskov
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--