IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Grouping elements under new parent elements Options · View
Gibson335
Posted: Monday, September 18, 2017 7:05:50 AM
Rank: Member

Joined: 9/18/2017
Posts: 10
Location: Sweden
Source xml-fragment:
<legend>
<deflist>
<term>1.</term>
<def>Target A</def>
<term>2.</term>
<def>Target B</def>
<term>3.</term>
<def>Target D</def>
</deflist>
</legend>

Target xml-fragment:
<legend>
<definitionList>
<definitionListItem>
<listItemTerm>1.</listItemTerm>
<listItemDefinition>
<para>Target A</para>
</listItemDefinition>
</definitionListItem>
<definitionListItem>
<listItemTerm>2.</listItemTerm>
<listItemDefinition>
<para>Target B</para>
</listItemDefinition>
</definitionListItem>
<definitionListItem>
<listItemTerm>3.</listItemTerm>
<listItemDefinition>
<para>Target D</para>
</listItemDefinition>
</definitionListItem>
</definitionList>
</legend>

Since I have no element to connect to my parent element "definitionListItem", I get into some problems. One element containing all listItemTerms is created when I do not connect anything, but that is not the desired structure. Can I achieve this in MapForce or do I have to write this directly in xslt?
vlad
Posted: Monday, September 18, 2017 8:02:31 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Yes, you can do this using the new MapForce feature which allows accessing nodes by name.


vlad attached the following image(s):
Capture.JPG

Gibson335
Posted: Monday, September 18, 2017 10:33:18 AM
Rank: Member

Joined: 9/18/2017
Posts: 10
Location: Sweden
Thank you - worked like a charm :-)
AlexRS
Posted: Tuesday, October 10, 2017 3:47:10 PM
Rank: Newbie

Joined: 9/28/2017
Posts: 6
Location: Germany
Hey Gibson335,

are you working on a S1000D Mapping?
Gibson335
Posted: Friday, October 20, 2017 1:38:57 PM
Rank: Member

Joined: 9/18/2017
Posts: 10
Location: Sweden
Yes it is. Sorry for the late reply, but my PC just got the better of me for a while...
AlexRS
Posted: Friday, October 20, 2017 2:11:27 PM
Rank: Newbie

Joined: 9/28/2017
Posts: 6
Location: Germany
Gibson335 wrote:
Yes it is. Sorry for the late reply, but my PC just got the better of me for a while...


Great,

I´m going to open a new thread for this, because in this forum there are no private messages and it is also good to find more people working on the same problems.
I think we could profit from each other.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.