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

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

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


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.


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

Posted by "Brolin Empey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brolin Empey updated FOR-1032:
------------------------------

    Attachment: index-asf.xml

A cut-down example of my index.xml file.

Validation with Forrest 0.8 fails:

validate-xdocs:
/home/brolin/WEB/techsol.ca/forrest/src/documentation/content/xdocs/products/index-asf.xml:19:74: Element type "xi:include" must be declared.
/home/brolin/WEB/techsol.ca/forrest/src/documentation/content/xdocs/products/index-asf.xml:19:74: The prefix "xi" for element "xi:include" is not bound.

> 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
>         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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley resolved FOR-1032.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9-dev

I added this as an optional element to the existing document-v20 DTD rather than create a new DTD.

That makes it available for forrest-0.9-dev only. If people want use it in forrest-0.8 then you need to copy $FORREST_HOME/main/webapp/resources/schema/dtd/document-v20.mod to the same place in your forrest-0.8 installation.

Beware. The xml validation only happens on the top-level xml file. The fragments included via XInclude are not validated. So now people have "enough rope". 

> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>            Assignee: David Crossley
>             Fix For: 0.9-dev
>
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley closed FOR-1032.
-------------------------------


> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>            Assignee: David Crossley
>             Fix For: 0.9-dev
>
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley reassigned FOR-1032:
-----------------------------------

    Assignee: David Crossley

> 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.


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

Posted by "Brolin Empey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517100 ] 

Brolin Empey commented on FOR-1032:
-----------------------------------

XInclude works with your new DTD!

Thank you!

> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "Brolin Empey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brolin Empey updated FOR-1032:
------------------------------

    Attachment: catalog.xcat

My project XML Catalog file.

> 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
>         Attachments: catalog.xcat, document-v20-jd.dtd
>
>
> 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.


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

Posted by "Brolin Empey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brolin Empey updated FOR-1032:
------------------------------

    Attachment: document-v20-jd.dtd

My new DTD file.

> 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
>         Attachments: document-v20-jd.dtd
>
>
> 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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley reassigned FOR-1032:
-----------------------------------

    Assignee:     (was: David Crossley)

> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley updated FOR-1032:
--------------------------------

    Attachment: document-v20-xi.dtd

Attached new DTD document-v20-xi.dtd

> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>            Assignee: David Crossley
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley updated FOR-1032:
--------------------------------

    Component/s:     (was: Plugin: input.XDoc)

> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>            Assignee: David Crossley
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley reassigned FOR-1032:
-----------------------------------

    Assignee: David Crossley

> 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: XML grammars & validation
>    Affects Versions: 0.8
>            Reporter: Brolin Empey
>            Assignee: David Crossley
>         Attachments: catalog.xcat, document-v20-jd.dtd, document-v20-xi.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.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
    [ 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.