DR 09-0221: WNL: Custom XML Attribute

Doug Mahugh Doug.Mahugh at microsoft.com
Tue Jun 9 18:26:48 CEST 2009


Hi Jirka,

Thanks for the info.  I'll see what I can do about reporting this behavior to our friends at Microsoft. :-)

- Doug, Ecma TC45


-----Original Message-----
From: Jirka Kosek [mailto:jirka at kosek.cz]
Sent: Tuesday, June 09, 2009 3:10 AM
To: Innovimax SARL
Cc: Shawn Villaron; SC 34 WG4
Subject: Re: DR 09-0221: WNL: Custom XML Attribute

Innovimax SARL wrote:
> Well to be fair, in XSLT you're allowed to define more than one
> attribute with the same name-namespace value but the last one wins
>
> What are the current implementations' behaviour ?

In Part 1, Annex 'F' there is XSLT code which uses xsl:attribute to reconstruct attributes so it behaves as Mohamed described. However this XSLT was based on reverse-engineering output from MSO.

It seems that MSO2007SP2 exports only later attribute. So it should be sufficient if the standard defines that the latest attribute value wins if there are duplicate attributes with the sam name and namespace.

But what is quite interesting is that UI of MSO shows duplicate attributes and even saves them into OOXML using customXml markup. It is a pity that there is no one from Microsoft on this list (only ECMA people), so no one could pass this bug to MSO developers for fix. ;-)

                        Jirka

--
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka at kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------




More information about the sc34wg4 mailing list