|
Rank: Advanced Member
Joined: 1/23/2016 Posts: 54
|
Hi,
we need for a transformation an XML object (holding certain values for the transformation) between input and output.
How to model it ? How to put an XML (not an XSD) on the map ?
Thanks a lot in advance,
Michel
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 565
|
Sounds like you want to create a XSLT transformation. Are you using MapForce? If you insert an XML component into a MapForce mapping, and choose an XML instance (rather than an XML schema or DTD), MapForce will offer to generate either a schema or a DTD for you.
|
|
Rank: Advanced Member
Joined: 1/23/2016 Posts: 54
|
Hi K101,
thanks a lot for your effort. Yes, I know and that is the problem. I want put an XML on the map, not an XSD. Reason: i have to set several elements with concrete values. Those elements are subset the elements of origin XSD. I can do it with 30 constants, but is not very readable.
Any ideas ?
Thanks a lot,
Michel
|
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 565
|
michel777 wrote:thanks a lot for your effort. Yes, I know and that is the problem. I want put an XML on the map, not an XSD. Reason: i have to set several elements with concrete values. Those elements are subset the elements of origin XSD. I can do it with 30 constants, but is not very readable.
An XML component in MapForce requires the structure, and that's represented either by a schema or DTD. It can't be represented by an instance alone.
When you have static values to insert into a mapping, yes, you can use constants, or you can use another file (text, XML, etc.) or a database.
If it's just the visual appearance of 30 constants in your mapping, remember that you can enclose all thirty constants into a User-Defined Function (UDF).
|
|
guest |