0

I could use a little help with an XPath-Expression. check the code below; how do I select the attribute "idc" at the shown point?

<!-- XML-Code -->
<pictGaleList>
    <item>
    </item>

    <dateItem>
        <ImageDate idc="20">
            20/04/2010
        </ImageDate>
    </dateItem>

</pictGaleList>


<!-- XSLT -->

<xsl:template match="pictGaleList">
    <xsl:value-of select="" /> <!-- here I need the value of the attribute "idc" -->
</xsl:template>

3 Answers 3

1

dateItem/ImageDate/@idc ?

Sign up to request clarification or add additional context in comments.

Comments

1
dateItem[position() = 1]/ImageDate/@idc

Will give you the value of 1st ImageDate element's idc attribute inside pictGaleList

Comments

0

Solved, the false behaviour if the website didn't come from this code. nvrmnd

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.