J
Joris Gillis
Hi everyone,
I was wondering...
Can one element have multiple (identically named) attributes in XML?
e.g. Is the following document valid XML?
<?xml version="1.0" encoding="UTF-8"?>
<root a="1" a="2" a="3"/>
And if it is, how can I create this document with XSLT when this is the input XML?
<?xml version="1.0" encoding="UTF-8"?>
<root>
<a>1</a>
<a>2</a>
<a>3</a>
</root>
It seems that the 'xsl:attribute' element overwrites each attribute (with the same name) that is already present in the result tree element.
Any reactions? Thanks in advance...
regards,
I was wondering...
Can one element have multiple (identically named) attributes in XML?
e.g. Is the following document valid XML?
<?xml version="1.0" encoding="UTF-8"?>
<root a="1" a="2" a="3"/>
And if it is, how can I create this document with XSLT when this is the input XML?
<?xml version="1.0" encoding="UTF-8"?>
<root>
<a>1</a>
<a>2</a>
<a>3</a>
</root>
It seems that the 'xsl:attribute' element overwrites each attribute (with the same name) that is already present in the result tree element.
Any reactions? Thanks in advance...
regards,