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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.