Lincoln Mitchell | 1 Sep 2005 01:13

RE: SVG > SVG via xslt

Ofcourse – and yipee it now works  - just with that 3 minute delay.

 

From: Josep A. Frau [mailto:peptoni <at> uib.es]
Sent: Wednesday, August 31, 2005 11:18 PM
To: users <at> cocoon.apache.org
Subject: Re: SVG > SVG via xslt

 

I forget svg:g.

 

<xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:svg="http://www.w3.org/2000/svg">

 

       <xsl:template match="//svg:g[ <at> id='myRect']">

              <xsl:copy>

                      <xsl:apply-templates select=" <at> *|node()"/>

                      <svg:rect  x="100" y="100" width="165" height="126"

fill="blue"/>

              </xsl:copy>

       </xsl:template>


The element g without namespace isn't in the source document

The g element in the source element is g in the "http://www.w3.org/2000/svg" namespace and you try math the element g without namespace.

In your XSLT the template match
"//g[ <at> id='myRect']" don't match any element.


En/na Lincoln Mitchell ha escrit:

Nothing seemed to change – no 2nd rect appears. Do you infer that this will work after the catalog is implemented (as suggested by Jason Johnston).

 

Linc

 

From: Josep A. Frau [mailto:peptoni <at> uib.es]
Sent: Wednesday, August 31, 2005 10:24 PM
To: users <at> cocoon.apache.org
Subject: Re: SVG > SVG via xslt

 

You must generate <rect> in the svg namespace.
Try:


<xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:svg="http://www.w3.org/2000/svg">

 

       <xsl:template match="//g[ <at> id='myRect']">

              <xsl:copy>

                      <xsl:apply-templates select=" <at> *|node()"/>

                       <svg:rect  x="100" y="100" width="165" height="126"

fill="blue"/>

              </xsl:copy>

       </xsl:template>

--

Josep A. Frau

Centre de Tecnologies de la Informació

Universitat de les Illes Balears

Jon Merriman | 1 Sep 2005 02:49
Picon
Favicon

Re: [ANN] Forwarding Servlet Generator/Transformer


On Aug 31, 2005, at 1:53 PM, Joerg Heinicke wrote:

> On 31.08.2005 00:44, Jon Merriman wrote:
>
>
>> I have been sitting on this code for some time now and I would  
>> like  to get some feedback on it. In a nutshell, it allows  
>> servlets to be  invoked using the container's RequestDispatcher  
>> method and the result  parsed as SAX events. My motivation was to  
>> create a quick-and-dirty  way to Spring and JSP Documents with  
>> Cocoon.
>>
>
> Cocoon has an implementation of JSPEngine (used in JSPGenerator and  
> JSPReader) based on RequestDispatcher. Can you tell how it  
> integrates with your solution? Maybe you just need to improve the  
> existing one.

The existing JSPEngine implementations either instantiate a specified  
servlet class directly, or invoke servlets via a RequestDispatcher  
obtained with the servlet's name. Both of those implementations allow  
only a single servlet to be configured in a Cocoon application. My  
implementation uses ServletContext's getRequesetDispatcher method  
with a path specified as a parameter to the generator or transformer.  
Multiple servlets can be invoked.

I do realize that my solution could be implemented on top of  
JSPEngine, and I might just do that if there is interest.

--jm
Andres Taborda | 1 Sep 2005 06:46
Picon
Favicon

Re: aplet, images and fragment extractor

hello Joerg,

I have this source in an page html, the images 
is an file jpg.

<applet      codebase="/java/jBox"
             archive="jBox.jar"
             code="jBox.class"
             width="500"
             height="350" 
             name="jBox" 
           MAYSCRIPT>
         <param name="image"
value="http://localhost/imagen2.jpg">
</applet>

I run this example of page html, run and show the
applet.

now how to write this in cocoon? 
where the image is generate with xsl and serialize 
to png. 

 --- Joerg Heinicke <joerg.heinicke <at> gmx.de> escribió:

