Search

Hi there, I am getting values on my screen, even though I have not called for it. Here are the files I have used.

Here is my homepage xml http://paste.laravel.com/oE0

home.xslt http://paste.laravel.com/oE1

HTML output
http://paste.laravel.com/oDZ

(XSLT Skills : 0.01% )

thanks, noussh

You are missing a / template:

<xsl:template match="/">
    <xsl:apply-templates select="data/latest-packages" />
</xsl:template>

XSLT always starts at the root node /. If you want to skip it and some of its children (in your case everything besides data/latest-packages) you need to implement a template that does that.

Thanks @phoque. Solved..

noussh, you can build your <img> tag a bit easier, something like

<img alt="{description}" src="{$workspace}{images/@path}/{images/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