Copied to clipboard

Flag this post as spam?

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


  • Michael 125 posts 409 karma points
    Jun 14, 2016 @ 14:13
    Michael
    0

    XPath: how to select current page child id

    Hi,

    I'd like to allow to submit my form on multiple pages, but with redirect to child page.

    My XPath is: $currentPage/child::@id

    http://prntscr.com/bg9pc2

    An exception of type 'System.Xml.Xsl.XslLoadException' occurred in System.Web.Mvc.dll but was not handled in user code

    Additional information: Expected a node test, found '@'.

    $currentPage/child:: -->@<-- id

    FYI: $currentPage/@id - seems works ok and page reloads with recordid as query string

    Thanks, Mike

  • Michael 125 posts 409 karma points
    Jun 14, 2016 @ 14:46
    Michael
    0

    I found solution which works for me:

    $currentPage/descendant-or-self::CHILDDOCTYPEALIAS/@id

    Maybe anybody find more simple way without specifying child doctype.

Please Sign in or register to post replies

Write your reply to:

Draft