why dosen't it read the xml info?

Subject: why dosen't it read the xml info?
From: YonitL@xxxxxxxxxxx
Date: Mon, 5 Jun 2000 07:13:07 +0200
Hello!

I wrote the following code and i would like to use varaiables etc. 
so i've changed the xmlns:xsl how ever now it doesn't read the value-of
select.
please help.

the xsl file:
<?xml version="1.0" encoding="ISO-8859-8"?>
<!--xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/xslt"-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="/">

<html >
<body>
	<xsl:apply-templates select="search/type"/> 
	<xsl:value-of select="search/type"/>
	<xsl:value-of select="search/auctions" /> sales
	<xsl:value-of select="search/searchText" />
	<xsl:value-of select="search/inShops" /> 
	<xsl:value-of select="search/founded" />
	<xsl:for-each select="search/products/product" order-by
="@suppliername">
      		<xsl:attribute name="href">
		      product.asp?pc=<xsl:value-of select="@id" />
	             </xsl:attribute>
		 <xsl:value-of select="@productname" />
	      	 </a>
      <!--xsl:variable name="prodId">product.asp?sc=<xsl:value-of
select="@id" /></xsl:variable>
      <a href="{$prodId}"> <xsl:value-of select="@productname" /></a-->
			<a>
				<xsl:attribute
name="HREF">shop.asp?sc=<xsl:value-of select="@pk_supplier_id" />
				</xsl:attribute>
				<font face="Arial, Helvetica, sans-serif"
size="-1">
					<xsl:value-of select="@suppliername"
/>
			</a>
		<xsl:value-of select="@productdescription" />
				<xsl:value-of select="@price" />
			<xsl:value-of select="@generaldiscount" />
			<xsl:value-of select="@membersdiscount" />
	</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>



the xml file:


<?xml version="1.0" encoding="ISO-8859-8"?>


<search xmlns="urn:schemas-microsoft-com:xml-data"
	      xmlns:dt="urn:schemas-microsoft-com:datatypes">
	<type>חיפוש מוצר</type>
	<searchText>מקררים , מקפיאים</searchText>
	<founded>72</founded>
	<inShops>21</inShops>
	<auctions>45</auctions>
	<products>
		<product id="44" productname="מקרר אמנה"
productdescription="מקרר אמנה 2000 בעל מערכת הקירור 2000"
pk_supplier_id="12345" suppliername="אבי אלקטרוניקה" price="2100"
generaldiscount="29%" membersdiscount="25%" sale_type_desc="michraz"/>
		<product id="444" productname="מקרר תדיראן"
productdescription="מקרר תדיראן דגם 3000" pk_supplier_id="1234"
suppliername="שקם אלקטריק" price="2000" generaldiscount="29%"
membersdiscount="25%" sale_type_desc="mi" />
		<product id="144" productname="מקרר גנרל אלקטריק"
productdescription="מקרר דגם 30000" pk_supplier_id="12355"
suppliername="סנסור" price="2102" generaldiscount="29%"
membersdiscount="25%" sale_type_desc="m" />
	</products>
</search>


the asp file:

<%@ Language=VBScript %>
 <% Option Explicit %>
 <% Response.Buffer = True %> 
<% Function XMLOutput(ByVal msXMLFile, ByVal msXSLFile) 
	Dim XMLDoc, XSLDoc
	Set XMLDoc = Server.CreateObject("Microsoft.XMLDOM") 
	Set XSLDoc = Server.CreateObject("Microsoft.XMLDOM") 
	XMLDoc.async = false 
	XMLDoc.load(server.MapPath("Data/" & msXMLFile)) 
	XSLDoc.async = false 
	XSLDoc.load(server.MapPath("Styles/" & msXSLFile))
	XMLOutput=XMLDoc.transformNode(XSLDoc) End Function %> 
<% Response.Write xmloutput("SearchResults.xml","searchResult.xsl") %> 




lots of thanks.

yonit


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread