< Umbraco < Samples and Articles < XSLT
Reading information from the media library
Reading information from the media library is actually quite simple - It's all implimented in Umbraco. You only need to use a method in the umbraco.library in your XSLT.
To get the filename of a file in media library use the following XSLT:
<xsl:value-of select="umbraco.library:GetMedia(./data [@alias = '<your property>'], 'false')/data [@alias = 'umbracoFile']"/>
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.