Hello *,
I'm trying to transform my DocBook document with the FO stylesheet
from the DocBook XSL distribution (the transformation with the XHTML
stylesheet works).
I changed "$years[1] + 1" to "number($years[1]) + 1" two times in
common.xsl. But the transformation doesn't work anyway. The funny
thing is, that if I use the msxsl command line utility there is no
problem. But when I use nxslt (or my own code) then I get the
following error.
<snip>
Error occurred while executing stylesheet
'c:\docbook\xsl\fo\docbook.xsl'.
System.Xml.XPath.XPathException: The variable or param
'monospace.font.family' is either not defined or it is out of scope.
at System.Xml.XPath.VariableQuery.SetXsltContext(Xslt Context
context)
at System.Xml.XPath.StringFunctions.SetXsltContext(Xs ltContext
context)
at System.Xml.XPath.CompiledXpathExpr.SetContext(XmlN amespaceManager
nsManager)
at System.Xml.Xsl.Processor.GetValueQuery(Int32 key)
at System.Xml.Xsl.AvtEvent.Output(Processor processor, ActionFrame
frame)
at System.Xml.Xsl.CopyCodeAction.Execute(Processor processor,
ActionFrame frame)
at System.Xml.Xsl.ActionFrame.Execute(Processor processor)
at System.Xml.Xsl.Processor.Execute()
at System.Xml.Xsl.XslTransform.Transform(IXPathNaviga ble input,
XsltArgumentList args, Stream output)
at GotDotNet.Exslt.ExsltTransform.Transform(IXPathNav igable ixn,
XsltArgumentList arglist, Stream stream)
at NXslt.NXslt.Process()
</snip>
I googled for a solution but unlike with the number(...) thing I had
no luck - so any help is appreciated.
Best regards,
Bjoern