> On 31.08.2005 19:44, Andres Taborda wrote:
> 
> > I have an image dynamicaly is generate from
> > transformer xsl and serialize to png with 
> > the fragment extractor. Are part are good.
> > 
> > what step can make for writer the name of image in
> > an applet.
> > 
> > This applet run excelent when in the parameters
> PARAM
> > fixed the name and path is an image static.
> > 
> > Now my problem how to acces the image what I
> Generate
> > in the xsl and put it in the parameters of Applet.
> 
> Hello Andres,
> 
> unfortunately it is not quite clear what your
> problem is. Maybe you can 
> reformulate is with some code examples?
> 
> Joerg
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe <at> cocoon.apache.org
> For additional commands, e-mail:
> users-help <at> cocoon.apache.org
> 
> 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 
orosmith | 1 Sep 2005 07:49
Favicon

Re: serializing external sites

if i try this src="http://www.sify.com" />
i get the error: Open quote is expected for attribute
"name" associated with an element type "meta" what is the cause for
this error? regards smith
holger.willenborg | 1 Sep 2005 09:07

Antwort: Re: serializing external sites


Apparently, the delivered result is not XHTML but simply HTML, probably there's something like

<meta ... name=abc> in the page which is non-XML.

You can try this:

http://cocoon.apache.org/2.1/userdocs/generators/html-generator.html

to convert your HTML to XHTML using JTidy.

Regards
Holger

users-return-81982-holger.willenborg=armacell.com <at> cocoon.apache.org schrieb am 01.09.2005 07:49:01:

> if i try this
>
>
>     src="http://www.sify.com" />
>    
> i get the error:
>
> Open quote is expected for attribute
> "name" associated with an element type "meta"
>
> what is the cause for
> this error?
>
> regards
> smith
Arje Cahn | 1 Sep 2005 11:26
Picon

RE: [GT2005] REMINDER: GetTogether 2005 Call For Participation - deadline in 7 days!

Hi Lars,

> Speaking of the GT, I notice that the front page of cocoon.apache.org 
> still has a link for ApacheCon Europe, which is past. What 
> about a link 
> for Cocoon GT?

Yep, would be better...
I was trying to send in a patch for cocoon-site/src/documentation/content/xdocs/index.xml, but I can't
find this button in the CVS sources... Who's hacked the button in there?

Arje
Arje Cahn | 1 Sep 2005 11:35
Picon

[GT2005] FINAL CALL: GetTogether 2005 CFP - deadline tomorrow!

Hi all,

Final call! The CFP ends tomorrow. We've received a bunch of first class talks, but if you still have
something on your mind, don't hesitate and please send me your thoughts! The agenda should be available on
the site by monday, so everyone knows what to expect and start signing up like crazy!!

Could someone please add a link to the GT on the cocoon.apache.org homepage? The ApacheCon 2005 ad is still
on there.. 

Arjé

--------------------------------------------
Cocoon GetTogether 2005
October 5,6,7th, Amsterdam, The Netherlands. 
http://www.cocoongt.org.
--------------------------------------------

DEADLINE for proposal : Friday September 2th, 2005
Proposals should be sent to: info at cocoongt.org

In 6 weeks time there'll be plenty of Cocoon talks, hacking, food, beers, laughs - everything you've been
waiting for since you left Ghent on October 12th last year...

We are looking for you to come on stage and talk about all things Cocoon. People who want to present during the
GetTogether are kindly requested to send in a presentation proposal. Presentation topics will be
screened for cluefulness, in the sense that we don't want any commercial presentations.
Introductory, tutorial-like stuff into new or advanced topics are much appreciated though. Please send
in your presentation proposal to info at cocoongt.org - see below for a template to help you in filling out a proposal.

GUIDELINES FOR SUBMITTING A PROPOSAL

Do not include proprietary or confidential material in your proposals. 
We will assume that you do not consider any material included in the 
proposals to be confidential. All conference presentations are 
vendor-agnostic and should focus on technology. Your proposal should 
contain the following information:

