Copied to clipboard

Flag this post as spam?

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


  • pnr 131 posts 226 karma points
    Mar 25, 2009 @ 13:29
    pnr
    0

    Using none Umbraco data in XSLT

    I have created my own tables in the MS-SQL database for Umbraco, now I would like to access data from those tables in my XLST macro, hove is that possible?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Mar 25, 2009 @ 14:05
    Dirk De Grave
    0

    Hi,

    It' possible in two ways:

    - write some inline c# code
    - write an xslt extension

    Don't have any examples on this, I'm sure a search on this forum would give some pointers.
    For the latter, have a look at http://www.nibble.be/?p=60 which explains how to write and configure xslt extensions in umbraco.

    Hope this helps.

    Regards,
    /Dirk

  • Daniel Lindstrom 454 posts 271 karma points
    Mar 26, 2009 @ 10:12
    Daniel Lindstrom
    0

    Additional tip:
    If you want to retrieve and use anything more than single values from your external data in your xslt you should return it as an XPathNodeIterator from the XSLT-extension. Then you can do for-each and such on the data in your xslt.

    It is really simple to do once you learn how...

  • 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