How to generate XSLT from XML samples -


I am looking for a device for semi-automated XSLT generation.

Looking at two XML files, source:

   

More Goals:

  & lt; Exx & gt; XXX & lt; / Exx & gt;  

The device should create an XSLT file, which creates a goal from the source. Looking at the material, this level, appointment, element name etc should be identified in the change. Its is not a common solution, but I'll only need simple changes.

Potential implementation:

Scan XML data "XXX" for 1 path "Elm" element 2. Scan target, for path "xx" element XML Data "XXX" 3. Output Target XML structure, output of "XXX" XSLT mapping, "Elm" - & gt; "XX"

In case of conflict, manual intervention is required. There may be more than one conflict "XXX" in place in the source.

It would be nice if the device also knows XSD / DTD, for example manual "field" mapping for example.

Edit : Explanation.

I suspect that it is possible to automatically generate simple conversion rules automatically.

Take XML for example

  & lt; Family & gt; & Lt; Father & gt; Paul & lt; / Father & gt; & Lt; Mother & gt; Maria & lt; / Maan & gt; & Lt; Children & gt; Paul & lt; / Children & gt; & Lt; / Family & gt;  

and target

  & lt; Person & gt; Paul & lt; / Person & gt;  

which should be a fairly common combination. I can not even manually make a decision that (without assistance from the person wishing to change), the goal & lt; Person has been created, & lt; Father & lt; Child > so I suspect that an app would be something smart.

Update: If any kind of drag-and-drop-xslt generation is right for you, some commercial products are available, but they can not produce XSLT from the target file.

  • ul>

    Comments