XSLT / DataType Question

Topics: General, XSLT
Jun 28, 2011 at 3:43 PM

I want to creat a global link that can be changed in the datatyp and called into the pages or xslt as needed.  When the link needs to change - all you have to do is change the data item.  I am having trouble calling in the data as a link.  I can only seem to get it to display as the KeyValue instead of the Text value I entered into the datatype.  Below is what I have done and any help to point me in the right directions would be great.

DATA - Global Datatypes

- Name:  GlobalLink

When I create an XSLT and try to create a Function Call - Under GlobalLink - i see:

  • GetDataReference
  • GetGloballinkXML
  • GetNullableDataReference

If I use GetDataReference I see the Parameter Value of my link in the drop down but this will only allow me to get the Key Value with previewed. 

Thanks for your assistance!



Jun 28, 2011 at 8:33 PM

You should use GetGloballinkXML - this will let you grab your Globallink data and return it as XML that you can use in your XSLT. See the 'Data-Centric Functions' section in the XSLT Functions guide.