This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Opening connections to www.w3.org Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Opening connections to www.w3.org" Watch "Opening connections to www.w3.org" New topic
Author

Opening connections to www.w3.org

Eduardo Yañez Parareda
Ranch Hand

Joined: Oct 09, 2008
Posts: 93

Hello, I've a problem at work. I'm not an expert on XSL either XSLT so I think asking here is better.

Some of our processes are opening HTTP connections to www.w3.org, I suspect is a transformation, but I'm not sure of that. I don't have access to servers, so I can't
see log files.

When a process validates an XML with an XSD file that declares an xsd namespace as:

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

Does the validator open a connection to www.w3.org?

The same question for any transformation with XSL. Our XSL files declare namespaces: xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
When the transformation happens, does it open a connection to www.w3.org?



http://blindcoder.wordpress.com
Eduardo Yañez Parareda
Ranch Hand

Joined: Oct 09, 2008
Posts: 93

Well, as I've read in the specification, namespaces URIs are treated by parsers as strings, so I don't know what could be the cause of connections to www.w3.org.

Any suggestion?
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19747
    
  10

A namespace URI is just a string of characters with no meaning, so the parser should not try to connect to the URL that they happen to represent.

So that isn't your problem. However if you want to solve your problem I suggest you should find out the cause. Guesswork is going to be a slow process, so if you don't have access to the servers then somebody who does have access should be given the problem to solve.
Eduardo Yañez Parareda
Ranch Hand

Joined: Oct 09, 2008
Posts: 93

Paul Clapham wrote:A namespace URI is just a string of characters with no meaning, so the parser should not try to connect to the URL that they happen to represent.

So that isn't your problem. However if you want to solve your problem I suggest you should find out the cause. Guesswork is going to be a slow process, so if you don't have access to the servers then somebody who does have access should be given the problem to solve.


Yes, I'd like you to be my boss! :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening connections to www.w3.org
 
It's not a secret anymore!