XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 7th, 2003, 02:53 AM
Wizard2003's Avatar
Wizard2003 Wizard2003 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 206 Wizard2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 29 m 24 sec
Reputation Power: 6
problem with relative paths

Hi all,

I'm using xalan1.5.0 and I have a problem when I want to transform a xml file.
The problem seems to be that the path for the DTD in the xml file is relative.
Code:
<!DOCTYPE Forms SYSTEM "../schemas/xddm.dtd">

If I want to transform the file I get the following error message:
Code:
Fatal Error at (file source\elementlist.xml, line 2, column 46): An exception oc
curred! Type:XMLPlatformException, Message:The base path had too few levels to w
eave in relative part
SAXParseException: An exception occurred! Type:XMLPlatformException, Message:The
 base path had too few levels to weave in relative part (source\elementlist.xml,
 line 2, column 46)


If I change the path from relative to absolute there occur no errors.

Any help is appreciated.

Regards

Oliver

Reply With Quote
  #2  
Old August 22nd, 2003, 09:34 AM
raman_27 raman_27 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Chennai(Madras)
Posts: 13 raman_27 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
solution to the relative path

hi,

In java related programs, use the following syntax
file:\\\d:\somethingdirectory


note that three slashes should be given after the file: and full path

Reply With Quote
  #3  
Old August 25th, 2003, 05:43 AM
Wizard2003's Avatar
Wizard2003 Wizard2003 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 206 Wizard2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 29 m 24 sec
Reputation Power: 6
The problem is that I don't wanna use the absolute path but the relative.

Reply With Quote
  #4  
Old August 25th, 2003, 10:07 PM
raman_27 raman_27 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Chennai(Madras)
Posts: 13 raman_27 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
reply to the relative path

hi,

you have used forward slashes that is why sax parser generates errors. I used the following the same which is given below

<?xml-stylesheet type="text/css" href="..\XSLT\src\Dev.xsl"?>
<!DOCTYPE xml SYSTEM "..\dtds\Dev.dtd">

Reply With Quote
  #5  
Old August 26th, 2003, 12:43 AM
Wizard2003's Avatar
Wizard2003 Wizard2003 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 206 Wizard2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 29 m 24 sec
Reputation Power: 6
I do not use SAX I use XALAN (see above).
That's only a problem with XALAN and I would like to have a solution for this processor.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > problem with relative paths


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT