[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Please help me to understand a basic concept.
Alessandro, You'll have more chances to get a response when using plain-text email ;-) Remember in HTML, you link to a stylesheet (CSS) using a <link rel="stylesheet" href="stylesheet/path.css" type="text/css"/> Quite similarly, in XML documents you do the same using a Processing Instruction instead of a link element: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="test.xslt"?> <documentElement> <!-- rest of document --> </documentElement> You specify whether the stylesheet is text/css or text/xsl in the type attribute. Hth, Manos -----Original Message----- From: Alessandro Barabesi [mailto:alex@b...] Sent: Friday, July 05, 2002 11:58 AM To: xml-dev@l... Subject: Please help me to understand a basic concept. Hi everybody I hope someone will be so ncie to spend few minutes to help me. I started to look at XML 2 days ago so please be patient, I know my problem is probably a stupid one. What I don't seem to understand is: if XML allowes me to structure content so that, with stylesheets, that content can be visualized, in a browser, in hundreds of different ways, how can I associate a stylesheet to a XML document which is available at a certain URL? At the moment the only solutions I found is using vbscript with Microsoft.XMLDOM object: set xmlDoc = server.createObject("Microsoft.XMLDOM") xmlDoc.async="false" set xsl = Server.CreateObject("Microsoft.XMLDOM") xsl.async = false xsl.load(Server.MapPath("my_local_stylesheet.xsl")) xmlDoc.load("http://some.web.server/some_file.xml") Response.Write(xmlDoc.transformNode(xsl)) I have the feeling that I am missing a basic concept here and probably what I am trying to do can be done very easily but I dont seem to be able to find out how. Thanks, Alex
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|