-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
juise --cgi makes an input document without a dictionary, which leads to errors like:
element cgi: error : Name is not from the document dictionnary 'cgi'
element content-length: error : Name is not from the document dictionnary 'content-length'
element document-root: error : Name is not from the document dictionnary 'document-root'
element gateway-interface: error : Name is not from the document dictionnary 'gateway-interface'
element redirect-status: error : Name is not from the document dictionnary 'redirect-status'
element remote-addr: error : Name is not from the document dictionnary 'remote-addr'
element remote-port: error : Name is not from the document dictionnary 'remote-port'
element request-method: error : Name is not from the document dictionnary 'request-method'
element request-uri: error : Name is not from the document dictionnary 'request-uri'
element script-filename: error : Name is not from the document dictionnary 'script-filename'
element script-name: error : Name is not from the document dictionnary 'script-name'
element parameters: error : Name is not from the document dictionnary 'parameters'
What steps will reproduce the problem?
1. juise --cgi file.slax
2. ^D
3. see the errors
The transform context has a dictionary, but the input is being made by hand before, so bad news.
Adding a simple fix like "docp->dict = xmlDictCreate()" did not solve the issue. I'm guessing the same dict needs to be used for the doc and the context, but that's just a guess.