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 05:23:07 UTC

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


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

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

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

The abovementioned work enabled doing intermediate validation during 'forrest run' by requesting URIs such as localhost:8888/index.validation.xml

Now added a mechanism to do intermediate validation of all documents. (r782343)

> 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.
-
You can reply to this email to add a comment to the issue online.


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

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


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

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


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

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

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

This is how it works ...

When Cocoon generates the site, it crawls each document and gathers any new links to be processed. There is a special URI "linkmap" which is the map of the complete site.

This is utilised to have a special sitemap match "linkmap.validation-start.xml" which transforms the linkmap to have links ending in "*.validation.xml".

Cocoon has the ability to include extra URIs for processing. Add the line "linkmap.validation-start.xml" to a conf/uris.txt file. Then add the following line to the 'forrest.properties' configuration file:
project.urifile=${project.home}/src/documentation/conf/uris.txt

This causes Cocoon to generate all the "*.validation.xml" validation report files.

After the 'forrest site' completes, Ant summarises all those reports into build/tmp/validation-reports.html and then removes all the individual reports.

See also http://forrest.apache.org/howto-dev.html#validate-intermediate

> 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ 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.
-
You can reply to this email to add a comment to the issue online.


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

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

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


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

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


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

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

David Crossley closed FOR-1172.
-------------------------------

    Resolution: Fixed

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


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

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ 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.
-
You can reply to this email to add a comment to the issue online.