Skip to content

juise --cgi makes an input document without a dictionary #1

@philshafer

Description

@philshafer

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions