Re: cocoon and svg rasteriser

2003-12-30 Thread Joerg Heinicke
On 15.12.2003 18:12, Tsui, Alban wrote:

Hi

I am using cocoon 2.0.3. I have a  transform to a xml file which contains a
xlink to an cocoon pipeline for static images but it does not get rendered
into jpeg.
image
xsl:attribute namespace=http://www.w3.org/1999/xlink;
name=xlink:hrefcocoon:///svgdiagram/xsl:value-of
select=/page/extra/svgbackgroundimage//xsl:attribute
/image
So I have a pipeline for serving /svgdiagram/something.jpg but the above
doesn't work... am I using cocoon:// correctly here?
Both Batik and FOP don't use the Cocoon source resolver and so don't 
understand Cocoon's pseudo protocols as cocoon:/ or context:/.

Joerg

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


RE: cocoon and svg rasteriser

2003-12-15 Thread Steve Schwarz
Hi,
Unless I'm missing something, it looks like you've got one too many / in 
your cocoon: statement. How's about:
cocoon://svgdiagram/

HTH,
Steve
I am using cocoon 2.0.3. I have a  transform to a xml file which contains a
xlink to an cocoon pipeline for static images but it does not get rendered
into jpeg.
image
xsl:attribute namespace=http://www.w3.org/1999/xlink;
name=xlink:hrefcocoon:///svgdiagram/xsl:value-of
select=/page/extra/svgbackgroundimage//xsl:attribute
/image
So I have a pipeline for serving /svgdiagram/something.jpg but the above
doesn't work... am I using cocoon:// correctly here?
_
Get holiday tips for festive fun. 
http://special.msn.com/network/happyholidays.armx

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


RE: cocoon and svg rasteriser

2003-12-15 Thread Tsui, Alban
Title: RE: cocoon and svg rasteriser





yeah I found that extra / but still it doesn't work, thanks.


I just wonder if I can resolve/expand this url:


 cocoon://svgdiagram/image.jpg


via java in my xsp to the full one...


 http://server:port/cocoon/svgdiagram/image.jpg


using come java call by passing in cocoon://svgdiagram/image.jpg as an argument?


Then I will have the full url in my xsl transform. It is because the rasteriser only works if that link is a full http url!

Cheers
AT



-Original Message-
From: Steve Schwarz [mailto:[EMAIL PROTECTED]]
Sent: 15 December 2003 18:11
To: [EMAIL PROTECTED]
Subject: RE: cocoon and svg rasteriser



Hi,
Unless I'm missing something, it looks like you've got one too many / in 
your cocoon: statement. How's about:
cocoon://svgdiagram/


HTH,
Steve



I am using cocoon 2.0.3. I have a transform to a xml file which contains a
xlink to an cocoon pipeline for static images but it does not get rendered
into jpeg.

image
xsl:attribute namespace=http://www.w3.org/1999/xlink
name=xlink:hrefcocoon:///svgdiagram/xsl:value-of
select=/page/extra/svgbackgroundimage//xsl:attribute
/image

So I have a pipeline for serving /svgdiagram/something.jpg but the above
doesn't work... am I using cocoon:// correctly here?


_
Get holiday tips for festive fun. 
http://special.msn.com/network/happyholidays.armx



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


This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.




RE: cocoon and svg rasteriser

2003-12-15 Thread Steve Schwarz
Hi
Sorry I guess I did misunderstand your request.
A couple ideas:
- recently in the mail lists I seem to recall discussions about using source 
resolver to do this. But I'm not an XSP guy so I don't know how you go about 
accessing the source resolver w/in xsp...
- another post for this type of problem recommended putting your root dir in 
a config file and then using Xinclude to extract the root from the config 
file into the XSL.
- I have used a global site map variable named root and use the 
{global:root} to pass this into my XSLT.

HTH,
Steve
I just wonder if I can resolve/expand this url:

	cocoon://svgdiagram/image.jpg

via java in my xsp to the full one...

	http://server:port/cocoon/svgdiagram/image.jpg;

using come java call by passing in cocoon://svgdiagram/image.jpg as an
argument?
Then I will have the full url in my xsl transform. It is because the
rasteriser only works if that link is a full http url!
_
Cell phone ‘switch’ rules are taking effect — find out more here. 
http://special.msn.com/msnbc/consumeradvocate.armx

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