Ticket #1116 (closed defect: worksforme)

Opened 9 months ago

Last modified 9 months ago

config_handlers.sch broke sample app on xp box

Reported by: salvatoregon@… Owned by: david
Priority: normal Milestone: 1.0.2
Component: config Version: 1.0.1
Severity: normal Keywords:
Cc: Patch attached: no

Description (last modified by david) (diff)

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.

Attachments

Change History

Changed 9 months ago by david

  • description modified (diff)

Changed 9 months ago by david

  • component changed from _OTHER_ to config

Changed 9 months ago by david

Sounds like a problem with your XSL runtime.

Please report your PHP, libxml and libxslt versions (from phpinfo()).

Changed 9 months ago by anonymous

libxml libXML support active libXML Version 2.6.28 libXML streams enabled

xsl XSL enabled libxslt Version 1.1.0 libxslt compiled against libxml Version 2.6.22 EXSLT enabled libexslt Version 0.8.0

Changed 9 months ago by david

  • status changed from new to closed
  • resolution set to worksforme

Pretty sure your old libxslt version is the problem. Also, ext/xsl is using a libxslt that's compiled against a different version of libxml, which might cause problems if the internal data structures changed between the respective versions.

Please upgrade and see if that solves the problem. I am sure it will. libxslt 1.1.0 is five years old.

It might also be interesting to know the versions of your Ubuntu box for comparison.

I am resolving this as worksforme for now.

Changed 9 months ago by salvatoregon@…

Right! with libxslt version 1.1.23. works fine without any changes.

Add/Change #1116 (config_handlers.sch broke sample app on xp box)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.