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 2009/06/01 06:18:07 UTC

[jira] Created: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

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


[jira] Commented: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715118#action_12715118 ] 

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

I did also try using the "namespace" method of SourceTypeAction. It does detect that properly, but then something further down the forrest processing gets confused about the namespace.

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


[jira] Assigned: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

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

David Crossley reassigned FOR-1173:
-----------------------------------

    Assignee: David Crossley

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


[jira] Commented: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

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


[jira] Closed: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

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

David Crossley closed FOR-1173.
-------------------------------

    Resolution: Fixed
      Assignee:     (was: David Crossley)

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


[jira] Commented: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715108#action_12715108 ] 

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

See also one discussion of this issue:
 Re: association of RELAX NG with a document
 http://www.relaxng.org/pipermail/relaxng-user/2003-October/000084.html

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


[jira] Commented: (FOR-1173) add demonstration of using xml source documents without declaring a DTD

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715112#action_12715112 ] 

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

Added in r780675

See the example in a 'forrest seed-sample' site:
http://forrest.zones.apache.org/ft/build/forrest-seed/samples-b/no-dtd.html

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