Copied to clipboard

Flag this post as spam?

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


  • Janusz Stabik 37 posts 59 karma points
    Apr 20, 2011 @ 10:18
    Janusz Stabik
    0

    Why is isDoc an empty string?

    I'm currently writing an xslt extension and I need to detemine between document and properties.  I wanted to use the isDoc attribute however the xpathnavigator.GetAttribute method returns an empty string if the attribute is not found - the same value that the isDoc property will contain if it exists. 

    Is there a specific reason for this?

    Is it safe for me to evaluate the id attribute instead to determine whether a node is a document or property? (i.e. I presume that only document nodes will have id's and proerpties will not).

Please Sign in or register to post replies

Write your reply to:

Draft