You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(2) |
2
(3) |
3
|
4
|
5
(2) |
6
|
|
7
|
8
(6) |
9
|
10
|
11
|
12
(1) |
13
(3) |
|
14
|
15
(1) |
16
(1) |
17
(1) |
18
|
19
(5) |
20
(1) |
|
21
|
22
(1) |
23
|
24
|
25
|
26
|
27
|
|
28
|
29
|
30
(4) |
|
|
|
|
|
From: <php...@li...> - 2009-06-01 14:06:29
|
Thank you Jost.
I believe the only java_values call that I have is necessary then. I need
to get the result of the transformation back as a string so I can output it
(and possibly evaluate it for php code) Unless there's some better way to
get a potentially large chunk of text back from java.
/John
On Mon, Jun 1, 2009 at 2:12 AM, <php...@li...
> wrote:
> Hi,
>
> If I understand your code correctly, your function "saxon" is called with
> two arguments, $xml and $xsl being proxies for two (potentially large)
> Strings.
>
> As long as you don't evaluate these proxies (explicitly using
> java_values($xml) or implicitly using a cast to ((string)$xml)), there
> shouldn't be any performance problems.
>
> The java_values() call forces the bridge to evaluate a proxy and to return
> the result as a potentially large PHP value (string or array or ....). I
> would call java_values() only if necessary. E.g. at the end of the script,
> or right before manipulating it with native e.g. php str_* functions.
>
> The $system->setProperty() assumes ownership of the back end. Instead of
> setting the property over and over again I would set it once with a java
> -D... parameter. Or rely on the JEE environment to do the correct
> initialisation of your library.
>
> Regards,
> Jost Boekemeier
>
> 31. Mai 2009 4:55 nachm. schrieb am <
> php...@li...>:
>
> Hi,
>
> I'm working on porting an application to PHP that relies on some Java
> functionality. I've decided to use the PHP/Java Bridge.
>
> Here is what I've got in PHP. Summary: it takes in two strings, xml
> and xsl, and should return the result of applying the xsl transform on
> the xml.
>
> So far, so good! I originally was having trouble getting the result
> back out into a PHP string variable, but there was just a simple typo
> in the code, So my post is turning into a slightly different
> question.
>
> Could someone familiar with the PHP/Java bridge look over my code and
> let me know if it looks like I've got the "right idea" I'm concerned
> about performance, and the fact that the variables $xml and $xsl could
> potentially be very large (megabytes of text)
>
> Thanks in advance for any insight you can give me. This is new ground
> for me, and I want to make sure I'm not making any major mistakes.
>
> ------
>
> function saxon($xml,$xsl){
>
> require_once("
> http://localhost:8080/JavaBridgeTemplate5442/java/Java.inc
> ");
>
> $System = java("java.lang.System");
> $System->setProperty("javax.xml.transform.TransformerFactory",
> "net.sf.saxon.TransformerFactoryImpl");
>
> $TransformerFactory = java("javax.xml.transform.TransformerFactory");
> $tFactory = $TransformerFactory->newInstance();
>
> $xmlString = new Java("java.lang.String", $xml);
> $xslString = new Java("java.lang.String", $xsl);
> $xmlStringReader = new Java("java.io.StringReader", $xmlString);
> $xslStringReader = new Java("java.io.StringReader", $xslString);
>
> $xmlStreamSource = new
> Java("javax.xml.transform.stream.StreamSource", $xmlStringReader);
> $xslStreamSource = new
> Java("javax.xml.transform.stream.StreamSource", $xslStringReader);
>
> $transformer = $tFactory->newTransformer($xslStreamSource);
>
> $outputStringWriter = new Java("java.io.StringWriter");
> $outputStreamResult = new
> Java("javax.xml.transform.stream.StreamResult",$outputStringWriter);
>
> $transformer->transform($xmlStreamSource,$outputStreamResult);
>
>
> $outputString = new Java("java.lang.String");
> $outputString = $outputStringWriter->toString();
>
> return (java_values($outputString));
>
> }
>
> --
> John
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
John McGowan
Lynch2
792 West Bartlett Road
Bartlett, Illinois 60103
www.lynch2.com
w:847-608-6900 Ext 4110
|
|
From: <php...@li...> - 2009-06-01 07:10:23
|
Hi,
If I understand your code correctly, your function "saxon" is called with
two arguments, $xml and $xsl being proxies for two (potentially large)
Strings.
As long as you don't evaluate these proxies (explicitly using
java_values($xml) or implicitly using a cast to ((string)$xml)), there
shouldn't be any performance problems.
The java_values() call forces the bridge to evaluate a proxy and to return
the result as a potentially large PHP value (string or array or ....). I
would call java_values() only if necessary. E.g. at the end of the script,
or right before manipulating it with native e.g. php str_* functions.
The $system->setProperty() assumes ownership of the back end. Instead of
setting the property over and over again I would set it once with a java
-D... parameter. Or rely on the JEE environment to do the correct
initialisation of your library.
Regards,
Jost Boekemeier
31. Mai 2009 4:55 nachm. schrieb am <
php...@li...>:
Hi,
I'm working on porting an application to PHP that relies on some Java
functionality. I've decided to use the PHP/Java Bridge.
Here is what I've got in PHP. Summary: it takes in two strings, xml
and xsl, and should return the result of applying the xsl transform on
the xml.
So far, so good! I originally was having trouble getting the result
back out into a PHP string variable, but there was just a simple typo
in the code, So my post is turning into a slightly different
question.
Could someone familiar with the PHP/Java bridge look over my code and
let me know if it looks like I've got the "right idea" I'm concerned
about performance, and the fact that the variables $xml and $xsl could
potentially be very large (megabytes of text)
Thanks in advance for any insight you can give me. This is new ground
for me, and I want to make sure I'm not making any major mistakes.
------
function saxon($xml,$xsl){
require_once("http://localhost:8080/JavaBridgeTemplate5442/java/Java.inc
");
$System = java("java.lang.System");
$System->setProperty("javax.xml.transform.TransformerFactory",
"net.sf.saxon.TransformerFactoryImpl");
$TransformerFactory = java("javax.xml.transform.TransformerFactory");
$tFactory = $TransformerFactory->newInstance();
$xmlString = new Java("java.lang.String", $xml);
$xslString = new Java("java.lang.String", $xsl);
$xmlStringReader = new Java("java.io.StringReader", $xmlString);
$xslStringReader = new Java("java.io.StringReader", $xslString);
$xmlStreamSource = new
Java("javax.xml.transform.stream.StreamSource", $xmlStringReader);
$xslStreamSource = new
Java("javax.xml.transform.stream.StreamSource", $xslStringReader);
$transformer = $tFactory->newTransformer($xslStreamSource);
$outputStringWriter = new Java("java.io.StringWriter");
$outputStreamResult = new
Java("javax.xml.transform.stream.StreamResult",$outputStringWriter);
$transformer->transform($xmlStreamSource,$outputStreamResult);
$outputString = new Java("java.lang.String");
$outputString = $outputStringWriter->toString();
return (java_values($outputString));
}
--
John
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals.
Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|