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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
gavin clarkSubject: Problem with build 377n & XSLT Mapper ?!? (didn't happen in 377m)
Author: gavin clark
Date: 07 Oct 2005 05:00 AM
Hi,

using the latest version and I'm getting some very odd behaviour in XSLT mapper !.

When I run the scenario, each element is prefixed with an "a:" and also when I map an element in the source/target relationship it marks it as red ... and then the same elelment reappears at the bottom of the target document display.

This is causing a lot of problems as we're in the final testing cycle with our customer !.

This definitely didn't happen in 377m !!!!

thanks


Unknownimport_lilly_invoices_2005-09-28.xml
source XML file

Unknownlilly_invoice_beXML3V2.xsl
xslt mapper template

Unknownlilly_invoice_template_beXML3.xml
target XML document

Postnext
(Deleted User) Subject: Problem with build 377n & XSLT Mapper ?!? (didn't happen in 377m)
Author: (Deleted User)
Date: 07 Oct 2005 12:26 PM
There is a bug in mapper tree.

This is what actually went wrong:

Starting from 377m mapper becomes namespace-aware.
If you will take a look at the following element:
<Invoice xmlns="schemas-bex-biz:Invoice-v3"> you
will see that default namespace is redefined. So,
when you map element from the source tree to the
target one mapper detects that namespace is different
and adds a prefix. It defines this prefix in:

<xsl:stylesheet version="1.0" xmlns:a="urn:schemas-bex-biz:Invoice-v3">

it will be good to detect that in

<xsl:for-each select="root/Invoice">
<Invoice xmlns="urn:schemas-bex-biz:Invoice-v3">

the default prefix is redefined and there is no need to use "a:",
but this is not an issue. The issue is within target document
schema tree. This tree does not perform namespace lookup, so
for it default prefix and "a:" are different even if they are pointing to the same namespace. So, it shows all a: prefixed elements as not belonging to the target (in red) and all elements with default prefix
as target elements (this is why you are getting duplicates).
We will try to fix this issue in the next update.

Before this you can probably consider changing target document so
it will not redefine default namespace. If you could change

<Invoice xmlns="urn:schemas-bex-biz:Invoice-v3">

into

<Invoice xmlns:a="urn:schemas-bex-biz:Invoice-v3">

and use "a" prefix, everything should work.




Postnext
gavin clarkSubject: Problem with build 377n & XSLT Mapper ?!? (didn't happen in 377m)
Author: gavin clark
Date: 12 Oct 2005 06:03 AM
Yuriy,

when you say prefix everything with 'a' do you mean all the other elements that I am mapping ?.

Is there a way I can get build 377m instead .. would be easier (unfortunately I've deleted the copy I'd downloaded already !)

thanks

Postnext
(Deleted User) Subject: Problem with build 377n & XSLT Mapper ?!? (didn't happen in 377m)
Author: (Deleted User)
Date: 12 Oct 2005 07:49 AM
No, only those that are using redefined default namespace. it's invoce and its children. Let me check where you can download earlier version,
I'll post its location here.

Postnext
(Deleted User) Subject: Problem with build 377n & XSLT Mapper ?!? (didn't happen in 377m)
Author: (Deleted User)
Date: 12 Oct 2005 08:59 AM
Can you tell us what edition of Stylus Studio you are running? When we know this we will send you e-mail with the link.

Posttop
gavin clarkSubject: Problem with build 377n & XSLT Mapper ?!? (didn't happen in 377m)
Author: gavin clark
Date: 12 Oct 2005 09:02 AM
It's Stylus Studio 6 Enterprise Edition (release 3) and I'm after build 377m if possible

thanks

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.