XPathAndXSLT_1002

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

Back to Item Set

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

{code:xml}
<?xml version="1.0"?>
<collection xmlns:cds="http://www.acmer.com/cds">
    <fred name="fred"/>
    <cds:cds>
        <cds:cd>
            <cds:title>Rocking to the Twenties</cds:title>
            <cds:year>1925</cds:year>
        </cds:cd>    
        <cds:cd>
            <cds:title>Rocking to the Thirties</cds:title>
            <cds:year>1935</cds:year>
        </cds:cd>
    </cds:cds>
</collection>
{code} Referring to the above sample code, what is the correct Xpath to the first CD's title? 

</div>

Select 1 correct answer(s)!

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

{code}
/cds:collection/cds:cds/cds:cd[1]/cds:title
{code}

</li>
<li>

{code}
/collection/cds/cd[1]/title
{code}

</li>
<li>

{code}
/collection/cds/cds:cd[1]/cds:title
{code}

</li>
<li>

{code}
/collection/cds:cds/cds:cd[1]/cds:title
{code}

</li>
<li>

{code}
/collection/cds:cds/cds:cd[1]/title
{code}

</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:37
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation