Users - Does <@ofbizContentUrl> work in XSL FO?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - Does <@ofbizContentUrl> work in XSL FO?

Vinay Agarwal

Hello,

 

I can’t get <@ofbizContentUrl>  to work as expected in companyHeader.fo.ftl. The only thing that seems to work is hard coded server address. Anyone else experienced this? BTW, I found that svg can be used to get high-resolution graphics in the pdf.

 

Thanks in advance,

Vinay Agarwal

 


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

Si Chen-2
Yes, I've found that it doesn't work either.


On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:

> Hello,
>
>
>
> I can’t get <@ofbizContentUrl>  to work as expected in  
> companyHeader.fo.ftl. The only thing that seems to work is hard  
> coded server address. Anyone else experienced this? BTW, I found  
> that svg can be used to get high-resolution graphics in the pdf.
>
>
>
> Thanks in advance,
>
> Vinay Agarwal
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

David E. Jones

Do you mean in an FTL file run through the screen widget to generate XSL:FO? Or what sort of file are you using and how is it called?

-David


Si Chen wrote:

> Yes, I've found that it doesn't work either.
>
>
> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>
>> Hello,
>>
>>
>>
>> I can’t get <@ofbizContentUrl>  to work as expected in  
>> companyHeader.fo.ftl. The only thing that seems to work is hard  
>> coded server address. Anyone else experienced this? BTW, I found  
>> that svg can be used to get high-resolution graphics in the pdf.
>>
>>
>>
>> Thanks in advance,
>>
>> Vinay Agarwal
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

Si Chen-2
In the FTL run through screen widget to generate XSL:FO.  It's been a  
while since I played with it, so my memory is a bit hazy, but somehow  
it didn't generate the absolute URL that xsl:fo needed.  For example,  
if you do

http://localhost:8080/.../.pdf

and then in that image you wanted to refer to an image, you can't do  
src="/images/..." you have to do src="http://localhost:8080/ 
images/.." and reference the image in the absolute.  Somehow I  
couldn't get ofbizContentUrl to get the right URL for me.

Si


On Jun 19, 2006, at 5:15 PM, David E. Jones wrote:

>
> Do you mean in an FTL file run through the screen widget to  
> generate XSL:FO? Or what sort of file are you using and how is it  
> called?
>
> -David
>
>
> Si Chen wrote:
>> Yes, I've found that it doesn't work either.
>>
>>
>> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>>
>>> Hello,
>>>
>>>
>>>
>>> I can’t get <@ofbizContentUrl>  to work as expected in
>>> companyHeader.fo.ftl. The only thing that seems to work is hard
>>> coded server address. Anyone else experienced this? BTW, I found
>>> that svg can be used to get high-resolution graphics in the pdf.
>>>
>>>
>>>
>>> Thanks in advance,
>>>
>>> Vinay Agarwal
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

David E. Jones

Did you perhaps try the fullPath="true" argument in the transform? From what you're describing it sounds like that would be the solution.

-David


Si Chen wrote:

> In the FTL run through screen widget to generate XSL:FO.  It's been a  
> while since I played with it, so my memory is a bit hazy, but somehow  
> it didn't generate the absolute URL that xsl:fo needed.  For example,  
> if you do
>
> http://localhost:8080/.../.pdf
>
> and then in that image you wanted to refer to an image, you can't do  
> src="/images/..." you have to do src="http://localhost:8080/ 
> images/.." and reference the image in the absolute.  Somehow I  
> couldn't get ofbizContentUrl to get the right URL for me.
>
> Si
>
>
> On Jun 19, 2006, at 5:15 PM, David E. Jones wrote:
>
>> Do you mean in an FTL file run through the screen widget to  
>> generate XSL:FO? Or what sort of file are you using and how is it  
>> called?
>>
>> -David
>>
>>
>> Si Chen wrote:
>>> Yes, I've found that it doesn't work either.
>>>
>>>
>>> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>>>
>>>> Hello,
>>>>
>>>>
>>>>
>>>> I can’t get <@ofbizContentUrl>  to work as expected in
>>>> companyHeader.fo.ftl. The only thing that seems to work is hard
>>>> coded server address. Anyone else experienced this? BTW, I found
>>>> that svg can be used to get high-resolution graphics in the pdf.
>>>>
>>>>
>>>>
>>>> Thanks in advance,
>>>>
>>>> Vinay Agarwal
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

Vinay Agarwal
In reply to this post by David E. Jones
David,

The file in question is companyHeader.fo.ftl being used to generate order
PDF. Specifically, I was trying <@ofbizContentUrl> for the src attribute url
in fo:external-graphic tag. The src url in file is
        <@ofbizContentUrl>/images/logo.svg</@ofbizContentUrl>

which is expanded to
        /images/logo.svg (without any server name).

Regards,
Vinay Agarwal


-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of David E. Jones
Sent: Monday, June 19, 2006 5:15 PM
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Does <@ofbizContentUrl> work in XSL FO?


Do you mean in an FTL file run through the screen widget to generate XSL:FO?
Or what sort of file are you using and how is it called?

-David


Si Chen wrote:

> Yes, I've found that it doesn't work either.
>
>
> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>
>> Hello,
>>
>>
>>
>> I can't get <@ofbizContentUrl>  to work as expected in
>> companyHeader.fo.ftl. The only thing that seems to work is hard coded
>> server address. Anyone else experienced this? BTW, I found that svg
>> can be used to get high-resolution graphics in the pdf.
>>
>>
>>
>> Thanks in advance,
>>
>> Vinay Agarwal
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

Si Chen-2
In reply to this post by David E. Jones
Huh, no - I didn't know that there was a fullPath="true" argument.  
How about that--now I've learned something.

Does that work for you, Vinay?

Si


On Jun 19, 2006, at 5:24 PM, David E. Jones wrote:

>
> Did you perhaps try the fullPath="true" argument in the transform?  
> From what you're describing it sounds like that would be the solution.
>
> -David
>
>
> Si Chen wrote:
>> In the FTL run through screen widget to generate XSL:FO.  It's been a
>> while since I played with it, so my memory is a bit hazy, but somehow
>> it didn't generate the absolute URL that xsl:fo needed.  For example,
>> if you do
>>
>> http://localhost:8080/.../.pdf
>>
>> and then in that image you wanted to refer to an image, you can't do
>> src="/images/..." you have to do src="http://localhost:8080/
>> images/.." and reference the image in the absolute.  Somehow I
>> couldn't get ofbizContentUrl to get the right URL for me.
>>
>> Si
>>
>>
>> On Jun 19, 2006, at 5:15 PM, David E. Jones wrote:
>>
>>> Do you mean in an FTL file run through the screen widget to
>>> generate XSL:FO? Or what sort of file are you using and how is it
>>> called?
>>>
>>> -David
>>>
>>>
>>> Si Chen wrote:
>>>> Yes, I've found that it doesn't work either.
>>>>
>>>>
>>>> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>>
>>>>>
>>>>> I can’t get <@ofbizContentUrl>  to work as expected in
>>>>> companyHeader.fo.ftl. The only thing that seems to work is hard
>>>>> coded server address. Anyone else experienced this? BTW, I found
>>>>> that svg can be used to get high-resolution graphics in the pdf.
>>>>>
>>>>>
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Vinay Agarwal
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> [hidden email]
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

David E. Jones

Yeah, this is one of those things among so many options that the best way to find it (for me) is to pop open the source file and check out the arguments it looks at. Maybe not the best way to find things, but it only took about 2 minutes or something to check to see if something like that existed.

-David


Si Chen wrote:

> Huh, no - I didn't know that there was a fullPath="true" argument.  
> How about that--now I've learned something.
>
> Does that work for you, Vinay?
>
> Si
>
>
> On Jun 19, 2006, at 5:24 PM, David E. Jones wrote:
>
>> Did you perhaps try the fullPath="true" argument in the transform?  
>> From what you're describing it sounds like that would be the solution.
>>
>> -David
>>
>>
>> Si Chen wrote:
>>> In the FTL run through screen widget to generate XSL:FO.  It's been a
>>> while since I played with it, so my memory is a bit hazy, but somehow
>>> it didn't generate the absolute URL that xsl:fo needed.  For example,
>>> if you do
>>>
>>> http://localhost:8080/.../.pdf
>>>
>>> and then in that image you wanted to refer to an image, you can't do
>>> src="/images/..." you have to do src="http://localhost:8080/
>>> images/.." and reference the image in the absolute.  Somehow I
>>> couldn't get ofbizContentUrl to get the right URL for me.
>>>
>>> Si
>>>
>>>
>>> On Jun 19, 2006, at 5:15 PM, David E. Jones wrote:
>>>
>>>> Do you mean in an FTL file run through the screen widget to
>>>> generate XSL:FO? Or what sort of file are you using and how is it
>>>> called?
>>>>
>>>> -David
>>>>
>>>>
>>>> Si Chen wrote:
>>>>> Yes, I've found that it doesn't work either.
>>>>>
>>>>>
>>>>> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I can’t get <@ofbizContentUrl>  to work as expected in
>>>>>> companyHeader.fo.ftl. The only thing that seems to work is hard
>>>>>> coded server address. Anyone else experienced this? BTW, I found
>>>>>> that svg can be used to get high-resolution graphics in the pdf.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks in advance,
>>>>>>
>>>>>> Vinay Agarwal
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> [hidden email]
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

Vinay Agarwal
In reply to this post by Si Chen-2
David, Si,

I just tried (in companyHeader.fo.ftl)
        <@ofbizContentUrl
fullPath="true">/images/logo.svg</@ofbizContentUrl>

But it is still expanded to
        /images/logo.svg (still without any server name).

