Subject:XSLT mapper / Source file not showing as expected Author:dustin niehues Date:30 Jun 2009 05:45 PM
I have a question about how the Source XML file is showing on the mapping pane for a new XLST style sheet. I open my xml doc in stylus studio and it shows as expected. Then I open this XML document as the Source for mapping/generating my xslt and the xml is not structured the same. Am I missing a setting somewhere?
Subject:XSLT mapper / Source file not showing as expected Author:Ivan Pedruzzi Date:30 Jun 2009 10:17 PM
Dustin
What you see in the mapping source tree is not the entire document but rather the document structure, a sort of lightweight schema, that's why they look different.
Subject:XSLT mapper / Source file not showing as expected Author:dustin niehues Date:30 Jun 2009 10:22 PM
Ivan,
Is there any way to make this less light weight of a view. Typically a user should only load a single record for the mapping process, but a record that will expose all possible mappings. My point is that this is really making it difficult for me to map the fields and it honestly doesn't look right to me (even though I am sure it is). If you can think of anything that may make this a little easier.
Subject:XSLT mapper / Source file not showing as expected Author:(Deleted User) Date:02 Jul 2009 12:26 PM
Hi Dustin,
the Mapper tree infers a schema from the source XML, and doing so it assigns all the elements that have the same name to the same element type (in order to address an XML file where each element is just one possible layout of the same global element type).
In your XML file there must be at least one Field element that contains a Record element, and this creates the loop that you are seeing.
If your XML uses the same Record name to implement a link to a different, top-level Record element, you should create an XMLSchema that illustrate this, and use that schema as Mapper source, so that the display reflects the real structure.