xslt not showing results. xpath or ns wrong? <p>i have the following xml and xslt to render it, but got no results. I checked again and again and see not path problem, and the xsl went through the compiler. so I am not sure if it's namespace problem or something else. many thx! </p> <p>XML file</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;bibdataset xsi:schemaLocation="http://www.elsevier.com/xml/ani/ani http://www.elsevier.com/xml/ani/embase_com.xsd" xmlns="http://www.elsevier.com/xml/ani/ani" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ce="http://www.elsevier.com/xml/ani/common" xmlns:ait="http://www.elsevier.com/xml/ani/ait"&gt; &lt;item&gt; &lt;bibrecord&gt; &lt;item-info&gt; &lt;itemidlist&gt;&lt;ce:doi&gt;10.1258/0268355042555000&lt;/ce:doi&gt; &lt;/itemidlist&gt; &lt;/item-info&gt; &lt;head&gt; &lt;citation-title&gt; &lt;titletext xml:lang="en" original="y"&gt;Effect of seasonal variations on the emergence of deep venous thrombosis of the lower extremity &lt;/titletext&gt; &lt;/citation-title&gt; &lt;abstracts&gt; &lt;abstract xml:lang="en" original="y"&gt; &lt;ce:para&gt;Objective: We aimed to determine the role of seasonal and meteorological variations in the incidence of lower extremity &lt;/ce:para&gt; &lt;/abstract&gt; &lt;/abstracts&gt; &lt;/head&gt; &lt;/bibrecord&gt; &lt;/item&gt; &lt;/bibdataset&gt; </code></pre> <p>XSLT file</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.elsevier.com/xml/ani/ani" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ce="http://www.elsevier.com/xml/ani/common" xmlns:ait="http://www.elsevier.com/xml/ani/ait"&gt; &lt;xsl:output indent="yes" omit-xml-declaration="no" media-type="application/xml" encoding="UTF-8" /&gt; &lt;xsl:template match="/"&gt; &lt;searchresult&gt; &lt;xsl:apply-templates select="/bibdataset/item/bibrecord" /&gt; &lt;/searchresult&gt; &lt;/xsl:template&gt; &lt;xsl:template match="bibrecord"&gt; &lt;document&gt; &lt;title&gt;&lt;xsl:value-of select="head/citation-title/titletext" /&gt;&lt;/title&gt; &lt;snippet&gt; &lt;xsl:value-of select="head/abstracts/abstract/ce:para" /&gt; &lt;/snippet&gt; &lt;url&gt; &lt;xsl:variable name="doilink" select="item-info/itemidlist/ce:doi"/&gt; &lt;xsl:value-of select="concat('http://dx.doi.org/', $doilink)" /&gt; &lt;/url&gt; &lt;/document&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre>