[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML/XSL and ASP/IIS

Subject: Re: XML/XSL and ASP/IIS
From: "Steven Livingstone" <s.livingstone@xxxxxxxxxxxxxx>
Date: Sat, 5 Jun 1999 10:16:07 +0100
iis asp mime type
Hi there - well, I've tried this with half success/half failure.

I I run the file below, low.xsl, directly from a web page, and after having
mapped it's MIME type to the asp.dll, then I can do everything as I
expected.

However, when I use the following in my asp page,

    strOutput = objXML.transformNode(objXSL)

I am unable to get any response back in strOutput. I don't know what the
problem is as I would still expect the .xsl file to be parsed by asp.dll and
the resuting page to be returned - as soon as I take the ASP stuuf out of
the low.xsl file, everything works using strOutput =
objXML.transformNode(objXSL).

What am I doing wrong, or is there a better/another way to do this?

Thanks
Steven

"low.xsl"
====================================================
<?xml version="1.0"?>
<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<LINK REL="stylesheet" TYPE="text/css" HREF="english.css" />
  <BODY STYLE="font-family:Arial, helvetica, sans-serif; font-size:10pt;
background-color:#EEEEEE">
<%If Request.QueryString("color")="red" Then%>
      <DIV STYLE="background-color:red; color:white; padding:4px">
<%Else%>
 <DIV STYLE="background-color:teal; color:white; padding:4px">
<%End If%>
        <SPAN STYLE="font-weight:bold; color:white">
   <xsl:value-of select="document/title"/> by
   <xsl:value-of select="document/author"/></SPAN>
      </DIV>
      <DIV class="english" STYLE="background-color:darkblue; color:white;
padding:4px">
        <SPAN STYLE="font-weight:bold; color:white;">
   <xsl:value-of select="document/abstract/English"/>
  </SPAN>
      </DIV>
      <DIV class="italian" STYLE="background-color:darkblue; color:white;
padding:4px">
        <SPAN STYLE="font-weight:bold; color:white;">
   <xsl:value-of select="document/abstract/Italian"/>
  </SPAN>
      </DIV>
  </BODY>
</HTML>
====================================================

Steven Livingstone
Director, Networking Technical Associates
The Citi Exchange - http://www.citix.com
Scottish President AIP - http://www.citix.com/AIP
email : ceo@xxxxxxxxx
-----Original Message-----
From: Britt, James <james.britt@xxxxxxx>
To: 'xsl-list@xxxxxxxxxxxxxxxx' <xsl-list@xxxxxxxxxxxxxxxx>
Date: Thursday, June 03, 1999 1:24 AM
Subject: RE: XML/XSL and ASP/IIS


>Actually, under IIS (and I suspect other servers as well) you *can* pass
>parameters to an XSL file. Sort of.
>
>You can set up IIS to process any file type through asp.dll. I've done
>this with "virtual" XML files: files that end with .xml but contain
>server-side
>JavaScript. It gets processed like ASP and uses Response.Write to send out
>the
>generated XML. As far as I know, the MSXML object (if you're using
>MSXML/IIS)doesn't
>care about file extensions, so you can call the files whatever you want;
>they just
>happen to emit XSL/XML. I believe, though, that IE5 will not recognize an
>xml
>file unless it has the right extension (in case you want to directly view
>the
>output).
>
>So, you could use http://www.myserver.com/SomeFakeFile.xsl?screenwidth=600,
>and
>have it create the desired XSL for 800x600 resolution.
>
>I'd be curious to know if Apache, or Zope, can do this, or if other XML/XSL
>processors are indifferent to file extensions.
>
>
>James
>
>> -----Original Message-----
>> From: Steven Livingstone [mailto:s.livingstone@xxxxxxxxxxxxxx]
>> Sent: Wednesday, June 02, 1999 3:52 PM
>> To: xsl-list@xxxxxxxxxxxxxxxx
>> Subject: XML/XSL and ASP/IIS
>>
>>
>> I am interested in how I should do the following -
>>
>> I want to parse a file on the server with one XSL style sheet
>> which should
>> generate XML which should then, depending on specifics be
>> parsed again with
>> one of a few style sheets and the result returned as HTML.
>>
>> What id the best way to do this - any examples??
>>
>> PS. This is assuming there is no way to pass values to an XSL
>> so that it can
>> do conditional statements depending on, say a querystring
>> value which is got
>> in asp and passed to the XSL !! - possible??
>>
>> thanks
>> steven
>>
>> Steven Livingstone
>> Director, Networking Technical Associates
>> The Citi Exchange - http://www.citix.com
>> Scottish President AIP - http://www.citix.com/AIP
>> email : ceo@xxxxxxxxx
>>
>>
>>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread

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
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-2011 All Rights Reserved.