All the content models are wrong !!!
element has to be ELEMENT in the model.
I am not sure if the question is from Whiz.
Like this there are a lot of other errors and typos in the Whiz tool.
Even assuming that element is actually ELEMENT, B is a valid model. I even verified this with xerces.
For example in XML Whiz,
Which of the following is a protocol for initiating conversations with UDDI service...
The answer given is
SOAP and the explanation is
SOAP (Simple Object Access Protocol) is a protocol for initiating conversations with a UDDI service.
The above explanation is wrong. SOAP is NOT a protocol. SOAP can be used with any protocol like http or smtp and is itself not a protocol.
Another answer which is wrong is
How many elements will be output when the following XSL sheet is applied to the following XML document?
--------------------XSL Document-------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:element name='Root'>
<xsl:call-template name="v3"/>
</xsl:element>
</xsl:template>
<xsl:template name="v3">
<xsl:variable name="v3List" select="//a[not(following::x=.)]|//x[not(preceding::a=.)] "/>
<xsl:for-each select="$v3List">
<a><xsl:value-of select="."/></a>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
--------------------XML Document-------------------------
<Root>
<B>
<a>1</a>
<a>2</a>
<a>1</a>
<x>3</x>
<x>4</x>
<x>2</x>
</B>
<B>
<a>3</a>
<a>1</a>
<a>2</a>
<a>3</a>
<x>5</x>
<x>4</x>
<x>1</x>
</B>
</Root>
(A) 7
(B) 8
(C) 3
(D) 5
(E) error
The given answer is 7, but the correct answer is 8.
The question just asks about the number of elements output, not just <a> elements. That means that the <Root> element must be included.
Somehow the Whiz guys assumed that the question referred only to number of <a> elements
I would frankly avoid using any
test simulators, which are neither tested for correctness nor accuracy.
Also the Whiz tool has questions where you will find questions like the one below where entity and ENTITY mean the same
<!entity % set "elements | attributes | %lists;">
<!entity % lists "entities | processing_instructions | %set;">
Good luck,
Shashank
[ April 20, 2002: Message edited by: Shashank Tanksali ]