ylliX - Online Advertising Network

XSLT generating only output when no strings are matched

Here’s a snippet of my XSLT code: <xsl:stylesheet version=”2.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” xmlns:xs=”http://www.w3.org/2001/XMLSchema” xmlns:ns1=”http://www.oracle.com/retail/integration/base/bo/FileDesc/v1″ xmlns:ns2=”http://www.oracle.com/retail/integration/base/bo/FileRef/v1″ exclude-result-prefixes=”ns1 ns2″> <xsl:import href=”File_Download_Functions.xsl”/> <xsl:output method=”xml” version=”1.0″ encoding=”UTF-8″ standalone=”yes” indent=”yes”/> <xsl:param name=”File_Properties”/> <!– Root-level template that controls output based on matches –> <xsl:template match=”/”> <xsl:choose> <!– Check if there is any match for FileDesc or FileRef –> <xsl:when test=”/ns1:FileDesc or /ns2:FileRef”> <!– […]