Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XPTY0004: An empty sequence is not allowed as the first argument of md2doc:convert() #58

Open
martin-macak opened this issue Mar 4, 2016 · 2 comments

Comments

@martin-macak
Copy link

Saxon version 9.7

Run command
java -jar lib/saxon9he.jar\ -it:{http://www.markdown2docbook.com/ns/md2doc}main\ -xsl:lib/markdown2docbook-1.0.4/src/md2doc.xsl\ input=hello.md\ encoding=utf-8\ root-element=book\ headline-element=chapter\ savepath=output.xml

hello.md

Hello

Just a test

Getting
MD2Doc: Error with input file: incorrect encoding or missing file
Type error at char 32 in xsl:sequence/@select on line 58 column 123 of md2doc.xsl:
XPTY0004: An empty sequence is not allowed as the first argument of md2doc:convert()
An empty sequence is not allowed as the first argument of md2doc:convert()

@martin-macak
Copy link
Author

I just realized that the problem seems to be in input parameter. When I tried to provide absolute path then I got expected result.
It seems that there's something wrong with path evaluation in read-file function

@msmid
Copy link
Owner

msmid commented May 25, 2016

Hello, there is very similiar issue and you got the right clue. Read-file function behaves incorrectly. I'll look at it when I got some spare time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants