RE: svgz to jpeg ?

2003-06-29 Thread Conal Tuohy
I think you'll have to write your own GZipGenerator or possibly a
GZipSource?

You are right that the gzipped svg document is not a ZIP archive (it doesn't
include a table of contents or anything - it's just a single BLOB). On the
bright side, gzip is trivial to use in Java, so writing your own shouldn't
be hard.

CHeers

Con

> -Original Message-
> From: rob [mailto:[EMAIL PROTECTED]
> Sent: Monday, 30 June 2003 09:35
> To: [EMAIL PROTECTED]
> Subject: Re: svgz to jpeg ?
>
>
> On 28 Jun 2003 at 14:51, Upayavira wrote:
>
> >Ah. So your file on disc is compressed svg. Okay, so you
> need to uncompress
> it into
> >XML and pass that into the SVG2JPG serializer. There's two
> ways to do that,
> either
> >with a zip generator (I think there's an example of one in
> the Langham &
> Ziegler
> >Cocoon book), or using the Jar protocol (see
> >http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample).
> >
> >Both should extract your zipped SVG ready for converting to JPG.
>
> Thanks again for you reply.
>
> I've tried using the jar protocol, but it does not accept the
> 'svgz' file as
> a
> valid zip archive. I guess this is because there is no
> physical file to
> extract
> i.e jar:http//localhost/xyz.svg!???
>
> Even Winzip will not open it.
>
> I haven't tried the zip generator yet because I haven't found any
> documentation,
> and someone has borrowed my Cocoon book !!
>
> Regards,
>
> Rob.
>
>
> -
> 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]



XMLFormTransformer: unknown element [item]

2003-06-29 Thread Hill Karimov
Hi,

I get following error in error.log on demo xmlForm:

ERROR   (2003-06-30) 11:27.58:188  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: unknown element [item]
ERROR   (2003-06-30) 11:27.58:188  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: unknown element [item]
...

ERROR   (2003-06-30) 11:28.02:501  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: pass through element
[group]
ERROR   (2003-06-30) 11:28.02:548  
[xmlform.sitemap.transformer]
(/cocoon/samples/xmlform/wizard)
Thread-14/XMLFormTransformer: pass through element
[group]
...

Regards,
Hill
Cocoon 2.1m2, Tomcat 4.1, Java 1.4


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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




XSP+SVG in cocoon-2.0.4

2003-06-29 Thread Gautam Ganguly
hi there,
I want to display an SVG image along side the web page content on
the users browser(user has Adobe SVG Viewer3.0 installed ) by putting
the SVG document within my XSP page.
As long as  my pipeline displays the svg as png raster image
using the SVG2PNG serializer,it works fine.But the associated image
properties such as Zoom-In or Zoom-out are lost. For the user to keep
using these properties through IE,i want to pass the raw SVG content to
the users browser which then will handle the responsibility of
displaying the SVG .
   
My xsp documents looks something like this:

http://apache.org/xsp";>
  
 
Test SVG Page
 
 
 
   You can use the mouse right click event to Zoom-In 
   or Zoom-Out  

   
 
   
   
 



Currently my sitemap pipeline looks like this:
   
   

  

  What is the bext possible way to go about these? Can anyone help me
out on these?

regards,
Gautam






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



Re: into problem

2003-06-29 Thread François Parlant
I'm not an expert (sorry) so this is only a suggestion

1)  some whitespaces might interfere between the string
'add_to_favourites_session' and the value of the $webaction-value variable.
I would suggest a formula more like ;

normalize-space($query)

 

...just to make sure.


2) In xsl, calling a variable by xsl:value-of only selects the string part
of the nodes (the text()). It means that if the variable is more than simple
text and include nodes around it or inside it (it's called a node-set or
nodeset because it contains tags and text, hope I'm not making too much
mistakes saying that), only the text will appear when asking for
xsl:value-of.

xsl-copy-of on the other hand, copies all what is inside the variable, nodes
(tags) and text and attributes ...

The best referenc is at the xsl FAQ (in the "variable"  page):
http://www.dpawson.co.uk/xsl/sect2/N8090.html#d8123e583

Solution (if that is the problem, which is not sure at all):
Most xsl processor have a "node-set" or "nodeset" function which is an
extension of the xsl specification. For xalan it's xalan:nodeset, but you've
got some for saxon or xt. (beware, you've got to add the specific namespace
of your processor on top of your page for this tags to be executed)

This stuff enable you to check parts by parts the inside of the variable,
for exemple calling by templates for each part (nodes attributes and text)

Hope it helps, but I guess you might want better information. The xsl list
is very active.

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

François Parlant


- Original Message - 
From: "C Bram Dit Saint Amand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 10:50 PM
Subject:  into  problem


