Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stephen 204 posts 246 karma points
    Oct 11, 2011 @ 10:57
    Stephen
    0

    Syntax error in XPath expression

    I am using the following XSLT code to get all my location details content...

    <xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc]/tmContactHome/* [name() = 'tmContactDetailPage']">

    what part do i enter into the expression?

    $currentPage/ancestor-or-self::* [@isDoc]/tmContactHome/* [name() = 'tmContactDetailPage']

    bit lost...


    S



  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Oct 11, 2011 @ 11:00
    Lee Kelleher
    1

    Hi Stephen,

    Which uComponents data-type are you using?

    I'd try something like this...

    $currentPage/ancestor-or-self::tmContactHome[@isDoc]/tmContactDetailPage[@isDoc]

    Cheers, Lee.

  • Stephen 204 posts 246 karma points
    Oct 11, 2011 @ 11:06
    Stephen
    0

    I'm using the Xpath checkbox list...thanks for the above post...I'm sorted!

    S

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Oct 11, 2011 @ 11:10
    Lee Kelleher
    1

    Did my XPath work, or did you sort it out yourself?

  • Stephen 204 posts 246 karma points
    Oct 11, 2011 @ 13:33
    Stephen
    0

    your xpath worked straight off the bat! thanks.

    Stephen

  • Stephen 204 posts 246 karma points
    Oct 11, 2011 @ 15:18
    Stephen
    0

    whoops spoke to soon...the ucomponent is allowing me to save but nothing is showing up in my memeber profile...

    S

Please Sign in or register to post replies

Write your reply to:

Draft