How can I implement Schematron validation (ISO) to my xml file in PHP for XSLT2? - schematron

I need to implement schematron validation to my xml file using PHP and XSLT2 (not XSLT1). I need to do so using latest version of schematron ie. ISO. Where can I get code in PHP for the same. I researched and find out that XSLT2 processor is not supported in PHP till now. There are few code available on net but they are old version and do not support XSLT2. Please help

Related

Why Apache Camel 2.18 manual not available in PDF

Is there any reason apache camel 2.18.0 version manual not available in pdf format.
http://camel.apache.org/manual.html
We stopped generating PDF versions of the manual because we didn't want to do this anymore. The PDF version didn't look good and the tool to convert it was troublesome to use.
In the future a new website and documentation will replace the old stuff we have today and it may be able to generate the documentation more easier into different formats.

Cannot generate JNLP dynamically from ADF (JSF) application

I have an application developed with Oracle ADF ( JSF ) that uses an applet to send PDFs directly to the printer without showing them to the user.
Since modern browsers (such as the latest versions of Google Chrome) apparently no longer support applets I have developed a swing application java replacing the mentioned applet, this should be distributed using web start.
The printing application is already developed , compiled into a JAR and signed , a first test with a static JNLP was apparently successful .
My problem is that the JAR must receive parameters sent from the website where it is invoked and I do not know how get this. I have seen some examples that extend the JnlpDownloadServlet servlet that is part of the examples of Java, but I could not make anyone of these examples work properly.
I use JDeveloper as IDE.
I hope someone of you can help me.
Thanks in advance.
I was having the same problem.
Following this link from oracle forum I was able to put it to work.
I only add to revise the jnlp tags and attributes when creating the file, like
String jnlpRoot = "<jnlp spec=\"1.0+\" codebase=\"" + codeBaseUrl + "\" version=\"0.1\">\n"; //href="PrintApplet.jnlp"
The href attribute was the one that was breaking the download functionality, it was expecting a file inside the application.
Hope this helps

Cakephp and Jasper reports integration

Does anyone have any direct experience in integrating Cakephp and Jasper Reports?
I'm considering using Cakephp as a framework for a large project that will require the development of 75 - 100 complex reports. Ideally I would like to generate all of these reports from within the Cakephp code (not running a stand alone Jasper UI). I'm expecting that all of the generated reports will be in a PDF format.
Thank you for sharing your thoughts,
Dale
You could try using the JasperReports ReST API and their PHP Client.
http://community.jaspersoft.com/wiki/getting-started-rest-web-service-api
http://community.jaspersoft.com/project/php-client
Note that you will still need to design and test the reports with Jasper tools, what the above will give you however is the ability to call the report with certain parameters from Cake.
Regards,
-Rami
Yes I have a Experience in Integrating jasper Report to PhP.
Tomcat need to be installed on your system with java Bridge.
very Easy to Done in Windows and difficult for me in Linux still i configured that too.
I faced the problem Java Vitual Size -xms like something .
1. As you configured the Java Bridge
Download java Bridge war below link
http://php-java-bridge.sourceforge.net/doc/download.php
create a Report Folder
Find Java File http://localhost:8080/JavaBridge/java/Java.inc
Paste to Report Folder
create a jasper report For Testing With or Withour parameter as you want
Cakephp Working code to genrate pdf
create Report_test.php and paste the below code and change the data according to your database configuration

Adding CakePHP core features in an older version of CakePHP

I am using CakePHP 2.2 and I will probably need to use SMTP with TTL which is only available at CakePHP 2.3.0.
The additions for this new feature are documented here:
https://github.com/cakephp/cakephp/pull/734
And i was wondering where should I add this code in my CakePHP project as I guess the core folders should stay untouched.
Could I do it using the app\lib folder? In that case, how should I add the content? Do I need to follow any structure? How Cake would detect it?
Thanks.
Just follow the CakePHP Migration guide and update to 2.3.
Honestly, I didn't even read through the migration guide, I just swapped into 2.3 and everything has just worked. It doesn't appear that there are many changes to existing code - just improvements / additions, so you'll likely not have to do any code modification.
I like to keep my versions of Cake separate (see advanced installation), but if you're on the normal install, just replace the files within /lib/Cake/ with the new versions files.

Where is the PHPUnit report schema used by Jenkins?

I am having problems getting Jenkins to parse a xunit.xml report file when there are exceptions in the tests. The XML looks well-formed so I can't see any problem just by looking at it. Is there a xsd file somewhere that I can compare my xml against to see what actually causing the file to be unparsable?
About my setup:
I set up a nightly job in Jenkins for a PHP project. We are using Cakephp 1.3 therefore we are still using SimpleTest instead of PHPUnit. The only way I could figure out to easily produce the report xml while using simpletest was to use stagehand_testrunner (http://redmine.piece-framework.com/projects/stagehand-testrunner). In my build script I did something like:
cakerunner --cakephp-app-path=src/app --log- junit=build/test-results/junit.xml -R src/app/tests
This works great, however jenkins is unable to parse the junit.xml if there were exceptions thrown in the tests.
This was silly of me. I believe that stagehand-test runner already formats the resulting xml in JUnit format. I was trying to convert a JUnit xml report from PHPUnit to JUnit.
In Jenkins I needed to use the option "Publish JUnit test result report" instead of "Publish testing tools result report" The latter is for use with other testing frameworks to convert them to JUnit format. Since I already have a file in JUnit format, I do not need to convert it.
I need to verify this but I believe it to be the case.
I will be glad when we move to CakePHP 2.0 and use PHPUnit.
xUnit Plugin can solve this issue.

Resources