{
result = true;
}
else
{
CMAnyElement anyElement = (CMAnyElement)cmNode;
String anyElementURI = anyElement.getNamespaceURI();
if (anyElementURI != null)
{
if (anyElementURI.equals("##any")) //$NON-NLS-1$
{
result = true;
}
else if (anyElementURI.equals("##other")) //$NON-NLS-1$
{
result = true;
CMDocument cmDocument = (CMDocument)anyElement.getProperty("CMDocument"); //$NON-NLS-1$
if (cmDocument != null)
{
String excludedURI = (String)cmDocument.getProperty("http://org.eclipse.wst/cm/properties/targetNamespaceURI"); //$NON-NLS-1$
if (excludedURI != null)
{
String specifiedURI = getURIForContentSpecification(string);
if (specifiedURI != null && excludedURI.equals(specifiedURI))
{
result = false;
}
}
}
}
else if (anyElementURI.equals("##targetNamespace")) //$NON-NLS-1$
{
result = true;
CMDocument cmDocument = (CMDocument)anyElement.getProperty("CMDocument"); //$NON-NLS-1$
if (cmDocument != null)
{
String targetNamespaceURI = (String)cmDocument.getProperty("http://org.eclipse.wst/cm/properties/targetNamespaceURI"); //$NON-NLS-1$
String specifiedURI = getURIForContentSpecification(string);
if (specifiedURI != null && !targetNamespaceURI.equals(specifiedURI))