¥xÆW·L³n§Þ³N³B¤ä´©³¡ wrote:
Thank you for the information, It is indeed a issue. However, Otmar
mentioned the problem is related to tag "fileref". It may be different
issue.
Well, may be. I would be great if Otmar provide full exception trace or his
docbook document to allwo us to reproduce the problem.
But running small test with dummy docubook document with fileref attribute I'm
still getting the same $nodeset[1] + 1 related problem:
<!DOCTYPE article SYSTEM "D:\docbook\docbookx.dtd">
<?xml-stylesheet type="text/xsl"
href="D:\docbook\docbook-xsl-1.48\html\docbook.xsl"?>
<article>
<para>
<mediaobject>
<imageobject>
<imagedata fileref="d:\fop.jpg"/>
</imageobject>
</mediaobject>
</para>
</article>
Running under .NET:
System.Xml.Xsl.XsltCompileException:
file:///D:/docbook/docbook-xsl-1.48/html/docbook.xsl(27,2) :
---> System.Xml.Xsl.XsltCompileException:
file:///D:/docbook/docbook-xsl-1.48/common/common.xsl(1305,10) :
---> System.Xml.Xsl.XsltException: '$years[1] + 1' is an invalid XPath
expression. ---> System.Xml.XPath.XPathException: XsltContext is needed for
this query because of an unknown function.
at System.Xml.XPath.VariableQuery.ReturnType()
at System.Xml.XPath.PositionQuery.ReturnType()
at System.Xml.XPath.FilterQuery.ReturnType()
at System.Xml.XPath.NumericExpr..ctor(Op op, IQuery opnd1, IQuery opnd2)
at System.Xml.XPath.QueryBuilder.ProcessOperator(Oper ator root, IQuery
qyInput, Boolean& cache, Boolean& position)
at System.Xml.XPath.QueryBuilder.ProcessNode(AstNode root, IQuery qyInput,
Int32 parent, AxisType parentaxis, Boolean& cache, Boolean& position)
at System.Xml.XPath.QueryBuilder.Build(AstNode root, String query)
at System.Xml.Xsl.Compiler.AddQuery(String xpathQuery, Boolean allowVar,
Boolean allowKey)
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel