Re: Chameleon components

/ Alex Milowski <alex@milowski.org> was heard to say:
| On 2/7/07, Alessandro Vernet <avernet@orbeon.com> wrote:
|>
|>
|> On 2/6/07, Norman Walsh <Norman.Walsh@sun.com> wrote:
|> >   <p:xslt version="2.0">
|> >     ...
|> >   </p:xslt>
|>
|> How do you set the value of the "version" attribute based on the
|> output of a previous step? And I won't take "you can't" as an
|> acceptable answer ;).
|
| I that case, wouldn't you just set the version attribute on the
| transform ?

Maybe. But let me be crystal clear. Given:

  <p:xslt name="xform10" version="1.0">
    <p:input port="stylesheet">
      <p:inline>
        <xsl:stylesheet version="2.0">...</xsl:stylesheet>
      </p:inline>
    </p:input>
    ...
  </p:xslt>

I expect the xform10 step to perform XSLT 1.0 processing on the
stylesheet irrespective of the version number on the input stylesheet.


I can live with a world where this step:

  <p:xslt name="xform">
    <p:input port="stylesheet">
      <p:inline>
        <xsl:stylesheet version="2.0">...</xsl:stylesheet>
      </p:inline>
    </p:input>
    ...
  </p:xslt>

has the semantic that the processor MUST do 2.0 processing if it can,
otherwise it can use an XSLT processor for some other version of XSLT.

Not truely interoperable, but possibly convenient enough to warrant
support anyway.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Thursday, 8 February 2007 15:46:59 UTC