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

RE: @method ; @media-type

Subject: RE: @method ; @media-type
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 29 Jun 2005 20:21:02 +0100
saxon media type output
The chances are that media-type has no effect on the output at all. Some
implementations may do something with it in some circumstances, for example
if they know that the stylesheet is generating the response to an HTTP
request.

The method attribute does strongly affect the content of the output.

If both are used then they should be consistent, for example it wouldn't
make much sense to set the media type to application/pdf if the output
method is html; but if the method is "text" then there are many different
media types that would make sense.

Michael Kay
http://www.saxonica.com/
  

> -----Original Message-----
> From: Mike Ferrando [mailto:mikeferrando@xxxxxxxxx] 
> Sent: 29 June 2005 15:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  @method ; @media-type
> 
> Friends,
> I recently faced a stylesheet problem concerning the use of @method
> and/or @media-type.
> 
> Although, I was able to resolve the problem, I was left thinking that
> it did not seem clear to me how these attributes are used and what
> effect they have on output.
> 
> 1. If I am outputing a number of documents from one stylesheet, some
> directly and others using saxon:output, how do these attributes
> affect the unicode or elements (i.e, the html uses the @doctype
> attributes)?
> 
> 2. I know that SAXON will give the html tags correctly (taking off
> the closing slash on IMG elements), but will this only effect the
> html output?
> 
> 3. Should these two variable always have the same value "xml |
> text/xml" or "html" "text/html"?  Should I mix them if I anticipate
> character set issues (like glyphs instead of NCR or multibyte
> strings) in the output.
> 
> 4. Is it possible to see some examples of either xsl:output or
> saxon:output elements for these kinds of transformations. 
> For example:
> 
> xml source > xslt stylesheet
>   >xml (direct)
>   >html (saxon:output)
>   >xml (saxon:output)
> 
> (Pawson probably has this on his site, but I missed it.)
> 
> My usual workflow is from xml source to other outputs instances (xml
> and/or html).
> 
> Thanks,
> Mike Ferrando
> Library Technician
> Library of Congress
> Washington, DC
> 202-707-4454
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 

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