xslt not work properly with nginx 7.30 on xslt function document() for apply template

Denis F. Latypoff denis at gostats.ru
Mon Dec 29 12:35:04 MSK 2008


Hello Tomasen,

Monday, December 29, 2008, 2:28:41 AM, you wrote:

> The xlst module on nginx is great! Everything seems working except....

> I (or nginx xslt module) still having trouble on the following line in my xsl file:

> <xsl:apply-templates select="document('/xml/hotsearch/sub.xml')"/>

try relative path to sub.xml

> Nginx-xslt module does able to retrive the data in that xml, but
> not been able to render it (as other xslt render like IE \ firefox \ Opera).

> About the function: http://www.w3schools.com/Xsl/func_document.asp
>  
> Tomasen

This works for me:

<xsl:variable name="doc" select="document('/path/to/xml')" />
<xsl:apply-templates select="$doc" />


-- 
Best regards,
 Denis                            mailto:denis at gostats.ru






More information about the nginx mailing list