SunQuest
           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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 14th, 2003, 09:08 AM
dito dito is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 dito User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
showing XML output in XSL

I've created an xml file for database output. The file is located in a virtual directory /t/ on the webserver. The query in the file works well using http://localhost/nwind/t/categories.xml.
When I attempt to format the output through an xsl file using http://localhost/nwind/t/categories.xml&xsl=categories.xsl, I get 404 error 'page cannot be found'. The .xsl file resides in the same directory as the xml file. Is this not the right location? Do the permissions on the directory have to be readable for webpages to view the output?

If I try to produce the same output by referencing the xsl file within the xml template, http://localhost/nwind/t/categoriesxsl.xml
the error says:
End tag 'HEAD' does not match the start tag 'META'. Error processing resource.
But if I right click and save the source of the error page in the standard web folder, the page is viewable. Is this a browser issue? I'm using I.E. V6.0.26

Reply With Quote
  #2  
Old August 20th, 2003, 06:57 AM
RavaGe RavaGe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 10 RavaGe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm having the same problem right now. Something in the output is adding a <meta> tag in the <head> area but in a non-xml compliant way (no /> at the end). Because this makes your entire xml output not well-formed any XSL transformation will abort prematurely.

The goal here is to find out what exactly is putting that unwanted <meta> tag in the source code.

Reply With Quote
  #3  
Old August 20th, 2003, 08:53 AM
e4c5 e4c5 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Posts: 778 e4c5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 20 sec
Reputation Power: 5
Hi,

Well to start off with you have to use ? instead of ampersand to start your query string. Secondly the correct way to specifiy the xsl sheet to use is to specify it with in your XML document itself.

Finaly it's a good idea to use a server side XSLT engine instead of relying on the client, since some clients do not have xslt engines installed.



]
http://localhost/nwind/t/categories...=categories.xsl
__________________
A lean and mean secure FTP applet with GUI. Just 150 kb in size
http://www.radinks.com/sftp

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > showing XML output in XSL


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 4 hosted by Hostway