David Crossley (JIRA | 1 Jun 2009 05:23
Picon
Favicon

[jira] Created: (FOR-1172) enable validation of the internal xml

enable validation of the internal xml
-------------------------------------

                 Key: FOR-1172
                 URL: https://issues.apache.org/jira/browse/FOR-1172
             Project: Forrest
          Issue Type: Improvement
          Components: XML grammars & validation
            Reporter: David Crossley
             Fix For: 0.9-dev

We already have one way to validate the xml at any part of the Cocoon sitemaps:
 "Using Cocoon Validation Transformers"                                                                      
 http://forrest.apache.org/howto-dev.html#debug-validation

So use this to enable validating the intermediate xml.

--

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

David Crossley (JIRA | 1 Jun 2009 05:23
Picon
Favicon

[jira] Assigned: (FOR-1172) enable validation of the internal xml


     [
https://issues.apache.org/jira/browse/FOR-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley reassigned FOR-1172:
-----------------------------------

    Assignee: David Crossley

> enable validation of the internal xml
> -------------------------------------
>
>                 Key: FOR-1172
>                 URL: https://issues.apache.org/jira/browse/FOR-1172
>             Project: Forrest
>          Issue Type: Improvement
>          Components: XML grammars & validation
>            Reporter: David Crossley
>            Assignee: David Crossley
>             Fix For: 0.9-dev
>
>
> We already have one way to validate the xml at any part of the Cocoon sitemaps:
>  "Using Cocoon Validation Transformers"                                                                      
>  http://forrest.apache.org/howto-dev.html#debug-validation
> So use this to enable validating the intermediate xml.

--

-- 
This message is automatically generated by JIRA.
-
(Continue reading)

David Crossley (JIRA | 1 Jun 2009 05:38
Picon
Favicon

[jira] Commented: (FOR-1172) enable validation of the internal xml


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

David Crossley commented on FOR-1172:
-------------------------------------

Used Trang-20081028 to generate a RELAX NG schema from the "document-v13" DTD.

http://code.google.com/p/jing-trang/

Commandline was:
 java -jar trang.jar -I dtd \
 $FORREST_HOME/main/webapp/resources/schema/dtd/document-v13.mod \
 $FORREST_HOME/main/webapp/resources/schema/relaxng/unstable/document-v13.rng

> enable validation of the internal xml
> -------------------------------------
>
>                 Key: FOR-1172
>                 URL: https://issues.apache.org/jira/browse/FOR-1172
>             Project: Forrest
>          Issue Type: Improvement
>          Components: XML grammars & validation
>            Reporter: David Crossley
>            Assignee: David Crossley
>             Fix For: 0.9-dev
>
>
(Continue reading)

David Crossley (JIRA | 1 Jun 2009 06:02
Picon
Favicon

[jira] Commented: (FOR-1172) enable validation of the internal xml


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

David Crossley commented on FOR-1172:
-------------------------------------

Added that at r780557.

See instructions in the abovementioned document.

> enable validation of the internal xml
> -------------------------------------
>
>                 Key: FOR-1172
>                 URL: https://issues.apache.org/jira/browse/FOR-1172
>             Project: Forrest
>          Issue Type: Improvement
>          Components: XML grammars & validation
>            Reporter: David Crossley
>            Assignee: David Crossley
>             Fix For: 0.9-dev
>
>
> We already have one way to validate the xml at any part of the Cocoon sitemaps:
>  "Using Cocoon Validation Transformers"                                                                      
>  http://forrest.apache.org/howto-dev.html#debug-validation
> So use this to enable validating the intermediate xml.

(Continue reading)

David Crossley (JIRA | 1 Jun 2009 06:04
Picon
Favicon

[jira] Assigned: (FOR-1172) enable validation of the internal xml


     [
https://issues.apache.org/jira/browse/FOR-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley reassigned FOR-1172:
-----------------------------------

    Assignee:     (was: David Crossley)

> enable validation of the internal xml
> -------------------------------------
>
>                 Key: FOR-1172
>                 URL: https://issues.apache.org/jira/browse/FOR-1172
>             Project: Forrest
>          Issue Type: Improvement
>          Components: XML grammars & validation
>            Reporter: David Crossley
>             Fix For: 0.9-dev
>
>
> We already have one way to validate the xml at any part of the Cocoon sitemaps:
>  "Using Cocoon Validation Transformers"                                                                      
>  http://forrest.apache.org/howto-dev.html#debug-validation
> So use this to enable validating the intermediate xml.

--

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

David Crossley (JIRA | 1 Jun 2009 06:06
Picon
Favicon

[jira] Updated: (FOR-101) Move to RelaxNG (with auto generated DTDs for editors)


     [
https://issues.apache.org/jira/browse/FOR-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley updated FOR-101:
-------------------------------

    Description: 
The thread at
 http://marc.theaimsgroup.com/?l=forrest-dev&m=106571777032625
 "DTDs vs. Schemas"
generated a number of +1's for using RelaxNG and autogenerating the DTDs from these.

We need this in order to use namespaces...

  was:
The thread at http://marc.theaimsgroup.com/?l=forrest-dev&m=106571777032625&w=2.
generated a number of +1's for using RelaxNG and autogenerating the DTD's from these.

We need this in order to use namespaces...

        Summary: Move to RelaxNG (with auto generated DTDs for editors)  (was: Move to RelaxNG (with auto generated
DTD''s for editors))

> Move to RelaxNG (with auto generated DTDs for editors)
> ------------------------------------------------------
>
>                 Key: FOR-101
>                 URL: https://issues.apache.org/jira/browse/FOR-101
>             Project: Forrest
(Continue reading)

David Crossley (JIRA | 1 Jun 2009 06:18
Picon
Favicon

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


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

(Continue reading)

David Crossley (JIRA | 1 Jun 2009 06:18
Picon
Favicon

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

David Crossley (JIRA | 1 Jun 2009 17:08
Picon
Favicon

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


    [
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

(Continue reading)

David Crossley (JIRA | 1 Jun 2009 17:10
Picon
Favicon

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


    [
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.
-
(Continue reading)


Gmane