Hello Guys,

Just wanted to ask on how to get the author names in the given xml sample below and put an attribut of eq="yes". EQ means Equal Contributors.

This is the XML.

<ArticleFootnote Type="Misc">
<Para>John Doe and Jane Doe are equal contributors.</Para>
</ArticleFootnote>

This should be the output in other form of XML.

<AuthorGroups>
<Authors eq="yes">John Doe</Authors>
<Authors eq="yes">Jane Doe</Authors>
</AuthorGroups>

Assuming that JOhn Doe and Jane Doe are already defined in the list of authors but after the transformation, author tag should have the attribute eq="yes". Please help as I don't know much writing in xlst.

Thanks in advance.

Ok firstly,

With the information contained within the <Para> tag, is that always in that format (for demonstration of point are the parts in caps lock always there?) 'NameX AND NameY ARE EQUAL CONTRIBUTORS' because if they are not ripping variable values from a text string isnt fun.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.