You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2007/07/23 03:06:31 UTC

[jira] Commented: (FOR-1032) validation problem when using custom DTD for XInclude support

    [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514532 ] 

David Crossley commented on FOR-1032:
-------------------------------------

I do not get the errors that you list above. Instead i get errors from parsing the DTD as you described on the user list ... The attribute name must be specified in the attribute-list declaration for element "document".

Anyway i got it working ...

1) Added your catalog.xcat to src/documentation/resources/schema/

2) Added my DTD (see attached document-v20-xi.dtd) to src/documentation/resources/schema/ and re-named to document-v20-jd.dtd (simply to match your configuration).

The main difference is that i needed to use an xml entity to declare the "xmlns:xi" attribute (not sure why).

There are also some other fixes, e.g. declare the same entity sets as the main original document-v20.dtd and the common.att that were defined for the original "document" element which is being over-ridden.

3) Modified your index.xml to use the "cocoon:" protocol to resolve the included file:
<xi:include href="cocoon://include/techsol_...

Note that the main document-v20 DTD does not allow xi:include as a child of the "section" element. As a workaround you can re-declare the "local.sections" entity.

Someone should raise the general issue of XInclude on the dev mail list. Should we create a new DTD? In which elements should xi:include be allowed?

Another thing: I did expect to need to add another SourceType action to the sitemap to handle this variant of document-v20. However that was not needed.


> validation problem when using custom DTD for XInclude support
> -------------------------------------------------------------
>
>                 Key: FOR-1032
>                 URL: https://issues.apache.org/jira/browse/FOR-1032
>             Project: Forrest
>          Issue Type: Bug
>          Components: Plugin: input.XDoc, XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>            Assignee: David Crossley
>         Attachments: catalog.xcat, document-v20-jd.dtd, index-asf.xml
>
>
> I am trying to use a custom DTD to add XInclude support in XDocs source files.  My source file, which uses my new doctype and contains an XInclude element, does not validate.
> Please see this thread for more details:
> http://www.mail-archive.com/user@forrest.apache.org/msg02812.html
> The discussion is continued in another thread, so you have to follow my link to the continuing thread.
> David Crossley asked me to create this issue.  At his request, I am attaching the following files:
> - my new DTD
> - my project XML Catalog
> - a cut-down example of my index.xml file (the page that does not validate)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.