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.
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
Soren,
Would probably need xslt extension which makes the c# call to get it.
regards
Ismail
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
is working on a reply...