XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
P HoeveSubject: Mapper is duplicating element names in templates
Author: P Hoeve
Date: 01 Sep 2004 03:33 PM
The mapping is simple. We are mapping one XML doc to another. They are
both schema defined. The only diff between the source and destination
schema's is the root tag name. That's all.

When I create and use a template (either named or matched),
the mapper DUPLICATES the tag names for the output doc.

In the example below, not that the code has the output elements 'eaiProcessSalesLead',
'ApplicationArea', etc duplicated from the root template to the
a:ApplicationArea template.

I must believe this is something I'm doing, but need help figuring out
what. Thanks. P.

<?xml version='1.0' ?>
<xsl:stylesheet xmlns:a="http://www.starstandards.org/STAR" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<eaiProcessSalesLead>
<xsl:attribute name="lang">
<xsl:value-of select="a:ProcessSalesLead/@lang"/>
</xsl:attribute>
<xsl:value-of select="a:ProcessSalesLead"/>
<ApplicationArea>
<xsl:call-template name="a:ApplicationArea"/>
</ApplicationArea>
</eaiProcessSalesLead>
</xsl:template>
<xsl:template name="a:ApplicationArea">
<eaiProcessSalesLead>
<ApplicationArea>
<CreationDateTime>
<xsl:value-of select="a:ProcessSalesLead/a:ApplicationArea/a:CreationDateTime"/>
</CreationDateTime>
</ApplicationArea>
</eaiProcessSalesLead>
</xsl:template>
</xsl:stylesheet>

Postnext
Ivan PedruzziSubject: Mapper is duplicating element names in templates
Author: Ivan Pedruzzi
Date: 01 Sep 2004 05:34 PM
Unfortunatly in the current version when you map inside a template,
Mapper always re-create the full tree from from the root to the target node.

In the next version you will be able to set the target context by template,
so you will have a better control.

Ivan

Postnext
P HoeveSubject: Mapper is duplicating element names in templates
Author: P Hoeve
Date: 02 Sep 2004 08:40 AM
<sound of jaw dropping> Thanks very much for the reply. To say I'm shocked is an understatement. </sound of jaw dropping>

Even the old mapper, with some of it's quirks and pitfalls didn't do something this flagrent.

Is there a timeframe for the release that will have this correction? We just purchased licenses for my entire team and now it doesn't look like we can use it affectively.

Working with what we have, is there a method for doing this type of 1-to-1 mapping that will
maintain efficiency of processing. Being that these are used for transactions through and EAI
solution, it is important they are as efficient as possible. Should I just not use the templates?

Postnext
Ivan PedruzziSubject: Mapper is duplicating element names in templates
Author: Ivan Pedruzzi
Date: 02 Sep 2004 11:03 AM
P Hoeve,

We understand your pain, eating without jaw must be a hell :)

We agreed to implement this feature in the next update, which should be available in a week.

In the mean while you can still build your mapping without use templates.
Performance should not be affected, but if the mapping gets very complicated (many links) it could became difficult to read.

Ivan

Postnext
P HoeveSubject: Mapper is duplicating element names in templates
Author: P Hoeve
Date: 02 Sep 2004 03:46 PM
That is too late for this project, but not for the next. I look forward to getting the fix.

If you are looking for alpha or beta testers, I would consider it. I have found numerouse other
things but will wait for the next patch to express them.

Where is the proper place to report bugs?

Posttop
Ivan PedruzziSubject: Mapper is duplicating element names in templates
Author: Ivan Pedruzzi
Date: 02 Sep 2004 04:07 PM
For feature request you can post on the "Stylus Studio Feature Requests" conference or email
stylus-studio-feature-requests@stylussstudio.com

For comunicating defects you can email to stylus-field-report@progress.com

Thanks
Ivan

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.