> This is an extract from "request_attributes.xsl", a logicsheet which is
> called by "some_page.xsp"
>
> 
> 
>  name="webaction"/>
> 
> 
>   perso-mysql
>   
> INSERT INTO FavouritesBasketSession(SessionID,
> URL) VALUES('', ' name="relative-url"/>');
>   
> 
>  
> 
>
>
> When I access "some_page.xsp?webaction=add_to_favourites_session", the
> template is executed: the  is created, but what is inside
> the  *isn't* executed, which suggests that there is a problem with
> the . For information, displaying the variable's content
> with  works (it correctly displays
> 'add_to_favourites_session'), but with  it doesn't display
> anything.
>
>
> The questions:
> --
> - Why doesn't it work?
> - I'm a Cocoon newbie, so if you have any comments on my code (how to
> write it better), I'm open to suggestions.
>
>
> Thanks in advance.
>


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



Re: svgz to jpeg ?

2003-06-29 Thread rob
On 28 Jun 2003 at 14:51, Upayavira wrote:

>Ah. So your file on disc is compressed svg. Okay, so you need to uncompress
it into
>XML and pass that into the SVG2JPG serializer. There's two ways to do that,
either
>with a zip generator (I think there's an example of one in the Langham &
Ziegler
>Cocoon book), or using the Jar protocol (see
>http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample).
>
>Both should extract your zipped SVG ready for converting to JPG.

Thanks again for you reply.

I've tried using the jar protocol, but it does not accept the 'svgz' file as
a
valid zip archive. I guess this is because there is no physical file to
extract
i.e jar:http//localhost/xyz.svg!???

Even Winzip will not open it.

I haven't tried the zip generator yet because I haven't found any
documentation,
and someone has borrowed my Cocoon book !!

Regards,

Rob.


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



lucene and authentication f/w

2003-06-29 Thread rob
Hi,

can anyone advise on the best way to create a lucene
 index of resources that are protected by the authentication
framework ?

Thanks,

Rob Gregory


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



into problem

2003-06-29 Thread C Bram Dit Saint Amand
This is an extract from "request_attributes.xsl", a logicsheet which is
called by "some_page.xsp"






  perso-mysql
  
INSERT INTO FavouritesBasketSession(SessionID,
URL) VALUES('', '');
  

 



When I access "some_page.xsp?webaction=add_to_favourites_session", the
template is executed: the  is created, but what is inside
the  *isn't* executed, which suggests that there is a problem with
the . For information, displaying the variable's content
with  works (it correctly displays
'add_to_favourites_session'), but with  it doesn't display
anything.


The questions:
--
- Why doesn't it work?
- I'm a Cocoon newbie, so if you have any comments on my code (how to
write it better), I'm open to suggestions.


Thanks in advance.


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



Re: about Xindice

2003-06-29 Thread Josema Alonso
Hi, Yury.

It could be due to a number of reasons. It could depend on JDK version
you're using, if you're using DOM or SAX, the XPath expression you're using,
if you're validating data or not...or even a bug...you have provided very
little info.