Regards,
Vinay Agarwal


-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
On Behalf Of Si Chen
Sent: Monday, June 19, 2006 5:43 PM
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Does <@ofbizContentUrl> work in XSL FO?

Huh, no - I didn't know that there was a fullPath="true" argument.  
How about that--now I've learned something.

Does that work for you, Vinay?

Si


On Jun 19, 2006, at 5:24 PM, David E. Jones wrote:

>
> Did you perhaps try the fullPath="true" argument in the transform?  
> From what you're describing it sounds like that would be the solution.
>
> -David
>
>
> Si Chen wrote:
>> In the FTL run through screen widget to generate XSL:FO.  It's been a
>> while since I played with it, so my memory is a bit hazy, but somehow
>> it didn't generate the absolute URL that xsl:fo needed.  For example,
>> if you do
>>
>> http://localhost:8080/.../.pdf
>>
>> and then in that image you wanted to refer to an image, you can't do
>> src="/images/..." you have to do src="http://localhost:8080/ 
>> images/.." and reference the image in the absolute.  Somehow I
>> couldn't get ofbizContentUrl to get the right URL for me.
>>
>> Si
>>
>>
>> On Jun 19, 2006, at 5:15 PM, David E. Jones wrote:
>>
>>> Do you mean in an FTL file run through the screen widget to generate
>>> XSL:FO? Or what sort of file are you using and how is it called?
>>>
>>> -David
>>>
>>>
>>> Si Chen wrote:
>>>> Yes, I've found that it doesn't work either.
>>>>
>>>>
>>>> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>>
>>>>>
>>>>> I can't get <@ofbizContentUrl>  to work as expected in
>>>>> companyHeader.fo.ftl. The only thing that seems to work is hard
>>>>> coded server address. Anyone else experienced this? BTW, I found
>>>>> that svg can be used to get high-resolution graphics in the pdf.
>>>>>
>>>>>
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> Vinay Agarwal
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> [hidden email]
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - Does <@ofbizContentUrl> work in XSL FO?

Si Chen-2
In reply to this post by David E. Jones
Yes, that's still the best way to learn.  It just never occurred to  
me that there might be other optional arguments available.  Good  
advice for the future, though.

On Jun 19, 2006, at 5:44 PM, David E. Jones wrote:

>
> Yeah, this is one of those things among so many options that the  
> best way to find it (for me) is to pop open the source file and  
> check out the arguments it looks at. Maybe not the best way to find  
> things, but it only took about 2 minutes or something to check to  
> see if something like that existed.
>
> -David
>
>
> Si Chen wrote:
>> Huh, no - I didn't know that there was a fullPath="true" argument.
>> How about that--now I've learned something.
>>
>> Does that work for you, Vinay?
>>
>> Si
>>
>>
>> On Jun 19, 2006, at 5:24 PM, David E. Jones wrote:
>>
>>> Did you perhaps try the fullPath="true" argument in the transform?
>>> From what you're describing it sounds like that would be the  
>>> solution.
>>>
>>> -David
>>>
>>>
>>> Si Chen wrote:
>>>> In the FTL run through screen widget to generate XSL:FO.  It's  
>>>> been a
>>>> while since I played with it, so my memory is a bit hazy, but  
>>>> somehow
>>>> it didn't generate the absolute URL that xsl:fo needed.  For  
>>>> example,
>>>> if you do
>>>>
>>>> http://localhost:8080/.../.pdf
>>>>
>>>> and then in that image you wanted to refer to an image, you  
>>>> can't do
>>>> src="/images/..." you have to do src="http://localhost:8080/
>>>> images/.." and reference the image in the absolute.  Somehow I
>>>> couldn't get ofbizContentUrl to get the right URL for me.
>>>>
>>>> Si
>>>>
>>>>
>>>> On Jun 19, 2006, at 5:15 PM, David E. Jones wrote:
>>>>
>>>>> Do you mean in an FTL file run through the screen widget to
>>>>> generate XSL:FO? Or what sort of file are you using and how is it
>>>>> called?
>>>>>
>>>>> -David
>>>>>
>>>>>
>>>>> Si Chen wrote:
>>>>>> Yes, I've found that it doesn't work either.
>>>>>>
>>>>>>
>>>>>> On Jun 19, 2006, at 3:52 PM, Vinay Agarwal wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I can’t get <@ofbizContentUrl>  to work as expected in
>>>>>>> companyHeader.fo.ftl. The only thing that seems to work is hard
>>>>>>> coded server address. Anyone else experienced this? BTW, I found
>>>>>>> that svg can be used to get high-resolution graphics in the pdf.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks in advance,
>>>>>>>
>>>>>>> Vinay Agarwal
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> [hidden email]
>>>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> [hidden email]
>>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [hidden email]
>>>> http://lists.ofbiz.org/mailman/listinfo/users
>>> _______________________________________________
>>> Users mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users