Ticket #462 (new task)

Opened 21 months ago

Last modified 4 weeks ago

Move XML validation to RelaxNG and Schematron

Reported by: david Owned by: david
Priority: high Milestone: 1.0
Component: config Version:
Severity: normal Keywords:
Cc: Patch attached:

Description (last modified by david) (diff)

RelaxNG can be transformed to XML Schema and DTD. It also has more features than XSD and what seems to be nicer namespaces support (might come in handy, how about using Dublin Core metadata to describe app/module authorship and so on).

Also, we soooo need support for Schematron. That will allow us to check if the output type name set as default is actually defined and so on. Very cool. And with a bit of work, we can even validate across <configuration> blocks (should be possible by using XSL variables somehow. Awww that's gonna rock... best guess will be to parse all environment and context attributes, check the regexps in there and then dump those that are allowed into a list which is then used in the XPath expressions. or so. coool. it's gonna work, it's gonna work.)

Links:

Attachments

Change History

Changed 21 months ago by david

  • description modified (diff)

Changed 11 months ago by david

  • priority changed from high to normal
  • severity changed from major to normal

Changed 11 months ago by david

  • priority changed from normal to high

Changed 3 months ago by david

(In [2648]) merging in branches/david-xml_only_config_system, kudos to impl for helping so much with this one :> please test it thoroughly; more work on migration of other config handlers will be done over the next couple of weeks. refs #519, #462, #710, #515

Changed 4 weeks ago by impl

(In [3138]) Update naming for RNG datatypes, refs #519, #462

Changed 4 weeks ago by impl

(In [3139]) Fix minor issues in XSL transformations, refs #519, #462

Changed 4 weeks ago by impl

(In [3140]) Convert autoload.xml to 1.0 configuration format, refs #519, #462

Changed 4 weeks ago by felix

(In [3148]) Merged revisions 3138-3140,3145 via svnmerge from http://svn.agavi.org/branches/1.0

........

r3138 | impl | 2008-10-24 14:17:35 +0200 (Fri, 24 Oct 2008) | 1 line

Update naming for RNG datatypes, refs #519, #462

........

r3139 | impl | 2008-10-24 14:19:03 +0200 (Fri, 24 Oct 2008) | 1 line

Fix minor issues in XSL transformations, refs #519, #462

........

r3140 | impl | 2008-10-24 14:21:38 +0200 (Fri, 24 Oct 2008) | 1 line

Convert autoload.xml to 1.0 configuration format, refs #519, #462

........

r3145 | impl | 2008-10-24 14:28:31 +0200 (Fri, 24 Oct 2008) | 1 line

Fix typo and update unit tests

........

Changed 4 weeks ago by impl

(In [3188]) Update databases.xml to use 1.0-style handlers, refs #519, #462

Changed 4 weeks ago by felix

(In [3191]) Merged revisions 3165-3166,3168,3171-3172,3187-3190 via svnmerge from http://svn.agavi.org/branches/1.0

........

r3165 | impl | 2008-10-24 22:57:54 +0200 (Fri, 24 Oct 2008) | 1 line

refs #894: Regression: XIncludes in sandbox-tags result in PHP segfaults

........

r3166 | david | 2008-10-24 23:03:29 +0200 (Fri, 24 Oct 2008) | 1 line

fixed changelog entry, my bad, refs #894

........

r3168 | impl | 2008-10-24 23:53:56 +0200 (Fri, 24 Oct 2008) | 1 line

refs #895: Regression: xml:base attributes left behind by XIncludes cause config validations to fail; fix comment formatting LOL DONGS

........

r3171 | david | 2008-10-25 14:31:36 +0200 (Sat, 25 Oct 2008) | 1 line

merge [3125:3170/branches/0.11]

........

r3172 | david | 2008-10-25 14:44:04 +0200 (Sat, 25 Oct 2008) | 1 line

converted build templates and sample app autoload.xml files to 1.0 configuration format, forgotten in [3140], refs #519

........

r3187 | impl | 2008-10-25 23:47:00 +0200 (Sat, 25 Oct 2008) | 1 line

If the templates directory is the Agavi templates directory when the project configuration system creates a new project, then use a variable reference to it instead of a hardcoded path (thanks Felix, Dominik)

........

r3188 | impl | 2008-10-26 01:29:06 +0200 (Sun, 26 Oct 2008) | 1 line

Update databases.xml to use 1.0-style handlers, refs #519, #462

........

r3189 | david | 2008-10-26 12:30:05 +0100 (Sun, 26 Oct 2008) | 1 line

ported sample and code tpl databases.xml files to new format, forgotten in [3188], refs #519

........

r3190 | felix | 2008-10-26 12:51:09 +0100 (Sun, 26 Oct 2008) | 3 lines

disabling modules works again and displays the disabled page instead of throwing an exception

........

Changed 4 weeks ago by felix

(In [3223]) Merged revisions 3124-3125,3138-3140,3145,3149,3151-3152,3165-3166,3168,3171-3172,3187-3190,3194,3200,3202,3205,3207,3213,3218 via svnmerge from http://svn.agavi.org/branches/1.0

........

r3124 | david | 2008-10-23 18:53:43 +0200 (Thu, 23 Oct 2008) | 1 line

-dev version info

........

r3125 | david | 2008-10-23 18:54:44 +0200 (Thu, 23 Oct 2008) | 1 line

merge [3092:3124/branches/0.11]

........

r3138 | impl | 2008-10-24 14:17:35 +0200 (Fri, 24 Oct 2008) | 1 line

Update naming for RNG datatypes, refs #519, #462

........

r3139 | impl | 2008-10-24 14:19:03 +0200 (Fri, 24 Oct 2008) | 1 line

Fix minor issues in XSL transformations, refs #519, #462

........

r3140 | impl | 2008-10-24 14:21:38 +0200 (Fri, 24 Oct 2008) | 1 line

Convert autoload.xml to 1.0 configuration format, refs #519, #462

........

r3145 | impl | 2008-10-24 14:28:31 +0200 (Fri, 24 Oct 2008) | 1 line

Fix typo and update unit tests

........

r3149 | impl | 2008-10-24 16:22:00 +0200 (Fri, 24 Oct 2008) | 1 line

Fix #891: Build system output is unreadable in Windows PowerShell?

........

r3151 | impl | 2008-10-24 16:24:24 +0200 (Fri, 24 Oct 2008) | 1 line

Remove stupid message that makes output ugly

........

r3152 | impl | 2008-10-24 17:10:41 +0200 (Fri, 24 Oct 2008) | 1 line

Support commas as well as spaces in project configuration system input lists

........

r3165 | impl | 2008-10-24 22:57:54 +0200 (Fri, 24 Oct 2008) | 1 line

Fix #894: Regression: XIncludes in sandbox-tags result in PHP segfaults

........

r3166 | david | 2008-10-24 23:03:29 +0200 (Fri, 24 Oct 2008) | 1 line

fixed changelog entry, my bad, refs #894

........

r3168 | impl | 2008-10-24 23:53:56 +0200 (Fri, 24 Oct 2008) | 1 line

Fix #895: Regression: xml:base attributes left behind by XIncludes cause config validations to fail; fix comment formatting LOL DONGS

........

r3171 | david | 2008-10-25 14:31:36 +0200 (Sat, 25 Oct 2008) | 1 line

merge [3125:3170/branches/0.11]

........

r3172 | david | 2008-10-25 14:44:04 +0200 (Sat, 25 Oct 2008) | 1 line

converted build templates and sample app autoload.xml files to 1.0 configuration format, forgotten in [3140], refs #519

........

r3187 | impl | 2008-10-25 23:47:00 +0200 (Sat, 25 Oct 2008) | 1 line

If the templates directory is the Agavi templates directory when the project configuration system creates a new project, then use a variable reference to it instead of a hardcoded path (thanks Felix, Dominik)

........

r3188 | impl | 2008-10-26 01:29:06 +0200 (Sun, 26 Oct 2008) | 1 line

Update databases.xml to use 1.0-style handlers, refs #519, #462

........

r3189 | david | 2008-10-26 12:30:05 +0100 (Sun, 26 Oct 2008) | 1 line

ported sample and code tpl databases.xml files to new format, forgotten in [3188], refs #519

........

r3190 | felix | 2008-10-26 12:51:09 +0100 (Sun, 26 Oct 2008) | 3 lines

disabling modules works again and displays the disabled page instead of throwing an exception

........

r3194 | felix | 2008-10-26 14:53:47 +0100 (Sun, 26 Oct 2008) | 8 lines

Merges the changes from branches/felix-testing-implementation, r3091 - r3192

  • adds the infrastructure for testing the framework itself
  • adds the first couple of TestCases?, mainly for the Routing

refs #380, #308

........

r3200 | impl | 2008-10-26 18:56:21 +0100 (Sun, 26 Oct 2008) | 1 line

Update routing.xml config handler to 1.0 format

........

r3202 | impl | 2008-10-26 19:06:38 +0100 (Sun, 26 Oct 2008) | 1 line

Fix hasChildren -> has checks in AgaviRoutingConfigHandler?

........

r3205 | felix | 2008-10-26 19:23:05 +0100 (Sun, 26 Oct 2008) | 9 lines

Merge from branches/felix-testing-implementation/ r3194 - r3204

  • More Tests for the routing
  • checks #444, #609
  • checks generation of the shortest possible url - this feature is currently broken

........

r3207 | impl | 2008-10-26 19:33:20 +0100 (Sun, 26 Oct 2008) | 1 line

Update routing.xml template and sample app

........

r3213 | david | 2008-10-26 20:46:57 +0100 (Sun, 26 Oct 2008) | 1 line

date fix

........

r3218 | felix | 2008-10-26 21:16:28 +0100 (Sun, 26 Oct 2008) | 3 lines

Merge from branches/felix-testing-implementation/ r3204 - r3216

........

Add/Change #462 (Move XML validation to RelaxNG and Schematron)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.