DR 09-0221: WNL: Custom XML Attribute

Jirka Kosek jirka at kosek.cz
Tue Jun 9 12:09:30 CEST 2009


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
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.vse.cz/pipermail/sc34wg4/attachments/20090609/44f2670b/attachment.pgp>


More information about the sc34wg4 mailing list