XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
jeff hartmanSubject: Mime header info setup?
Author: jeff hartman
Date: 09 Jan 2009 02:23 PM
Old dog trying to learn new tricks here – I have developed a stylesheet with several fields that seems to be populated ok with the data I want. I am trying to connect to a url site and I am being told that I am being refused because I am not supplying “mime” version info. Their documentation suggests that I need a mime header that must have these fields – “post/authorize http/1.0” “mime version ( should be 1.0 or 1.1 )” “content-type” “content-length” “content-transfer-encoding” “request-number” and “document-type”.

Here is a sample of the first several lines of the stylesheet as it is now

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<Request>
<NewOrder>
<IndustryType>
<xsl:value-of select="root/chasearguments/xml-request/c-industrytype"/>
</IndustryType>
<MessageType>
<xsl:value-of select="root/chasearguments/xml-request/c-messagetype"/>
</MessageType>

Anyone understand what line/lines I need to add to satisfy this mime issue? Where they would go? What would it look like?

Thanks for any help

Postnext
(Deleted User) Subject: Mime header info setup?
Author: (Deleted User)
Date: 21 Jan 2009 09:45 AM
Hi Jeff,
the MIME type and other informations (content-length and so on) are HTTP properties, so they must be set by the code that actually send the data. The XSLT only generates that data, and doesn't know what it will be used for.

Alberto

Posttop
jeff hartmanSubject: Mime header info setup?
Author: jeff hartman
Date: 21 Jan 2009 11:05 AM
Thanks for the reply and yes you are 100 percent correct. My language support team was able to help me struggle thru this last week.

Like I said I am an old dog trying to learn these new tricks. I am thankful for people like you.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

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