Using XML catalogs in BASE-X, right flow of actions for working with !DOCTYPE or !ENTITY declarations
Thursday, 15 April 2010 · 2 messages
JK
Jiří Kadlec15 Apr 2010 11:43 #
Hi all,
Is it possible to use XML catalogs for getting documents referenced in DTD's with BASE-X database?
My second question is about right procedure for dealing with DOCTYPE declaration. I'm using BASE-X for modifications in lot of different files. Some of them has DOCTYPE declaration defined and I would like to preserve this definition when I finish changes on the file. Its possible to use export functions with specified properties doctype-system, doctype-public, but is there any way how to get original doctype for me to be able to pass it as export property at the end or this must be specified by user who is modifying the file? I'm having the same issue with declarations of !ENTITY when i finish changes all entities are gone.
Any help appreciated
Jiri
CG
Christian Grün15 Apr 2010 16:45 #
Jiří,
Quoted text · Jiří Kadlec · 1 line
> Is it possible to use XML catalogs for getting documents referenced in DTD's with BASE-X database?
Do you want to know if files, which are referenced by DTDs, can be stored in a BaseX database? Yes – as long as they are well-formed XML; note, however, that they have to be manually added.
Quoted text · Jiří Kadlec · 1 line
> My second question is about right procedure for dealing with DOCTYPE declaration. I'm using BASE-X for modifications in lot of different files. Some of them has DOCTYPE declaration defined and I would like to preserve this definition when I finish changes on the file. Its possible to use export functions with specified properties doctype-system, doctype-public, but is there any way how to get original doctype for me to be able to pass it as export property at the end or this must be specified by user who is modifying the file? I'm having the same issue with declarations of !ENTITY when i finish changes all entities are gone.
That's not possible… as DOCTYPE declarations aren't registered during parsing.
Christian
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery