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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Merging Table Cells in XSLT re... (3)
-> + xsl fo block-container and foo... (2)
-> + Is is possible to create a .CO... (2)
-> + printing a parent node value i... (2)
-> - Mime header info setup? (3)
-> ->Mime header info setup?
-> ->Mime header info setup?
-> + Calculating a Date based on 4 ... (3)
-> + XSLT formatting number issue (10)
-> + map repeating elements separat... (3)
-> + Combining XML elements based o... (3)
-> + Convert XML to UTF-8 (8)
-> + XSLT and MS Access 2007 Optio... (5)
-> - WORDML list to XML list (1)
-> + [Newbie] Using lookups in XSLT... (3)
-> + Comparing 2 passed Date Values (2)
-> + ERROR XQueryMediator Error du... (2)
-> + XML / XSLT... Unordered lists ... (2)
-> + Specify image path in XSL (2)
-> + Variable within a variable (3)
-> + How to call jfreechart method ... (8)
-> + leading and trailing white spa... (2)
-- Previous [421-440] [441-460] [461-480] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.