Search

Hello together

I have a little problem because i want to give out the values given in “podcast-datei”. These are size=”63 KB” and path=”/podcasts” and type=”” but how can I do this?

Thanks for your ideas.

Greez and thanks for your answers.

<entry id="1">
    <titel handle="test">Test</titel>
    <beschreibung>Test Test Test</beschreibung>
    <podcast-datei size="63 KB" path="/podcasts" type="image/jpeg">
        <filename>preview.jpg</filename>
        <meta creation="2010-12-04T23:49:09+01:00" width="528" height="400" />
    </podcast-datei>
    <laenge handle="1-30">1:30</laenge>
    <groesse handle="20mb">20mb</groesse>
</entry>

To get the size attribute use the @ prefix:

<xsl:value-of select="podcast-datei/@size"/>

To get the full path to your file:

<xsl:value-of select="concat(podcast-datei/@path,'/',podcast-datei/filename)"/>

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details