Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 24, 2009 @ 10:29
    Jeroen Breuer
    0

    External database

    Hello,

    For research of a new project I need to know if it's possible to read data from an external database and display it using xslt. Is the following possible?

    1. Add a extra connection string in de web.config.
    2. Create an xslt extension.
    3. Create a method in the xslt extension which returns the data from the external database using subsonic (http://subsonicproject.com/).
    4. Call the method in xslt to display the data.

    I hope this is possible so the project can be build using Umbraco.

  • Richard Soeteman 4047 posts 12900 karma points MVP 2x
    Apr 24, 2009 @ 10:34
    Richard Soeteman
    0

    Hi,

    Yes that is possible. In fact there is a video up on umbraco.tv that describes this. The first three minutes are free.

    Basically what you need to do is quer your data and return that in your XSLT Extension as an XMlNodeIterator.

    Hope it helps you,

    Richard

  • Daniel Lindstrom 454 posts 271 karma points
    Apr 24, 2009 @ 10:45
    Daniel Lindstrom
    0

    Here is a discussion on returning data to XSLT from csharp:

    http://forum.umbraco.org/yafpostst7905how-to-send-nodeset-to-xslt-extension-and-back.aspx

    You might find something useful there.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 24, 2009 @ 10:54
    Jeroen Breuer
    0

    Thank you for the information. This is just what I needed!

Please Sign in or register to post replies

Write your reply to:

Draft