This works for some senarios, but it requires an HTML tag to wrap the XSLT file so that start="$startRecord+$recordCount" can reside in it. However, this doesn't work when I want to call the url of a file into an audio player's src.
Is there a way to access a SQL database with XSLT using "SELECT TOP 10 from DB_Table" ?
SQL select top 10 from db_table, in XSLT
How do I go about selecting a number of records from an SQL database by using XSLT?
One option I have been using works according to this set up:
This works for some senarios, but it requires an HTML tag to wrap the XSLT file so that start="$startRecord+$recordCount" can reside in it. However, this doesn't work when I want to call the url of a file into an audio player's src.
Is there a way to access a SQL database with XSLT using "SELECT TOP 10 from DB_Table" ?
Thank-you,
Luke
Hi
Could you simply add "TOP 10" to your sql query as follows:
Also I would assume you might want to have an "order by" so have also added that:
select top 10 id, date, title, description, thumbnail, articletype from webcontent_news WHERE articletype = 2 order by date desc
Is this what you were meaning ?
Cheers
Nigel
Hi Luke,
You can try one of the Umbraco Package called jesper at url
http://our.umbraco.org/projects/developer-tools/sql-for-xslt-(jespercom)
is working on a reply...