[oXygen-user] olinkdb and target.db Problems
George Cristian Bina
Thu Dec 29 01:49:47 CST 2005
Hello Ray,
If you include a DTD inside the document oXygen will validate against
that DTD and not against an eventually externally associated schema
(assuming you associated a RNC schema externally with the document
through the default schema association options).
An external entity is replaced with its content and the validation is
performed on that expanded content against the specified DTD. Probably
your DTD does not define the elements that are present in your expanded
document thus you get validation errors.
I do not understand exactly against what DTD/schema you want your
document to be valid. If a document is not valid against some DTD or
schema you have two options: either correct the document to match the
DTD/schema or change the DTD or schema to allow the content from your
document.
In version 7 (we made available a beta a few days ago [1]) you should be
able to specify a Relax NG schema (using a PI inside the document, see
the associate schema action in oXygen) and a DTD and configure oXygen to
ignore the DTD for validation if a schema is also specified, thus you
will get Relax NG validation and entities support through the DTD but no
validation against the DTD will be performed.
[1] http://www.oxygenxml.com/pipermail/oxygen-user/2005-December/000696.html
Happy holidays,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Ray Miller wrote:
> Docbook-5.0b1 RNC xsl-1.69.1 saxon-6.5.4 eclpse-3.1 windows-XP
> oXygen-6.2 (eclipse plugin)
>
>
>
> Xml document:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE targetset
>
> SYSTEM "file:///_vhimSepOlinkDB_/targetdatabase.dtd" [
>
> <!ENTITY vhimSepTargetsDB SYSTEM "file:///D:/workspace/vhimSEP/targets.db">
>
> ]>
>
> <targetset>
>
> <targetsetinfo/>
>
> <sitemap>
>
> <dir name="vhimSEP">
>
> <document targetdoc="Foo">&vhimSepTargetsDB;</document>
>
> </dir>
>
> </sitemap>
>
> </targetset>
>
> <!-- eof -->
>
>
>
> Target.db output (fragment):
>
>
>
> <div element="chapter" href="ch01.html" number="1">
>
> <ttl>Purpose, Scope and Objectives</ttl>
>
> <xreftext>Chapter 1, <i>Purpose, Scope and Objectives</i>
>
> </xreftext>
>
> <div element="sect1" href="ch01s01.html" number="1.1">
>
> <ttl>Introduction</ttl>
>
> <xreftext>Section 1.1, “Introductionâ€</xreftext>
>
>
>
> Note both the extended character set and inclusion of html formatting tags.
>
>
>
> Won’t validate.
>
>
>
> Please advise.
>
>
>
> Ray
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list