xsl-list
[Top] [All Lists]

Re: [xsl] multiple transformations (pipelining) in one stylesheet

2007-10-19 11:01:13
Am Freitag, 19. Oktober 2007 schrieb Michael Kay:
I tried to adapt your model (used your mode names to see if I
understand it) but there must be an error, I don't get any output.

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:output method="xml" encoding="UTF-8"
omit-xml-declaration="yes"/>

  <xsl:template match="@*|node()" mode="phase-1">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>

You need to use mode="phase-1" here (or mode="#current")

This looks better but the markup gets lost (from the source xml file in 
phase-1 and the html in phase-2). Any ideas?

O.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--