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 (1123)
- Stylus Studio Technical Forum (13809)
-> + Transfer Options (Settings, Pr... (2)
-> + Enterprise Edition, Rel. 3, Bu... (9)
-> + Need help with xsl file and xm... (2)
-> + Upgrading and retaining settin... (4)
-> + saxon9.dll etc. missing (2)
-> - Error on using XQuery File in ... (1)
-> - Strange Dialog Box (1)
-> + Studio Crashes in schema edito... (3)
-> + Xml to XMl Conversion (2)
-> + Unable to create a complex typ... (2)
-> + Error message wen trying run j... (2)
-> - XSLT Mapper question... (1)
-> + Dcument Wizard XSLT Editor Tab... (2)
-> + Beginner Question - XPath with... (2)
-> + Trying to generate .net code w... (2)
-> + duplicate values in variable w... (5)
-> + Java Runtime Environment libra... (4)
-> + programmatically generate XML ... (4)
-> + Help Loading Oracle BI Publish... (4)
-> + [French] xsl <=> report (3)
-> + XML Diff (3)
-> + StylusStudio 2008, saxon saxon... (6)
-> + Msql Table err:FODC0004 Table ... (2)
-> + The evaluation period for Data... (2)
-> + Mysql to XML (2)
-> + Is there a Collapse All nodes ... (2)
-> + flat file conversion with CDAT... (4)
-> + Struzzo.exe eats up %40 CPU ba... (2)
-> + schematron support? (11)
-> + XML Generator did not generate... (2)
-> + Nesting XML files (2)
-> + Web Service Call fails - targe... (5)
-> + getting not valid for content ... (2)
-> - element modem was referenced i... (1)
-> + xerces-c++ xml parser (2)
-> + movie.dtd (2)
-> + HELP! Stylus Studio 2008 Enter... (3)
-> + Xalan problem with xsl:attribu... (2)
-> + Breakpoints being ignored (12)
-> + Need a new key for Stylus Stud... (2)
-> + Global parameters are not reco... (4)
-> + mySQL DB Connection 2 (10)
-> + Using Data Direct xQuery to ag... (4)
-> + stylusXslt command line -- XSL... (15)
-> + XSLT processor using EXSLT fun... (2)
-> + Integrating Omni Mark (2)
-> + EDI Standards to gXML (2)
-> + flat file conversion (3)
-> + EDI to XML: Invalid URI error (3)
-> + Validating and XML Schema (6)
-> + XSD to DDL (MS-SQL/2005) (6)
-> + xml converter cant encode 0x19 (4)
-> + XSD Help Needed (2)
-> + How do you delete a field in a... (2)
-> + Disable page breaks (3)
-> + XSD semantic structure compari... (3)
-> + Studio Crashes On File Open (7)
-> + Which parser is used by Stylus... (2)
-> + How to DIFF XML windows with d... (3)
-> + Automation using Visual Studio (7)
-> + CSV to XML conversion help (2)
-> + XML tree help (3)
-> + java.lang.NullPointerException... (2)
-> + Creating schema from xml - how... (3)
-> + Mismatch between intellisense ... (4)
-> + Using FOP 0.94 in XML Pipeline (2)
-> - UV Kit (1)
-> - Preview PDF as HTML? (1)
-> + ArrayIndexOutOfBoundsException... (3)
-> + WSCC to KML transform help (5)
-> + Using XSV 3.1-1 as an external... (2)
-> + Cannot debug stylesheet (2)
-> + Error installing Stylus Studio... (3)
-> - Windows XP "not responding" er... (1)
-> - Windows XP "not responding" er... (1)
-> + HTML to XSL (2)
-> + Run Stylus studio from command... (2)
-> + Setting Context for XPath Quer... (5)
-> + Batch process to check well-fo... (9)
-> + WSDL validator? (8)
-> - How to be still using Old Jars (1)
-> - Install Stylus Studio on anoth... (1)
-> + Install Stylus Studio on anoth... (3)
-> + How to validate via catalog lo... (4)
-> + New Installation Upgrade Issue... (4)
-> - Freelance Project - Mapping di... (1)
-> + Converting from Edifact to SQL... (3)
-> + converting data file to xml us... (2)
-> + have serious problem with Styl... (2)
-> + ddtek:sql-delete (3)
-> + Web Service Call with Axis: No... (3)
-> + Entity gets replaced when inde... (2)
-> + EDIFACT import error (3)
-> + (401) forbidden error (8)
-> + Error when data type not speci... (2)
-> - Globally delete duplicates of ... (1)
-> + Validation too slow!!!! (4)
-> + Define a complex type with mul... (2)
-> + XML Playlists (2)
-> - Create SOA Web Service with me... (1)
-- Previous [901-920] [921-940] [941-960] Next
+ Website Feedback (243)
+ XSLT Help and Discussion (7447)
+ XQuery Help and Discussion (1861)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (361)
+ Stylus Studio Announcements (113)
Topic  
Postnext
(Deleted User) Subject: XSD will not load into Mapper
Author: (Deleted User)
Date: 01 Jul 2003 11:55 AM
When I attempt to create an xml to xml map I select the attached schema as the Source Schema in the 'Choose Source Schema and Destination Schema' dialog box but I am unable to select the root node from the drop down box.

I assume the schema is correct as I created the schema by opening a well-formed XML document (not already associated to any DTD or XML Schema) in stylus studio (4.6 build 103v), switched to the Schema tab and created a new XML Schema from there.

Please help. Cheers.

Postnext
(Deleted User) Subject: RE: XSD will not load into Mapper
Author: (Deleted User)
Date: 01 Jul 2003 12:01 PM
I tried with some xsd files and it can load without problem.

please provide your orginal xml file and I'll try with the steps you
described and see if we can reproduce it.

thanks

song.

> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager@edn.exln.com]
> Sent: Tuesday, July 01, 2003 12:17 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: XSD will not load into Mapper
>
>
> From: "Chris Lindley"
>
> When I attempt to create an xml to xml map I select the attached
> schema as the Source Schema in the 'Choose Source Schema and
> Destination Schema' dialog box but I am unable to select the root
> node from the drop down box.
>
> I assume the schema is correct as I created the schema by opening
> a well-formed XML document (not already associated to any DTD or
> XML Schema) in stylus studio (4.6 build 103v), switched to the
> Schema tab and created a new XML Schema from there.
>
> Please help. Cheers.
>
>
>
> To reply: mailto:stylus-studio-tech.6831@edn.exln.com
> To start a new topic: mailto:stylus-studio-tech@edn.exln.com
> To login: http://edn.exln.com/~SSDN
>

