Copied to clipboard

Flag this post as spam?

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


  • Soeren Sprogoe 575 posts 259 karma points
    Apr 23, 2009 @ 17:00
    Soeren Sprogoe
    0

    Get a property's data type via XSLT

    Heya fellow Umbracians!

    Can you somehow check what the data type is for a property on a node?

    What I want to do, is sort of accomplish the same as doc2form, only in pure XSLT. Ie. be able to dynamically render a document type according to the properties associated with it.

    But in order to do this I need to be able to check wether a property is fx. a number, textfield, dropdown or any other data types, so I know how to render them.

    Hope it makes sense...

    Anyone got any hints on how to accomplish this?

    Best regards,
    Soeren Sprogoe

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Apr 23, 2009 @ 17:07
    Ismail Mayat
    0

    Soren,

    Would probably need xslt extension which makes the c# call to get it.

    regards

    Ismail

  • Soeren Sprogoe 575 posts 259 karma points
    Apr 23, 2009 @ 18:29
    Soeren Sprogoe
    0

    Got it sorted with an XSLT extension that returns the datatype name, thanks to Ismail.

    You'll definately get my vote for CG09 MVP now :-)

    /SoerenS

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies