Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling CSS to a XML page through ASP

Status
Not open for further replies.

JamesFlowers

Programmer
Mar 23, 2001
97
GB
I have the code as below working from the Northwind MDB.

We are trying to call a Stylesheet in to this (not an XSL).

where would I put it

Many thanks in advance

James Flowers

-----------------------------------------------------------

<%
response.ContentType = &quot;text/xml&quot;

set conn=Server.CreateObject(&quot;ADODB.Connection&quot;)
conn.provider=&quot;Microsoft.Jet.OLEDB.4.0;&quot;
conn.Open &quot;C:\Inetpub\sql=&quot;Select `Company Name`,`Contact Name`, `Address` from Customers '&quot;
set rs=Conn.Execute(sql)
rs.MoveFirst()
response.write(&quot;<?xml version='1.0' encoding='ISO-8859-1'?>&quot;)
response.write(&quot;<northwind>&quot;)
while (not rs.EOF)
response.write(&quot;<company>&quot;)
response.write(&quot;<name>&quot;&rs(&quot;Company Name&quot;)&&quot;</name>&quot;)
response.write(&quot;<contact>&quot;&rs(&quot;Contact Name&quot;)&&quot;</contact>&quot;)
response.write(&quot;</company>&quot;)
rs.MoveNext()
wend
rs.close()
conn.close()
response.write(&quot;</northwind>&quot;)
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top