Re: [xsl] result-document output method vs unnammed output method

Subject: Re: [xsl] result-document output method vs unnammed output method
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Nov 2011 12:10:04 -0500
At 2011-11-25 17:07 +0000, you wrote:
> Well, I've already made one big mistake today ... I'll risk another.  I'll
> say:
>   <foo>bar</foo>
> The imported method would have changed the main output to text except that
> the result-document instruction overrides that.
> Why do you ask?

...because I thought the same as you :)

Okay ... you made me look ... and I get what I thought I would get:

t:\ftemp>type andrew.xsl
<xsl:stylesheet  version="2.0"

<xsl:import href="B.xslt"/>

    <xsl:template match="/" name="main">
        <xsl:result-document method="xml">


t:\ftemp>type b.xslt
<xsl:stylesheet version="2.0"

<xsl:output method="text"/>


t:\ftemp>xslt2 andrew.xsl andrew.xsl
<?xml version="1.0" encoding="UTF-8"?><foo>bar</foo>

Are you getting anything different?

. . . . . . . . . Ken

Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0
Crane Softwrights Ltd.  
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Google+ profile:
Legal business disclaimers:

Current Thread