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
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 07 Feb 2006 07:12 AM
Hello,

I want to build an XSLT-mapping using the mapper. And the target schema is defined using an envelope (schema1) containing a reference to another xml-schema schema2.

However the target tree does only show the envelope (schema1) and not the structure of the referred structure.

Is this not supported?

Cheers,

Emile

Postnext
(Deleted User) Subject: References in Target schema in XSLT mapper
Author: (Deleted User)
Date: 07 Feb 2006 10:43 AM
Hi, Emile. You should be able to see any structures from included (or imported) XML Schema (like your schema2) that are used by the referencing XML Schem (your schema1).

David Foster
Stylus Studio Team

Postnext
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 08 Feb 2006 02:07 AM
Hello,

In the target tree i only see the structure of the mainschema.

See the attached MainSchema.xsd and Schema1.xsd and a screen shot of the xslt-mapper.

We're running Stylus studio prof edition version 6 rel 2 build 287n.

Thanks Emile


Unknownmapper_screenshot.jpg
Mapper screenshot

UnknownMainSchema.xsd
Main schema

UnknownSchema1(1).xsd
Schema1

Postnext
Tony LavinioSubject: References in Target schema in XSLT mapper
Author: Tony Lavinio
Date: 08 Feb 2006 09:39 AM
Your .jpg file failed to upload; it has 0 bytes as a size.
Could you please re-upload it?

Postnext
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 13 Feb 2006 02:08 AM
Sorry for my relayed reply:

Try to upload the JPG again:

Cheers,

Emile


Imagemapper_screenshot(1).jpg
Screenshot Mapper

Postnext
Minollo I.Subject: References in Target schema in XSLT mapper
Author: Minollo I.
Date: 13 Feb 2006 09:01 AM
Emile,
we can see the problem you are hitting; we are investigating further.

I'll keep you posted about progress; are you willing to test an update Stylus Studio 2006 release once the problem has been corrected?

Thanks,
Minollo

Postnext
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 13 Feb 2006 09:43 AM
Originally Posted: 13 Feb 2006 09:37 AM
Hello, I'm working on a customers PC and have to investigate if upgrading is feasible. will come back on that. Regards, Emile XTRA info: I tested it on our companies version of stylus studio prof editon 2006 Build 501h -> same problem on this version

Postnext
Minollo I.Subject: References in Target schema in XSLT mapper
Author: Minollo I.
Date: 13 Feb 2006 09:54 AM
Yes, I have been able to see the same problem on BL501h too.

BTW, a "quick" workaround is to use an XML instance document consistent with that schema, instead of the schema itself; using Stylus Studio 2006 (that has improved that functionality) you can run the XML Schema to XML document wizard and generate a sample XML document for MainSchema.xsd; the full generation will create a largish XML document; you may want to accept the suggestion prompted by Stylus Studio to stop the generation after 5,000 elements.

Hope this helps,
Minollo

Postnext
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 13 Feb 2006 02:50 PM
Thanks Minollo,

Example xml helps indeed however would be great if standard XSD support is there.

Is xml generation possible in 287n build??

Thanks Emile

Postnext
Minollo I.Subject: References in Target schema in XSLT mapper
Author: Minollo I.
Date: 13 Feb 2006 04:02 PM
It is available in BL287n, even if less sophisticated than what we have in BL501; I haven't tested the one in BL287 with your schema...

Minollo

Postnext
Minollo I.Subject: References in Target schema in XSLT mapper
Author: Minollo I.
Date: 13 Feb 2006 04:25 PM
Emile,
in the meanwhile we have been investigating the problem, and the issue seems to be related to the fact that Xerces C++, which is the underlying XML Schema interpreter Stylus Studio uses, doesn't "like" your XML Schema. In particular, it doesn't like:
<xsd:element ref="ZMATMAS2" xmlns=""/>

You can see that clicking the "Validate" button when MainSchema.xsd is open in Stylus Studio. If you change your "MainSchema.xsd" to avoid redefining the default namespace, and to avoid using xmlns="" when using ZMATMAS2, things will work fine:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://sap.com/xi/XI/SplitAndMerge"
xmlns:myNS="http://sap.com/xi/XI/SplitAndMerge"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--You can skip myNS declaration if you don't need to reference it in this document-->
<xsd:import schemaLocation="Schema1.xsd"/>
<xsd:element name="Messages">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Message1" form="qualified">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="ZMATMAS2"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

Hope this helps,
Minollo

Postnext
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 14 Feb 2006 02:03 AM
Thanks Minollo,

Indeed removing the ns decl works for the mapper -> Tree is visable. However validation still of the MainSchema causes stylus to crash.

For building the xslt it is fine now.

Cheers,

Emile

Postnext
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 14 Feb 2006 06:25 AM
Thanks Minollo,

Indeed removing the ns decl works for the mapper -> Tree is visable. However validation still of the MainSchema causes stylus to crash.

For building the xslt it is fine now.

Cheers,

Emile

Postnext
Minollo I.Subject: References in Target schema in XSLT mapper
Author: Minollo I.
Date: 14 Feb 2006 08:51 AM
The crash you are seeing is caused by the fact that your schema uses very large "maxOccurrs" values; that triggers a know issue in the Xerces C++ validation engine.

In Stylus Studio 2006 we have workarounded that issue by treating large maxOccurrs values as "unbounded"; you won't get any crash using Stylus Studio 2006.

Minollo

Posttop
Emile HermansSubject: References in Target schema in XSLT mapper
Author: Emile Hermans
Date: 15 Feb 2006 02:56 AM
That's Clear Thanx!!

Thnx for all your help.

Emile

 
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.