1. Proposed title for the talk/session/debate.
2. Brief outline or abstract of the talk/session/debate 
    * Please be as concise as possible.
    * Please write in third-person context.
    * Please list any prerequisite sessions or knowledge you feel is essential.
    * Indicate, if applicable, if this is a beginning or advanced talk.
3. For all proposed speakers, include: speaker name, title, company, address, email, phone number, fax
and website.
4. Biography for the proposed speaker(s) showing relevant experience and qualification to speak on the
proposed subject matter (not to exceed 250 words).
5. Primary contact/founder name, title, company, address, email and phone number.

All speakers are required to submit copies of their presentations before September 21st, 2005.
These presentations will be included in the conference notes. All presentations will be made available
after the conference in electronic (PDF) format.

Arjé Cahn, on behalf of the GT 2005 organising team.

----

Hippo  

Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-------------------------------------------------------------
a.cahn <at> hippo.nl / www.hippo.nl
--------------------------------------------------------------
Carsten Ziegeler | 1 Sep 2005 11:45
Picon
Favicon

Re: [GT2005] FINAL CALL: GetTogether 2005 CFP - deadline tomorrow!

Arje Cahn schrieb:
> Hi all,
> 
> Final call! The CFP ends tomorrow. We've received a bunch of first class talks, but if you still have
something on your mind, don't hesitate and please send me your thoughts! The agenda should be available on
the site by monday, so everyone knows what to expect and start signing up like crazy!!
> 
> Could someone please add a link to the GT on the cocoon.apache.org homepage? The ApacheCon 2005 ad is still
on there.. 
> 
And at the same time please add a link to the ApacheCon US? :)

Carsten

--

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
Thorsten Scherler | 1 Sep 2005 13:47
Picon
Favicon
Gravatar

[cforms] binding to an element with namespaces fails.

Hi all,

I have a problem with the binding to elements that have a namespace
declared.

I am using the dynamicrepeater example. 
I saved the outcome of the example to a file
form.save(doc);
saveDocument(doc, "PATH_TO_SAVE_THE_FILE").

I then changed the example code a wee bit further by adding 
form.load("URI_TO_DATA"); 
before the 
form.showForm("DYNAMICREPEATER");

I have now the form showing up with the values I used before (like I
suspected).

When I change in the input file ("URI_TO_DATA"):
<contracts xmlns="http://testing.com/">
...
</contracts>
then I do not see the preselection and cannot save the form anymore.

How can I have namespaces in the input data xml and still be able to see
the preselection and save the form.

TIA for any tips or ideas.

BTW in nearly all the examples that I saw, there is the following flow
[1]:
form = new Form("DEFINITION");
form.showForm("DYNAMICREPEATER");
form.createBinding("DYNAMICREPEATER");

If you use here the form.load("URI_TO_DATA"); before the
form.showForm("..."); you will get an exception, because you need to
have a form definition first to bind your input stream to. That can be
done with the following order [2]:
form = new Form("DEFINITION");
form.createBinding("DYNAMICREPEATER");
form.load("URI_TO_DATA");
form.showForm("DYNAMICREPEATER");

Why do we use [1] and not as default [2]? It took me some time to
understand why my example was failing till I used [2].

salu2
--

-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)
Thorsten Scherler | 1 Sep 2005 14:05
Picon
Favicon
Gravatar

[zones] forms example binding-06namespaced-XML.flow brocken

Hi all,

while debugging my namespace problem mentioned in the other thread I
noticed that 
http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/binding-06namespaced-XML.flow
is broken.

As soon you are changing some values and save you will get something
like:
"resource://org/apache/cocoon/forms/flow/javascript/Form.js", line 190:
uncaught JavaScript exception: at
bindingSample
(file:/home/cdemos/demos/release/cocoon-2.1.7/build/webapp/samples/blocks/forms/flow/bindings.js,
Line 89) at (resource://org/apache/cocoon/forms/flow/javascript/Form.js, Line 190):
org.apache.commons.jxpath.JXPathException: Exception trying to create xpath h:html/h:head; java.lang.ClassCastException"

salu2
--

-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)

Gmane