#1116: config_handlers.sch broke sample app on xp box
------------------------------------+---------------------------------------
 Reporter:  salvatore...@…          |       Owner:  david
     Type:  defect                  |      Status:  new  
 Priority:  normal                  |   Milestone:  1.0.2
Component:  _OTHER_                 |     Version:  1.0.1
 Severity:  normal                  |    Keywords:       
Has_patch:  0                       |  
------------------------------------+---------------------------------------
Description changed by david:

Old description:

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

New description:

 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:
 {{{
 #!xml
 <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
 {{{
 #!xml
 <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.

--

-- 
Ticket URL: <http://trac.agavi.org/ticket/1116#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to