i woud like to know how to use the xPathNodeIterator in my xsltextension to list my products from an external table in the umbraco database.
Is there any good guides, examples, blogposts or documentation on how to do this?
It doesn't call the database, but the general idea is that you get the data from wherever, put it into an XML document and then create an XPathNodeIterator from it.
How to use the xPathNodeIterator
Continuing on the thread http://our.umbraco.org/forum/developers/xslt/9236-creating-a-getxmlnodebyid-alike-function-for-custom-section
i woud like to know how to use the xPathNodeIterator in my xsltextension to list my products from an external table in the umbraco database. Is there any good guides, examples, blogposts or documentation on how to do this?
A wiki article on using xslt extension, returning an XPathNodeIterator and use in your xslt can be found here.
Hope this helps.
Regards,
/Dirk
Hi Johan,
You could try using the SQL for XSLT extension for a quick-and-easy solution?
For a code example, I put up a snippet on the wiki a while back:
http://our.umbraco.org/wiki/reference/code-snippets/getlanguages
It doesn't call the database, but the general idea is that you get the data from wherever, put it into an XML document and then create an XPathNodeIterator from it.
Cheers, Lee.
Dirk: Thanks just what i was looking for.
Lee: Wont be using it for this project but it looks like something that might be usefull in the future :)
is working on a reply...