1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-08 21:42:07 +03:00
Files
libxslt/tests/general/bug-200.xsl
Nick Wellnhofer bf6c947bf6 Fix for pattern predicates calling functions
Set correct XSLT instruction when evaluating predicates in patterns.
This is needed by functions like element-available. Could also lead
to a NULL pointer dereference.

Thanks to Wang Junjie for the report. Fixes bug #776792:

https://bugzilla.gnome.org/show_bug.cgi?id=776792
2017-01-03 16:46:16 +01:00

6 lines
241 B
XML

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<template xmlns="http://www.w3.org/1999/XSL/Transform" match="*[element-available('apply-templates')]">
<text>found</text>
</template>
</xsl:stylesheet>