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

Re: [XSLT 1.0] Avenues for content to enter and exit a

Subject: Re: [XSLT 1.0] Avenues for content to enter and exit an XSLT transform?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 9 Aug 2010 12:35:30 -0700
Re:  [XSLT 1.0] Avenues for content to enter and exit a
> 3. The XML content obtained using the <xsl:input> and <xsl:include>
elements.\

I have never seen <xsl:input> in any XSLT specification. What is this?


> Are there any other avenues for content to enter an XSLT transform?

Any documents or document-fragments passed into global <xsl:param> elements.

in XPath 2.0:

fn:doc()
fn:collection()
fn:unparsed-text()

If these can be considered "content:

fn:current-dateTime()
fn:current-date()
fn:current-time()

In XSLT 2.1:

unparsed-text-lines()

>
>
> There are several avenues for content to exit an XSLT transform:
>
> 1. The output document that is specified when the XSLT processor is
invoked.
>
> 2. The content that is output using extension functions, such as
saxon:output and xalan:write.
>
> Are there any other avenues for content to exit an XSLT transform?


This question is incorrect. I think what you're asking is:

   "Are there any other ways for an XSLT transformation to produce
useful results?"

And the answer is yes:

the output of any <xsl:message> instruction.

the parameters that the transformation passes to any called extension
function. Some time ago I had the occasion to write a transformation
that didn't produce any output, but was calling extension function and
passing to them the useful results of the transformation.

If this can be considered "content":
the side effects of calling any extension function.


>
>
> /Roger
>
>



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
I enjoy the massacre of ads. This sentence will slaughter ads without
a messy bloodbath.

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.