[ 
https://issues.apache.org/jira/browse/FOR-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715107#action_12715107
 ] 

David Crossley commented on FOR-1173:
-------------------------------------

SourceTypeAction (content aware pipeline) [1] can detect the "Public 
Identifier" from the Document Type Declaration, which is how most of Forrest 
operates.

SourceTypeAction can also use "namespace" or "processing instruction".

I chose the "processing instruction" method. This enables an elegant solution 
for tools to know the content type, and does not say anything about a 
particular schema language that could be used to process it.

The instance document declares its schema, e.g.
<?schema apache.org/forrest/schema/xdoc/document/2.0?>
<document>
  <header>
    ...

Validation is done as a separate concern [2].

[1] SourceTypeAction (content aware pipelines)
http://forrest.apache.org/docs/cap.html

[2] Using Cocoon Validation Transformers
http://forrest.apache.org/howto-dev.html#debug-validation

> add demonstration of using xml source documents without declaring a DTD
> -----------------------------------------------------------------------
>
>                 Key: FOR-1173
>                 URL: https://issues.apache.org/jira/browse/FOR-1173
>             Project: Forrest
>          Issue Type: New Feature
>          Components: Core operations, XML grammars & validation
>            Reporter: David Crossley
>            Assignee: David Crossley
>             Fix For: 0.9-dev
>
>
> Add a demonstration of DTD-less source xdoc documents.

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