[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: unknown protocol classpath

Subject: Re: unknown protocol classpath
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Wed, 17 May 2006 09:27:39 -0500
doctype classpath
On 5/17/06, qmjo038@xxxxxxxxx <qmjo038@xxxxxxxxx> wrote:
   Hi,
I want to perform a following task: having over a few
hundreds XML files, I want to remove from all of them
such nodes that match a certain pattern, while
preserving their original structure as much as
possible.

"Typically, my XML file looks like that:
<?xml version="1.0"?>

<!DOCTYPE NODE SYSTEM
'classpath:///wf/core/base/prm/resources/prm.dtd'>
^^^^ errr, don't recognize that type of doctype.

I am using the following Java 1.5 code (and Xalan
processor, I guess) to run it:

The parser is what's important here.

Then I get the following exception: java.net.MalformedURLException: unknown protocol: classpath

^^^^^ seems pretty straightforward to me. Doesn't recognize the classpath protocol. I don't either, so that's not a huge surprise. Perhaps someone on a list more focused on XML parsing and java could help you here.


Without DOCTYPE declaration in the source XML, XSL works (almost) fine. Declaring file instead of classpath gets understood also."

Well, yes. What do you expect? This isn't a XSL problem. It's an XML problem. I'm not up to snuff on some of the latest catalog stuff, but off the top of my head I've never seen classpath:/// used in a system doctype. You might want to use a parser that can handle it if it's correct.

Jon Gorman

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.