Postnext
(Deleted User) Subject: RE: XSD will not load into Mapper
Author: (Deleted User)
Date: 02 Jul 2003 11:23 AM
Here is the XSD I tried to load and the originating well formed document.


DocumentCOSample-IMS.xml
originating well formed doc

DocumentJP-Invoice.xsd
the xsd

Postnext
(Deleted User) Subject: XSD will not load into Mapper
Author: (Deleted User)
Date: 02 Jul 2003 11:34 AM
Sorry, this is the originating doc...


DocumentInvoiceSample-JP.xml
originating doc

Postnext
(Deleted User) Subject: RE: XSD will not load into Mapper
Author: (Deleted User)
Date: 02 Jul 2003 01:09 PM
Chris,

are you sure the xsd file you used is generated by stylus studio from your
original well-formed xml file, can you double check? they do not looks
identical.

even with the xsd file JP-Invoices.xsd you provided, it shows a list of
possible root including 'invoices' and 'invoice', and it does make sense for
me.

song.

> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager@edn.exln.com]
> Sent: Tuesday, July 01, 2003 12:17 PM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: XSD will not load into Mapper
>
>
> From: "Chris Lindley"
>
> When I attempt to create an xml to xml map I select the attached
> schema as the Source Schema in the 'Choose Source Schema and
> Destination Schema' dialog box but I am unable to select the root
> node from the drop down box.
>
> I assume the schema is correct as I created the schema by opening
> a well-formed XML document (not already associated to any DTD or
> XML Schema) in stylus studio (4.6 build 103v), switched to the
> Schema tab and created a new XML Schema from there.
>
> Please help. Cheers.
>
>
>
> To reply: mailto:stylus-studio-tech.6831@edn.exln.com
> To start a new topic: mailto:stylus-studio-tech@edn.exln.com
> To login: http://edn.exln.com/~SSDN
>

Postnext
(Deleted User) Subject: RE: XSD will not load into Mapper
Author: (Deleted User)
Date: 03 Jul 2003 06:11 AM
Hi Song

I've been able to reproduce the error.

Firstly let me explain that the original well formed documnet is a respresentation of a csv file. The root is Invoices followed by a child element of Invoice which can occur many times. Its children; fld01, fld02 etc represent the columns in the origial csv file.

