Subject:Map element to element, but only for instance with a particular attribute value? Author:David Karr Date:14 Nov 2005 05:54 PM
I'm finding I know what I need to do in xslt, but I'm having trouble
visualizing how to do it graphically in the mapper. I'll try to
describe what I have so far.
I have a source and target schema, and I've set the source and target
context on each side.
In my source schema, I have an element "AdditionalOutputData" that has a
sequence of "DataAttribute" elements, which have a "name" attribute. I
know that in my source document, one of the "DataAttribute" elements
will have a "name" value of "id". I need to copy the "DataAttribute"
body in that case to the "UID" element in my target schema.
I figured the XSLT for this might look something like this:
It's the condition part that's stumping me. I don't see how I would
best represent this in the mapper canvas, so the logic is represented
graphically (as much as possible).
Subject:RE: Map element to element, but only for instance with a particular attributevalue? Author:David Karr Date:14 Nov 2005 09:56 PM
Ok. I was assuming this could be answered with a general strategy, but
I'll attach them.
> -----Original Message-----
> From: stylus-studio-xslt Listmanager
> [mailto:stylus-studio-xslt.listmanager@stylusstudio.com]
> Sent: Monday, November 14, 2005 6:06 PM
> Subject: Map element to element, but only for instance with a
> particular attributevalue?
>
>
> From: "Clyde Kessel"
>
> David,
> Can you attach the two schemas?
> Thanks much,
> Clyde Kessel
>
>
> --
> To reply: mailto:stylus-studio-xslt.12572@stylusstudio.com
> To start a new topic: mailto:stylus-studio-xslt@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
> mailto:stylus-studio-xslt.list-request@stylusstudio.com
>
>