Anyway, I suggest you should try at [EMAIL PROTECTED] which is
more suitable for this kind of questions. And maybe you could try to search
its archives (http://marc.theaimsgroup.com/?l=xindice-users). I remember
questions like these surfaced recently.

Best.


- Original Message -
From: "Yury Mikhienko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 4:35 PM
Subject: about Xindice


> Hi cocooners!
>
> I implements the news system on my Web-site based on xindice 1.1b, but
time of time
> database works is very slow :(( (big timeout on response ) .
> It's strange behaviour, because in collection I stored no more 150
documents.
> Can I make the work of xindice database more faster?
> Any solutions for tuning?
>
> Thanks all for advise!
>
> --
>
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
>
> -
> 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]



Catching exceptions when not using ESQL:ERROR-RESULTS

2003-06-29 Thread Luís Góis
Hi everybody!

Look at this piece of code from Donald Ball I've found (November 2000) about catching 
exceptions without using esql:error-results tag:



  try {

  ...

  } catch (MyException e) {
...
  } catch (MyOtherException e) {
...
  }


In my code I wan't to use a slight variant (is it meaningfull?):


  try {

  ...

  } catch (MyException e) {
...
  } catch (MyOtherException e) {
...
  }


Looking directly to the esql.xsl from cocoon 2.0.3, when not using the 
esql:error-results tag, a new RuntimeException is thrown. So, unless I'm wrong and in 
that case please correct me, I can only catch this kind of exception, whatever happens 
inside the .

Unless I parse the getMessage() output, do I have any other way to "catch" different 
exceptions?

TIA
Luís Góis


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



some XSP problems

2003-06-29 Thread Kevin Cruel
Hi everybody,
I've got a huge problem while compiling my XSP data. My XSP data
consists of about 60-70 translations, a logical part and a huge part
of SQL-querys. I guess this data hits the 64k barrier of java while
cocoon is compiling it. Does anyone know how to avoid hitting this
barrier?

THX!!!



So here we go...

logical part:



 private static Properties getEnvVars() throws IOException 
{
Process p = null;
Properties envVars = new Properties();
Runtime r = Runtime.getRuntime();
String OS = System.getProperty("os.name").toLowerCase();
if (OS.indexOf("windows 9") > -1)
{
p = r.exec( "command.com /c set" );
}
else if( (OS.indexOf("nt") > -1) )
{
p = r.exec( "cmd.exe /c set" );
}
else if( (OS.indexOf("windows 2000") > -1 ))
{
p = r.exec( "cmd.exe /c set" );
}
else if( (OS.indexOf("windows xp") > -1))
{
p = r.exec( "cmd.exe /c set" );
}
else
{
p = r.exec( "env" );
}
BufferedReader br = new BufferedReader( new InputStreamReader( 
p.getInputStream() ) );
String line;
while( (line = br.readLine()) != null )
{
int idx = line.indexOf( '=' );
String key = line.substring( 0, idx );
String value = line.substring( idx+1 );
envVars.setProperty( key, value );
}
return envVars;
}






translations:



  
  
  metadata_overview


  
  

  studyprogram_navigation_studyprogram


  
studyprogram_navigation_courses
 ../courses_.html
  


  studyprogram_navigation_metadata

  

  
  metadata_general
  
metadata_general_identifier
  
metadata_general_elementlevel
  
metadata_general_elementlevel_1
  
metadata_general_elementlevel_2
  
metadata_general_elementlevel_3
  
metadata_general_elementlevel_4
  
metadata_general_elementlevel_5
  
metadata_general_title
  
metadata_general_catalog
  
metadata_general_entry
  
metadata_general_language
  
metadata_general_description
  
metadata_general_keywords
  
metadata_general_coverage
  
metadata_general_structure
  
metadata_general_aggregationlevel

  
  
metadata_lifecycle
  
metadata_lifecycle_version
  
metadata_lifecycle_status
  
metadata_lifecycle_contribute
  
metadata_lifecycle_contribute_role
  
metadata_lifecycle_contribute_entity
  
metadata_lifecycle_contribute_date

  
  metadata_metadata
  
metadata_metadata_catalog
  
metadata_metadata_entry
  
metadata_metadata_contribute
  
metadata_metadata_contribute_role
  
metadata_metadata_contribute_entity
  
metadata_metadata_contribute_date
  
metadata_metadata_scheme
  
metadata_metadata_language

  
  
metadata_technical
  
metadata_technical_format
  
metadata_technical_size
  
metadata_technical_requirements
  
metadata_technical_requirements_name
  
metadata_technical_requirements_type
  
metadata_technical_requirements_minimum
  
metadata_technical_requirements_maximum
  
metadata_technical_installationremarks
  
metadata_technical_otherplatformrequirements
  
metadata_technical_duration

  
  
metadata_educational
  
metadata_educational_interactivitytype
  
metadata_educational_learningresourcetype
  
metadata_educational_interactivitylevel
  
metadata_educational_semanticdensity
  
metadata_educational_intendedenduserrole
  
metadata_educational_context
  
metadata_educational_typicalagerange
  
metadata_educational_difficulty
  
metadata_educational_typicallearningtime
  
metadata_educational_description

  
  metadata_rights
  
metadata_rights_cost
  
metadata_rights_copyrightandotherrestrictions
  
metadata_rights_description

  
  metadata_relation
  
metadata_relation_kind
  
metadata_relation_identifier
  
metadata_relation_description

  
  
metadata_annotation
  
metadata_annotation_person
  
metadata_annotation_date
  
metadata_annotation_description

  
  
metadata_classification
  
metadata_classification_purpose
  
metadata_classification_source
  
metadata_classification_id
  
metadata_classification_entry
  
metadata_classification_description
  
metadata_classification_keywords

  
  metadata_pdf_all
  
metadata_pdf_category
  
metadata_pdf_header_all
  
metadata_pdf_header_overview
  
metadata_pdf_header_general
  
metadata_pdf_header_lifecycle
  
metadata_pdf_header_metadata
  
metadata_pdf_header_technical
  
metadata_pdf_header_educational
  
metadata_pdf_header_rights
  
metadata_pdf_header_relation
  
metadata_pdf_header_annotation
  
metadata_pdf_header_classification
  
metadata_pdf_header_page
  help
  


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



Gradual performance degradation with cocoon:// protocol

2003-06-29 Thread t tl
Hi,
 
Has anyone encountered performance problems with cocoon:// protocol?
 
Setup

Cocoon 2.0.4 (the same problem applies for 2.0.5-dev)
Tomcat 4.1.24
JDK 1.3.1
Redhat 7 (and Redhat 8)
 
The problem seems to be a gradual slowdown in performance when using cocoon:// protocol. The problem does NOT appear when I use the cocoon:/ protocol.
 
Thank you for your help.
 
T.Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger

about Xindice

2003-06-29 Thread Yury Mikhienko
Hi cocooners!

I implements the news system on my Web-site based on xindice 1.1b, but time of time
database works is very slow :(( (big timeout on response ) . 
It's strange behaviour, because in collection I stored no more 150 documents.
Can I make the work of xindice database more faster?
Any solutions for tuning?

Thanks all for advise!

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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