Re: [xslt] libxslt-0.14.0 (pre-1.0) segfaults



Daniel Veillard <veillard@redhat.com> writes:

> be fixed for 1.0 :-)

Thanks alot for the fix. Just tried 1.0 and got a little bit farther
with my XSLT, see below for the next problem ;-) Output of xsltproc
and xalan follows...

ttepet@tte1100 /tmp]$ 
[ttepet@tte1100 /tmp]$ 
[ttepet@tte1100 /tmp]$ cat foo.xsl
<?xml version="1.0" ?> 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0"
                xmlns:my="my" my:foo="2" my:bar="4">

<xsl:output method="text"/>

<my:foo>8</my:foo>

<xsl:template match="/*">
  <xsl:value-of select="/*/@my:bar * /*/@my:foo"/>
  <xsl:value-of select="/*/@my:bar * @my:foo"/>
  <xsl:value-of select="/*/@my:bar * /*/my:foo"/>
  <xsl:value-of select="/*/@my:bar * my:foo"/><xsl:text>
</xsl:text>
</xsl:template>

</xsl:stylesheet>
[ttepet@tte1100 /tmp]$ xsltproc -V -v foo.xsl foo.xsl
Using libxml 20400 and libxslt 10000
xsltproc was compiled against libxml 20400 and libxslt 10000
libxslt 10000 was compiled against libxml 20400
Added namespace: xsl mapped to http://www.w3.org/1999/XSL/Transform
Added namespace: my mapped to my
xsltPrecomputeStylesheet: removing ignorable blank node
xsltParseStylesheetProcess : found stylesheet
xsltParseStylesheetTop : found foreign element foo
template has 1 inherited namespaces
xsltParseTemplateContent: removing text
xsltCompilePattern : parsing '/*'
xsltCompilePattern : parsed /*, default priority 0.500000
added pattern : '/*' priority 0.500000
parsed 1 templates
Initializing keys on foo.xsl
Registered 0 modules
Registering global variables
Registering global variables from foo.xsl
8NaN32NaN
[ttepet@tte1100 /tmp]$ /usr/local/java2/bin/java org.apache.xalan.xslt.Process -IN foo.xsl -XSL foo.xsl
883232

[ttepet@tte1100 /tmp]$ 


> Daniel

Have a nice day,

Teppo

-- 
Teppo Peltonen tpeltone@cc.hut.fi http://www.hut.fi/u/tpeltone/






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