You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Graham Lange <gL...@skystone.ca> on 2003/02/20 20:54:22 UTC

xmlns:fo secure link

Hello, 
I am running an FOP project on a secure web server. The server is Redhat
7.3 with Apache 1.3 and Tomcat 4, FOP version 0.20.4
The problem I am having is with the namespace. Is there any way that I
can get a secure version of the namespace so that I dont get a warning
when the PDF is loaded. My stylesheet tag looks like the following.
<xsl:stylesheet 
xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>" 
xmlns:fo="<http://www.w3.org/1999/XSL/Format>" 
version="1.0"> 
After transforming the xsl, the fo:root tag shows up as follows. 
<fo:root xmlns:fo="<http://www.w3.org/1999/XSL/Format>"> 
The problem here is that the URI is not to a secure web server therefore
I get the warning message, 
This page contains both secure and nonsecure items. Do you want to
display the nonsecure items? 
Can I deploy the namespace to my local server? Is there a secure server
available? The pdf does not get formatted when I remove the namespace
attribute in the stylesheet tag.
Thanks, 
Graham Lange 
glange@skystone.ca 


Re: xmlns:fo secure link

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Graham Lange wrote:
> xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>" 

This should be
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
without the angle brackets.
Note that these strings are just used as strings, they are never
dereferenced, nor is anything ever downloaded from the endpoint by
FOP or by the XSLT processor. They don't go to the browser either
while downloading the generated PDF.
If you trace the DNS lookups from the machine where your servlet
runs, you'll see that the www.w3.org domain is never resolved.
You can't deploy namespaces, whatever you mean by this phrase,
nor do you need to do this.
Read the XML namespace spec for additional info:
  http://www.w3.org/TR/REC-xml-names/

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: xmlns:fo secure link

Posted by Jeremias Maerki <de...@greenmail.ch>.
Don't confuse URIs with URLs. URIs like "http://www.w3.org...." have
NOTHING to do with the HTTP protocol. The "http://" prefix is simply
often misused and can therefore lead to confusion, as in your case.

Are you using the FOP servlet to generate PDF? And does that PDF content
go to the browser over HTTP instead of HTTPS? That could explain the
error message you receive.

But something like that is not FOP's doing, it's Tomcat's job (or the
job of Apache Web server) to maintain the internet connection and to
determine whether it is to be encrypted or not. You need to configure
Tomcat in a way that the FOP servlet is accessible over HTTPS. Please
consult Tomcat's documentation on how to accomplish this. Maybe you've
already set up everything correctly but call the servlet of HTTP instead
of HTTPS. Check your webapps and links.

On 20.02.2003 20:54:22 Graham Lange wrote:
> I am running an FOP project on a secure web server. The server is Redhat
> 7.3 with Apache 1.3 and Tomcat 4, FOP version 0.20.4
> The problem I am having is with the namespace. Is there any way that I
> can get a secure version of the namespace so that I dont get a warning
> when the PDF is loaded. My stylesheet tag looks like the following.
> <xsl:stylesheet 
> xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>" 
> xmlns:fo="<http://www.w3.org/1999/XSL/Format>" 
> version="1.0"> 
> After transforming the xsl, the fo:root tag shows up as follows. 
> <fo:root xmlns:fo="<http://www.w3.org/1999/XSL/Format>"> 
> The problem here is that the URI is not to a secure web server therefore
> I get the warning message, 
> This page contains both secure and nonsecure items. Do you want to
> display the nonsecure items? 
> Can I deploy the namespace to my local server? Is there a secure server
> available? The pdf does not get formatted when I remove the namespace
> attribute in the stylesheet tag.




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org