regular expression matching in <assert>

Jim Barnett <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <57A15FAF9E58F841B2B1651FFE16D2810388A9@GENSJZMBX02.msg.int.genesyslab.com>
Are matches() and tokenize() supported inside <assert> when doing schema validation?  I am applying an assertion to an element with a 'target' attribute whose value is "s1 s2", yet the following assertion is failing:

<xsd:assert test="if (matches(@target, '.*')) then true()  else false()"  xpathDefaultNamespace="##targetNamespace"/>

Any guidance would be appreciated.

Thanks,
Jim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.