Title: XSL
Last modified: August 22, 2016

---

# XSL

 *  [ries163](https://wordpress.org/support/users/ries163/)
 * (@ries163)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/xsl/)
 * Hi, I’m trying to use the xsl transformations on a sql query, like you have done
   in your example. However, I get no output when I do that. When I leave the xsl
   transform, and just the query, I do get the proper results from the database.
 *     ```
       <table>
           <xsl:copy-of select="/table/tr[1]" />
             <xsl:for-each select="/table/tr[position() != 1]">
                <tr>
                  <xsl:for-each select="td" />
                    <xsl:choose>
                      <xsl:when test="position () = 3">
                        <td><a href="/wordpress/speler-profiel/"><xsl:value-of select="." /></a></td>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:copy-of select="." />
                      </xsl:otherwise>
                    </xsl:choose>
                  </xsl:for-each>
                </tr>
              </xsl:for each>
            </table>
       ```
   
 * [https://wordpress.org/plugins/sql-shortcode/](https://wordpress.org/plugins/sql-shortcode/)

The topic ‘XSL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sql-shortcode.svg)
 * [SQL Shortcode](https://wordpress.org/plugins/sql-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/sql-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/sql-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sql-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sql-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ries163](https://wordpress.org/support/users/ries163/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/xsl/)
 * Status: not resolved