"P. Baker" <[EMAIL PROTECTED]> wrote on 2008-08-14 01:30:23 PM: > Is it possible to use the lineNumber extension function when calling Xalan-J > from the command line? > > I have a stylesheet with namespace declaration > xmlns:xalan="http://xml.apache.org/xalan". I invoke it from the command line > with option -l. > > In an xsl:when element the stylesheet checks for the extension function with > function-available('xalan:lineNumber'), but the test fails. > > Am I missing something obvious or misunderstanding the documentation?
No, I think the documentation isn't very clear on the entire subject of extension functions. So far as I can tell, Xalan-J doesn't seem to have built-in knowledge of the existence of the NodeInfo extension functions. I was able to use them by treating them like ordinary Java extension functions by using the namespace declaration xmlns:nodeinfo="http://xml.apache.org/xalan/java/org.apache.xalan.lib.NodeInfo". I hope that helps. Thanks, Henry ------------------------------------------------------------------ Henry Zongaro XML Transformation & Query Development IBM Toronto Lab T/L 313-6044; Phone +1 905 413-6044 mailto:[EMAIL PROTECTED]