Now, if I load the well formed doc into stylus studio and switch to the schema tab I select the Generate XMLSchema radio button and type in a file name for the xsd and press enter (it doesn't automatically add the .xsd extension by the way!). I can load this into the mapper no problem.
However, I have all my schemas in a particular folder so if I repeat the above procedure except this time select a different folder to the original well formed doc that I'm creating a schema of and then save it this then fails to load in the mapper, as I mentioned b4 the drop down menu won't open for me to select the root element.

I have a large repository of all kinds of different schemas for mapping purposes so I don't use namespaces to physical files (or virtual for that matter) as the documents coming through my system arrive from many different remote systems, some with or without namespaces, non-xml formats etc so it's easier to just not use them. This also takes me back to my previous post (xsi:noNamespaceSchemaLocation issue) which I haven't received a response for yet.

I've attached the original well formed doc again.

Hope this helps. Thanks. Please advise.


DocumentInvoiceSample-JP(1).xml
doc

Postnext
(Deleted User) Subject: RE: XSD will not load into Mapper
Author: (Deleted User)
Date: 03 Jul 2003 09:22 AM


> -----Original Message-----
> From: stylus-studio-tech Listmanager [mailto:listmanager@edn.exln.com]
> Sent: Thursday, July 03, 2003 6:33 AM
> To: Recipients of 'stylus-studio-tech' suppressed
> Subject: RE: XSD will not load into Mapper
>
>
> From: "Chris Lindley"
>
> Hi Song
>
> I've been able to reproduce the error.
>
> Firstly let me explain that the original well formed documnet is
> a respresentation of a csv file. The root is Invoices followed by
> a child element of Invoice which can occur many times. Its
> children; fld01, fld02 etc represent the columns in the origial csv file.
>
> Now, if I load the well formed doc into stylus studio and switch
> to the schema tab I select the Generate XMLSchema radio button
> and type in a file name for the xsd and press enter (it doesn't
> automatically add the .xsd extension by the way!). I can load
> this into the mapper no problem.
> However, I have all my schemas in a particular folder so if I
> repeat the above procedure except this time select a different
> folder to the original well formed doc that I'm creating a schema
> of and then save it this then fails to load in the mapper, as I
> mentioned b4 the drop down menu won't open for me to select the
> root element.

do you mean using the same xml file(InvoiceSample-JP.xml) and create a xsd
schema by switching tab in a diffrent directory, the created xsd schema file
can not be loaded into mapper? it does not happen to me. what does your
generated xsd file looks like.

> I have a large repository of all kinds of different schemas for
> mapping purposes so I don't use namespaces to physical files (or
> virtual for that matter) as the documents coming through my
> system arrive from many different remote systems, some with or
> without namespaces, non-xml formats etc so it's easier to just
> not use them. This also takes me back to my previous post
> (xsi:noNamespaceSchemaLocation issue) which I haven't received a
> response for yet.

the reason we add namespace is when you choose xsd file as source and this
xsd schema requires namespace in the xml instance, if mapper does not
genertate namespace in the xsl file, it will fail when you run the xsl if
the xml instance contains namespace(which means it is compliant with the
schema).

by the way, mapper does not generate namespace in your xslt if your xsd file
does not contains targetNamespace declaration.


we will investigate if we can make the namespace generation optional and let
user to decide if they want namespace or not...


song.









Posttop
Minollo I.Subject: RE: XSD will not load into Mapper
Author: Minollo I.
Date: 03 Jul 2003 09:40 AM

>...
>I have a large repository of all kinds of different schemas for mapping
>purposes so I don't use namespaces to physical files (or virtual for that
>matter) as the documents coming through my system arrive from many
>different remote systems, some with or without namespaces, non-xml formats
>etc so it's easier to just not use them. This also takes me back to my
>previous post (xsi:noNamespaceSchemaLocation issue) which I haven't
>received a response for yet.

Chris,
no matter the origin of the XML documents you are using, if you choose
to use an XML Schema file as the source or destination of an XML to XML
mapping, Stylus Studio will assume that the information contained in the
XML Schema file(s) you are using is consistent for all the XML documents to
which you want to apply the transformation. So, if the XML Schema file you
are using contains a namespace declaration, or any other information which
is relevant to how the XML documents you have should be structured, XML to
XML mapper will use that information.

The rationale of adding the xsi:noNamespaceSchemaLocation to the target
document is that if you are targeting a specific schema, we assume you also
want a reference to that schema created in the transformed document. If
your target schema was defined for a specific namespace, then Stylus Studio
would add the proper xsi:schemaLocation entry to the generated document.

Hope this helps,
Minollo

   
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-2011 All Rights Reserved.