Hi,

the schematron files check config files for validity. If you don't use it you some errors in the config files might go unnoticed and the application may fail with strange errors later. So for the sample app and while just playing around with it you should be fine with the changed file, I'd not use that in production though.

Anyways, could you please file a bug report so we don't forget to have a look at that?

felix

On Jun 30, 2009, at 8:04 PM, Salva Glez wrote:

Hi.


Trying sample app (1.0.1) on the ubuntu box is ok, but trying it on the xp doesn´t work until I change the *\src\config\sch \config_handlers.sch, from:

<schema xmlns="http://purl.oclc.org/dsdl/schematron";>
 <title>A test schema for Agavi</title>
 <ns prefix="agavi" uri="http://agavi.org/agavi/1.0/config"; />
 <pattern name="Base structure">
  <rule context="agavi:configuration">
<assert test="agavi:handlers">A configuration block contains handlers.</assert>
  </rule>
 </pattern>
</schema>

to

<schema xmlns="http://purl.oclc.org/dsdl/schematron";>
 <title>A test schema for Agavi</title>
<!--
 <ns prefix="agavi" uri="http://agavi.org/agavi/1.0/config"; />
 <pattern name="Base structure">
  <rule context="agavi:configuration">
<assert test="agavi:handlers">A configuration block contains handlers.</assert>
  </rule>
 </pattern>
-->
</schema>
before the changes, the app stop with this AgaviParseException

Validation of configuration file "C:/webs/agavi/1.0.1/src/config/ defaults/config_handlers.xml" failed:

Schematron validation of configuration file "C:/webs/agavi/1.0.1/src/ config/defaults/config_handlers.xml" failed: Transformation failed: Could not transform schema file "file:///C%3A/webs/agavi/1.0.1/src/config/sch/config_handlers.sch ": Errors occured while transforming the document using an XSL stylesheet:

runtime error: file file:///C%3A/webs/agavi/1.0.1/src/config/schematron/iso_schematron_skeleton_for_xslt1.xsl line 1448 element element
xsl:element : no namespace bound to prefix agavi

after the changes the app goes well.

the questions are, What is this file for? What happens if I use the modified file?

--
Salva Glez.
Saludos
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

--
Felix Gilcher

Bitextender GmbH
Paul-Heyse-Str. 6
D-80336 München

T: +49 89 57 08 15 16
F: +49 89 57 08 15 17
M: +49 172 840 88 28

[email protected]
http://bitextender.com/

Amtsgericht München, HRB 174280
Geschäftsführer: David Zülke, Florian Clever

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to