RE: Request parameters question

2004-03-11 Thread robby . pelssers
try  
a href=securityexcel?security=xxxamp;amp;startdate=2004-02-13 
00:00:00amp;amp;enddate=xxx


-Original Message-
From: Anna Bikkina [mailto:[EMAIL PROTECTED]
Sent: 11mm2004 17:52
To: [EMAIL PROTECTED]
Subject: Re: Request parameters question


I am having a problem passing multiple parameters to the hyperlink..

like a href=securityexcel?security=xxxstartdate=2004-02-13 
00:00:00enddate=xxx

when I use  it is giving me an error 
The reference to entity startdate must end with the ';' delimiter.

How can I pass multiple parameters to the link. I tried using \ but still
the 
same problem.

Thanks,
Anna.

On Thursday 11 March 2004 11:31 am, JD Daniels wrote:
 Anna Bikkina wrote:
 Hi,
 
 I have a xsp page which contains a hyper link .There are some request
 parameters and some parameters passed to this xsp .
 The link refers to another pipeline in the sitemap. Basically I have to
  pass some of these parameters(from the parent xsp) to that pipeline in
  the sitemap(to which the link refers).
 
 Is there a way I can do it. Can someone please help me with this.
 
 Thanks,
 Anna.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 a
 xsp:attribute
 name=href/sitemap-uri?your_param=xsp-request:get-parameter
 name=your_param//xsp:attribute
 Click Here
 /a

 Should do it. You need
 xmlns:xsp-request=http://apache.org/xsp/request/2.0; attribute in your
 xsp:page tag as well.

 JD

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Request parameters question

2004-03-11 Thread robby . pelssers
i'm sorry

you should use only one time amp;

-Original Message-
From: Anna Bikkina [mailto:[EMAIL PROTECTED]
Sent: 11mm2004 17:52
To: [EMAIL PROTECTED]
Subject: Re: Request parameters question


I am having a problem passing multiple parameters to the hyperlink..

like a href=securityexcel?security=xxxstartdate=2004-02-13 
00:00:00enddate=xxx

when I use  it is giving me an error 
The reference to entity startdate must end with the ';' delimiter.

How can I pass multiple parameters to the link. I tried using \ but still
the 
same problem.

Thanks,
Anna.

On Thursday 11 March 2004 11:31 am, JD Daniels wrote:
 Anna Bikkina wrote:
 Hi,
 
 I have a xsp page which contains a hyper link .There are some request
 parameters and some parameters passed to this xsp .
 The link refers to another pipeline in the sitemap. Basically I have to
  pass some of these parameters(from the parent xsp) to that pipeline in
  the sitemap(to which the link refers).
 
 Is there a way I can do it. Can someone please help me with this.
 
 Thanks,
 Anna.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 a
 xsp:attribute
 name=href/sitemap-uri?your_param=xsp-request:get-parameter
 name=your_param//xsp:attribute
 Click Here
 /a

 Should do it. You need
 xmlns:xsp-request=http://apache.org/xsp/request/2.0; attribute in your
 xsp:page tag as well.

 JD

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Entity declaration

2004-03-08 Thread robby . pelssers
If you want to use a space character, try #160;

-Original Message-
From: beyaNet Consultancy [mailto:[EMAIL PROTECTED]
Sent: 08mm2004 14:41
To: [EMAIL PROTECTED]
Subject: Re: Entity declaration


Hi,
could you show me an example of how to do this please.

many thanks in advance
On 8 Mar 2004, at 12:14, David Leangen wrote:


 Hi!

 One way, and perhaps the easiest, is to declare your entities 
 somewhere in
 your DTD.


 Hope this helps.

 Dave






 -Original Message-
 From: beyaNet Consultancy [mailto:[EMAIL PROTECTED]
 Sent: March 8, 2004 20:57
 To: [EMAIL PROTECTED]
 Subject: Entity declaration


 Hi,
 I have an entity in my page, nbsp;, which when passed through cocoon
 throws an error. How do you handle entities in cocoon?

 many thanks in advance


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: An if statement breaks my SVG!!!!

2004-02-19 Thread robby . pelssers
Place the xsp:logic /xsp:logic tags after 
svg:svg width=300 height=300 y=0 x=0 viewBox=0 35 200
200 
because you need a first root tag before you can use the logic tag!!!

-Original Message-
From: beyaNet Consultancy [mailto:[EMAIL PROTECTED]
Sent: 19mm2004 10:02
To: [EMAIL PROTECTED]
Subject: An if statement breaks my SVG



Hi, 

I have a simple xsp:logic section which performs a simple instantiation. I
then decided to add some conditional code and wham!, my code breaks. What am
I doing wrong here!!! 


xsp:logic 

int imageNum = 1; 

byte[] photo; 



Artist artist = Artist.getArtist(46); 



if (imageNum == 1) 

{ 

  String test = hello; 

} 



!-- read image into a byte [] -- 

byte[] photo_1 = artist.getArtistPhoto1(); 

//byte[] photo_2 = artist.getArtistPhoto2(); 



!-- base64 encode byte array -- 

String Photo1 = Base64.encodeBytes(photo_1); 

//String Photo2 = Base64.encodeBytes(photo_2); 


/xsp:logic 



svg:svg width=300 height=300 y=0 x=0 viewBox=0 35 200
200 

  xsp:element name=image 

  xsp:attribute name=x0/xsp:attribute 

  xsp:attribute name=y0/xsp:attribute 

  xsp:attribute name=width300/xsp:attribute 

  xsp:attribute name=height300/xsp:attribute 

  xsp:attribute
name=xlink:hrefdata:image/jpeg;base64,xsp:exprPhoto1/xsp:expr/xsp:at
tribute 

  xsp:attribute name=idartist1/xsp:attribute 

  /xsp:element 

/svg:svg 


many thanks in advance


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Woody in combination with dynamic queries

2004-02-18 Thread robby . pelssers
Hi all,

I have build several xsp:pages which contain forms holding textboxes and
dropdownboxes. The dropdownboxes are filled with values from a query.  

I will explain my problem with a real life example.  The form offers a way
to search/filter for, let's say, trouble tickets.  A trouble ticket is of a
certain type (incident, change or problem). It also has a severitycode (low,
middle, heavy) and it has a description for example.   

Suppose I have a form with two dropdownboxes (ddb) and one textbox (tb)

*ddbType has following options : (SELECT DISTINCT TYPE FROM TROUBLES)
 -- any type
 incident
 change
 problem
*ddbSeverityCode has following options:  (SELECT DISTINCT SEVERITYCODE FROM
TROUBLES)
-- any severity code
low
middle
heavy
*tbDescription (is empty)

Now i want depending of the userinput to run following query :

 String MyDynamicQuery = SELECT TROUBLEID FROM TROUBLES  
 !-- conditional If any parameters are filled in --
  +  WHERE 
  !-- conditional if ddbType contains valid value (this means not empty
and not starts with '--'  --
 TYPE = ?
  !-- conditional if ddbType contains valid value (this means not empty
and not starts with '--'  --
  !-- conditional if ddbSeverityCode contains valid value (this means
not empty and not starts with '--'  --
 SEVERITYCODE = ?
  !-- conditional if ddbSeverityCode contains valid value (this means
not empty and not starts with '--'  --
  !-- conditional if tbDescription contains valid value (this means not
empty  --
 DESCRIPTION LIKE %?%
  !-- conditional if tbDescription contains valid value (this means not
empty  --  
 !-- conditional If any parameters are filled in --


Is it possible to use woody and to use some binding mechanism to set the
parametrized WHERE statements in a clever way?  Anyone working on something
similar?
 

Robby Pelssers


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: reusing a result set with esql

2004-02-18 Thread robby . pelssers
You could try it as follows :

define two classes at bottom of xsp:page:

  xsp:logic

public class MyPart {
private String id;
private String name;

public MyPart(String id) {
this.id = id;
}

public String getId() {
return this.id;
}

public void setName(String name) {
this.name = name;
}

public String getName() {
return this.name;
}
}

public class MyReusableResultset {
private LinkedList myresults;

public MyReusableResultset() {
this.myresults = new LinkedList();
}
 
public void addMyPart(MyPart mypart) {
this.myresults.add(mypart);
}

public Iterator getMyResultsIterator() {
return this.myresults.iterator();   
}

}   

  /xsp:logic

Then 

use following code ::

xsp:logic
  MyReusableResultset myrs = new MyReusableResultset();
/xsp:logic
esql:connection
  esql:driver??/esql:driver
  esql:dburl??/esql:dburl
  esql:username??/esql:username
  esql:password??/esql:password
  esql:execute-query
esql:querySELECT part_id, part_nom FROM partenaire/esql:query
esql:use-limit-clauseauto/esql:use-limit-clause
esql:max-rows50/esql:max-rows
esql:skip-rows20/esql:skip-rows
esql:results
esql:row-results
  xsp:logic
MyPart newpart = new MyPart(esql:get-string
column=part_id/);
newpart.setName(esql:get-string column=part_nom/);
myrs.addMyPart(newpart);
  /xsp:logic  
/esql:row-results
/esql:results
esql:no-results
   MessageSorry, no results!/Message
/esql:no-results
  /esql:execute-query
/esql:connection

Now you can reuse it elsewhere :

like for instance to create table :
form:table
  form:row header=true
form:columnPartNo/form:column
form:columnName/form:column
  /form:row
  xsp:logic
for (Iterator i = myrs.getMyResultsIterator(); i.hasNext();) { 
form:row
  form:column
xsp:expr((MyPart)i.next()).getId()/xsp:expr 
  /form:column
  form:column
xsp:expr((MyPart)i.next()).getName()/xsp:expr   
  /form:column
/form:row
}
  /xsp:logic
/form:table
  

-Original Message-
From: Adrian Petru Dimulescu [mailto:[EMAIL PROTECTED]
Sent: 18mm2004 16:45
To: [EMAIL PROTECTED]
Subject: Re: reusing a result set with esql


  I would like to reuse a result set in an XSP page when doing an esql
  query (I want to be able to reiterate throgh the returned  rows). Is
  there a way to do that ?

Hello again, let me reformulate this question, I guess it's not very 
explicit (hope it's not that plainly stupid):

I have a simple esql sequence in an XSP file:

esql:connection
   esql:poolkercash-warehouse/esql:pool

   esql:execute-query
 esql:querySELECT part_id, part_nom FROM partenaire/esql:query
 esql:results
 esql:row-results
... do something
 /esql:row-results
 /esql:results

 esql:no-resultspSorry, no results!/p/esql:no-results
 esql:error-resultsAn error occurred/esql:error-results
   /esql:execute-query

/esql:connection

I wish I were able, after a first iteration through the result set with 
esql:results, to re-iterate the same resultset without having to 
reexecute the query. Is that possible anybody tried it ?

Thanks for your ideas!
Adrian.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SVG broken images.....HELP!!

2004-02-17 Thread robby . pelssers
try adding the namespace

Example

xsl:stylesheet xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 
  xsl:template match=/   
svg xmlns:svg=http://www.w3.org/2000/svg; width=520 heigth=300  
  g transform=scale({$scalex} {$scaley})
xsl:apply-templates select=chart/ 
  /g
/svg 
  /xsl:template

/xsl:stylesheet


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Jorg Heymans
Sent: 17mm2004 17:31
To: [EMAIL PROTECTED]
Subject: Re: SVG broken images.HELP!!


Do they render correctly in Batik ? Batik comes with an svg image 
viewer, squiggle or something.

If they aren't rendering there then chances are slim cocoon will render 
them (because it uses those libraries).

There can be a million other things otherwise, check error.log or 
core.log for more specific svg rendering error messages.

hth
Jorg

beyaNet Consultancy wrote:
 Steve,
 not having used svg technology before today, could you elaborate further 
 on what you mean? I searched the net for an svg viewPort attribute but 
 only managed to come up with viewBox. Is that what you were making 
 reference to:
 
 svg width=300 height=300 viewBox=0 0 300 310 ?
 
 If so, the images are still broken!
 
 many thanks in advance
 On 17 Feb 2004, at 15:52, Steve Schwarz wrote:
 
 Hi
 Don't you need to specify a viewPort attribute in your outermost
 svg element?
 Steve
 
 
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:xlink=http://www.w3.org/1999/xlink;
  
 .
 xsl:template match=artists-photo1
 svg width=300 height=300
 xsl:apply-templates /
 /svg
 /xsl:template
 
 
 _
 Say good-bye to spam, viruses and pop-ups with MSN Premium -- free
 trial offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamically generate queries from user input

2004-02-13 Thread robby . pelssers
Hi all,

I have build several xsp:pages which contain forms holding textboxes and
dropdownboxes. The dropdownboxes are filled with values from a query.  

I will explain my problem with a real life example.  The form offers a way
to search/filter for, let's say, trouble tickets.  A trouble ticket is of a
certain type (incident, change or problem). It also has a severitycode (low,
middle, heavy) and it has a description for example.   

Suppose I have a form with two dropdownboxes (ddb) 
*   ddbType has following options : (SELECT DISTINCT TYPE FROM TROUBLES)
*   -- any type
*   incident
*   change
*   problem
*   ddbSeverityCode has following options:  (SELECT DISTINCT
SEVERITYCODE FROM TROUBLES)
*   -- any severity code
*   low
*   middle
*   heavy
*   tbDescription (is empty)


Now i want depending of the userinput to run following query :

 String MyDynamicQuery = SELECT TROUBLEID FROM TROUBLES  
  !-- conditional If any parameters are filled in --
   +  WHERE 
  !-- conditional if ddbType contains valid value (this means not
empty and not starts with '--'  --
 TYPE = ?
   !-- conditional if ddbType contains valid value (this means not
empty and not starts with '--'  --
  !-- conditional if ddbSeverityCode contains valid value (this
means not empty and not starts with '--'  --
 SEVERITYCODE = ?
   !-- conditional if ddbSeverityCode contains valid value (this
means not empty and not starts with '--'  --
  !-- conditional if tbDescription contains valid value (this means
not empty  --
 DESCRIPTION LIKE %?%
   !-- conditional if tbDescription contains valid value (this
means not empty  --  
  !-- conditional If any parameters are filled in --


 Did anyone already do some nice work on this issue ??  I'm looking for ways
to do this kind of thing without having to do a lot of coding.  Any
suggestions, please post it !!
 

Robby Pelssers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Embed SVG-tags directly in html

2004-02-12 Thread robby . pelssers
Is the only way to embed SVG in html by using the embed Tag ??

I would like to know if there is a way to directly use 
svg xmlns:svg=http://www.w3.org/2000/svg; width=1000 heigth=120 
   content of SVG image
/svg  

in the body html tag ??

thanks in advance,

Robby Pelssers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Embedded JavaScript file inside dynamic SVG isn't working

2004-02-11 Thread robby . pelssers
;
   text-anchor:right;
   fill:black;
   display:none;
  }

]]/style
  /defs

  xsl:variable name=scalingfactorxsl:value-of
select=//scaling//xsl:variable
  g transform=scale({$scalingfactor} {$scalingfactor})
g transform=translate(0,20)
  xsl:apply-templates/ 
/g
  /g
/svg 
  /xsl:template  
/xsl:stylesheet

Kind regards,
Robby Pelssers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic SVG creation

2004-02-09 Thread robby . pelssers
Hi,


I have already experimented with SVG for dynamically creating images and
graphs.  At the moment i write a servlet (xsp) that generates (dynamically)
an XML-file which I use as input for the appropiate stylesheet (xsl) to
generate an SVG file.  I was wondering if that's the only way to do this and
if it's the best way.  Who uses batik and how do you implement it in your
portal?  

Robby Pelssers

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic SVG Creation

2004-02-09 Thread robby . pelssers
Hi Kieran,
Is it possible to put this code between xsp logic tags instead of a function
??
And when you have created the svgdoc and svgroot, how can you view it??   My
intention is to put the generated svg in a html body.
It would help if i saw a very tiny example of all files needed to fullfill
the job and maybe alterations in the sitemap if needed ?  could you give me
the code that generates a small blue rectangle with some dynamic text in it
and then how to view it in a html page?
Kind regards,
Robby





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dynamic SVG Creation

2004-02-09 Thread robby . pelssers
Thx,

i will try this out !!

-Original Message-
From: Brent L Johnson [mailto:[EMAIL PROTECTED]
Sent: 09mm2004 18:07
To: [EMAIL PROTECTED]
Subject: RE: Dynamic SVG Creation 


Not sure if this is what you need.. but here goes:

Sitemap:

map:match pattern=images/*/*.jpg
map:generate src=skins/{global:skin}/svg/{1}.svg/
map:transform src=skins/{global:skin}/{1}Image.xsl
map:parameter name=title value={2}/
/map:transform
map:serialize type=svg2jpeg/
/map:match

SVG File:

svg width=150 height=12
ttf-font type=DieNasty/
rect x=0 y=0 width=150 height=12
style=fill:rgb(255,236,145)/
text x=8px y=11px
style=text-anchor:start;fill:rgb(0,0,0);font-size:14;font-family:DieNas
ty;Home/text
/svg

XSL File:

xsl:include href=fonts.xsl/
xsl:param name=title/

xsl:template match=text
text
xsl:copy-of select=@*/
xsl:value-of
select=document('svg/blocks.xml')/images/[EMAIL PROTECTED]/
/text
/xsl:template

Description of how it works:

You can ignore the font stuff if you want.  I just created
an XSL file that has embedded fonts that get included when
the transform is complete.  That way I can use any TTF font
I want for my text (so it looks the same on all platforms
regardless of fonts installed on the server).

Also.. the svg/blocks.xml file basically converts the
image name to some useful title.  You can ignore this
too if you just want to use some static title.  This is
also not needed.. you can simply remove that {1}Image.xsl
transform from this example and your image will say Home.

So where you want to display this image in HTML you would do:

img src=/images/block/main.jpg/

It will then look for the file in skins/myskin/svg/block.svg.
(if myskin is global.. again you dont need this.. its just
what my sitemap looks like.. you can specify it as whatever
SVG file you want).

That's really it.. its pretty simple once you get
the hang of it!

Good luck,

- Brent

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 09, 2004 11:49 AM
 To: [EMAIL PROTECTED]
 Subject: Dynamic SVG Creation 
 
 
 Hi Kieran,
 Is it possible to put this code between xsp logic tags 
 instead of a function ??
 And when you have created the svgdoc and svgroot, how can you 
 view it??   My
 intention is to put the generated svg in a html body.
 It would help if i saw a very tiny example of all files 
 needed to fullfill the job and maybe alterations in the 
 sitemap if needed ?  could you give me the code that 
 generates a small blue rectangle with some dynamic text in it 
 and then how to view it in a html page? Kind regards, Robby
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reusing objects, queries, ect for piping through multiple XSLT tr ansformations

2004-01-29 Thread robby . pelssers
Hi,

i'm troubled with following problem.

At the moment, i write .xsp's which generate an  XML-tree using java-objects
or SQL for retreiving the correct data to put between the tags.  
This is then transformed to HTML and most of the time, i generate tables
holding the data retreived.  I also write .xsp's that generate XML-trees
which are used as input to be transformed to SVG.  The problem is that when
i want to present the same data in HTML-table format and SVG-piechart
format, i have to write 2 xsp's for generating the same 
data in another XML-structure

In the first XSP, i write an embed tag
  form:svg width=520 height=300
form:url
  xen:page-urlapp/cfm/svg/pendingontarget.svg/xen:page-url
/form:url
  /form:svg
which is ultimately transformed to :
embed type=image/svg-xml name=SVGEmbed
src=http://networkportal:81/vodafone/app/cfm/svg/pendingontarget.svg;
width=650 height=400/embed

Is it possible to generate  2 XML-structures in one XSP and both structures
to 2 different stylesheets (xsl) ??? And even better that i reference
the generated SVG in my XML-tree that will be transformed to HTML.


Regards,

Robby Pelssers
+ 31 654670255

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<    1   2   3   4   5   6