[xslt] Non-existent variable => error?



Hi,

The following style sheet:

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:template match="/">
foo<B span="{$foo}"/>foo2
</xsl:template>
</xsl:stylesheet>


gives

<?xml version="1.0"?>

foo<B span=""/>

(independently of the XML input....)

without returning an error, i.e., it fails silently
after trying to evaluate the variable $foo which
hasn't been defined. Is that proper behavior? I would
have expected an error...

Thanks!
Jerome Pesenti

PS: I am using libxslt-1.0.19


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]