[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.

  • To: "Alessandro Barabesi" <alex@b...>
  • Subject: RE: Please help me to understand a basic concept.
  • From: "Manos Batsis" <m.batsis@b...>
  • Date: Fri, 5 Jul 2002 12:22:16 +0300
  • Cc: <xml-dev@l...>
  • Thread-index: AcIkAqi/zd3pE6yNRyOW+IOzYiWwtAAAeJAg
  • Thread-topic: Please help me to understand a basic concept.

please help me to understand

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.