XPathAndXSLT_1001

Last modified by superadmin on 2018-01-12 20:24

Back to Item Set

<p/>
<!-- START TestItem -->
<p/>
<div class="TestItem">
<div class="TestItemQuestion">1001 Question:\

{code}
/descendant-or-self::contacts/contact[attribute::firstname='Fred']
{code} Which one of the following XPath queries is equivalent to the sample code above?

</div>

Select 1 correct answer(s)!

<p/>
<ol class="MTestItemChoices" type='A'>
<li>

{code}
/self::contacts/contact[attribute::firstname='Fred']
{code}

</li>
<li>

{code}
contacts/contact/@firstname='Fred'
{code}

</li>
<li>

{code}
contact[@firstname='Fred']
{code}

</li>
<li>

{code}
contacts/contact[@firstname='Fred']
{code}

</li>
<li>

{code}
/contacts/contact[@firstname='Fred']
{code}

</li>
<li> </li>
<li> </li>
</ol>
<p/>
<div class="TestItemSkill"><!--$skillid>Skill: XPath 1.0 for Addressing Nodes</div>
<p/>
</div>
<!-- END MTestItem -->
<p/>
<p/>


{{/velocity}}

Tags:
Created by Kalvis Apsītis on 2008-01-01 21:29
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation