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 July 16th, 2004, 09:42 AM
Leetanker Leetanker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 Leetanker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
noNamespaceSchemaLocation - what is it?

Guys,

I have an XML file i'm dealing with, and its giving me some trouble. It contains a "noNamespaceSchemaLocation". When I remove this from the XML, all of my transforms work fine. When it is present in the XML, i get nothing.

Heres the XML:

Code:
  <?xml version="1.0" encoding="UTF-8" ?> 
  <Results xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xyz.xsd">
  <KeywordsRatingSet keywords="superbikesandbabes.com">
  <Market>us</Market> 
  </KeywordsRatingSet>
  <ResultSet id="relatedSearchResults" numResults="20">
  <Category type="related">
  <Search num="1">Superbike</Search> 
  <Search num="2">Boat loan</Search> 
  <Search num="3">Boat insurance</Search> 
  <Search num="4">Scooter</Search> 
  <Search num="5">Gas scooter</Search> 
  <Search num="6">Boat cover</Search> 
  <Search num="7">Motorcycle part</Search> 
  <Search num="8">Babes</Search> 
  <Search num="9">Animation</Search> 
  <Search num="10">Dvd</Search> 
  <Search num="11">Dvd rental</Search> 
  <Search num="12">Sign</Search> 
  <Search num="13">Bird cage</Search> 
  <Search num="14">Video</Search> 
  <Search num="15">Sand</Search> 
  <Search num="16">Art supply</Search> 
  <Search num="17">Scrapbook supply</Search> 
  <Search num="18">Craft supply</Search> 
  <Search num="19">Yarn</Search> 
  <Search num="20">Quilting</Search> 
  </Category>
  </ResultSet>
  </Results>



And here is a XSLT file that works fine when the noNamespace is gone, but returns nothing when its there:


Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" />
	<xsl:template match="/">
		<table cellpadding="2" cellspacing="0">
			<xsl:apply-templates select="Results/ResultSet/Category" />
		</table>
	</xsl:template>
	<xsl:template match="Search">
		<tr>
			<td>
				<a href="search.asp?q={text()}" class="desc"><xsl:value-of select="text()" /></a>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>



Any help would be appreciated; I've been stuck on this for a day now, and its slowly killing me.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > noNamespaceSchemaLocation - what is it?


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 6 hosted by Hostway
Stay green...Green IT