Oops. made a small mistake...

-----Original Message-----
From: Tim Crook [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 26, 2000 5:06 PM
To: Sablotron Mailing List
Subject: [Sab] BUG: no duplicate attributes here!


  <xsl:template match="window">
    <xsl:variable name="n1">WINDOW_<xsl:value-of
select="@name"/></xsl:variable>
    <xsl:variable name="n"><xsl:value-of select="@page"/>_<xsl:value-of
select="@name"/></xsl:variable>
    <xsl:variable name="this1" select="translate(string($n1),'%','')"/>
    <xsl:variable name="this" select="translate(string($n),'%','')"/>
    <xsl:element name="{$this1}">
====>      <xsl:attribute name="xfa:dataNode">dataGroup</xsl:attribute>
      <xsl:element name="{$this}">
====>        <xsl:attribute name="xfa:dataNode">dataGroup</xsl:attribute>
        <xsl:apply-templates/>
      </xsl:element>
    </xsl:element>
  </xsl:template>

When this runs, I get the error E1_ADDING_DUPLICATE_ATTRIBUTE, even though
the attributes should be created in different element nodes. [I know this is
not a great example, but it points out some problems].

Looking through output.cpp, I would have thought that
OutputterObj::eventElementStart and OutputterObj::eventElementEnd should be
pushing and popping currAtts. Comments?

Reply via email to