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)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] 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.