RE: selectPath with FilterExpression using $this

2006-04-06 Thread Lawrence Jones
. (Univ.) Siegfried Baiz Sulzer GmbH Frankfurter Ring 162, D-80807 Muenchen Tel.: +49 89 31858-264 Fax : +49 89 31858-599 mailto:[EMAIL PROTECTED] -- Lawrence Jones wrote: Hi Siggi I had a try at this and it seemed to work to me

RE: Add custom ? ? tag.

2006-04-05 Thread Lawrence Jones
Hi Mikael Absolutely. Have a look at the API XmlCursor.insertProcInst().You can get a cursor from an XmlObject via the newCursor() method. Note that you need the cursor to be in the right place in the document before calling insertProcInst(). If you're new to XmlCursor have a look at the article

RE: selectPath with FilterExpression using $this

2006-04-04 Thread Lawrence Jones
: Which FUNCTION- rsp. FRAME-Nodes refer to given Signal? Which SIGNAL-Nodes are refererd by a given FRAME rsp. FUNCTION? By the way I've checked my classpath: It contains saxon8.jar but not saxon8-dom.jar. Thanks and Cheers, Siggi Lawrence Jones wrote: I too

RE: Inheritance by Restriction: found a Bug ?

2006-04-03 Thread Lawrence Jones
Hi Frank I'm not sure whether this was a bug or an old policy decision. But I agree that the code that currently gets generated does look at little odd in terms of usability and could be better. So I've raised a JIRA (see http://issues.apache.org/jira/browse/XMLBEANS-261) to track the issue and

RE: selectPath with FilterExpression using $this

2006-03-30 Thread Lawrence Jones
I too have had a go at this, but I too am not an XPath expert. First of all make sure you have _all of_ saxon8.jar and saxon8-dom.jar and xbean_xpath.jar (in addition to the normal xbean.jar and the JSR 173 jar) on your classpath. Not having saxon8-dom.jar can cause strange errors. Not having

RE: selectPath with FilterExpression using $this

2006-03-30 Thread Lawrence Jones
- From: Lawrence Jones Sent: Thursday, March 30, 2006 2:54 PM To: user@xmlbeans.apache.org Subject: RE: selectPath with FilterExpression using $this I too have had a go at this, but I too am not an XPath expert. First of all make sure you have _all of_ saxon8.jar and saxon8-dom.jar

RE: Help needed with mixed content...

2006-03-27 Thread Lawrence Jones
Hi Pavel The content model you are referring to is called a mixed content model. You specify this in your schema using the mixed=true attribute: either complexType mixed=true /complexType Or complexType complexContent mixed=true /complexContent /complexType See

RE: generated faults java names

2006-03-27 Thread Lawrence Jones
Hi Pat Hmmm. Let me describe it a bit and we can go from there. First of all XmlBeans is not a WSDL-based tool. It is a schema-based tool. Since a WSDL can contain a schema in its types section there is extra code in XmlBeans such that you can pass in a WSDL document to scomp (or the ant task).

RE: generationg bean from schema with different name

2006-03-16 Thread Lawrence Jones
Hi DM It's arguable. I would say it's probably a small bug - and either way it affects what I said to Pat so I've logged it in the JIRA. But having said that the results look fairly minor to me. The difference between your schema and Pat's is that you are using an anonymous inner type (which is

RE: Schema generator not generating certain classes.

2006-03-14 Thread Lawrence Jones
. It is this OrderDetails object that I am looking to find as without it I have no way to get or set any of the elements contained within the OrderDetails part of the xml message. Thanks again for your help so far. Regards, Eamonn Lawrence Jones wrote: Hi EamonnI tried out your schema below and it worked for me

RE: generationg bean from schema with different name

2006-03-10 Thread Lawrence Jones
TestX. Thanks a lot. Pat Lawrence Jones wrote: Hi all Alex is quite right about .xsdconfig, and his example will work fine but note it will change the _/package name/_ of all generated beans for that namespace. If you wanted to change the class name of the generated bean

RE: Schema generator not generating certain classes.

2006-03-10 Thread Lawrence Jones
Hi Eamonn I tried out your schema below and it worked for me. The OrderDetails interface was generated as an inner interface on Order which was itself an inner interface of OrderDocument. Similarly for the impl classes. I believe the rule is that global elements/types are generated as separate

RE: substituting simple types

2006-03-09 Thread Lawrence Jones
with the use of basetypes and thats definitly out of my reach. Is there any solution to this? Ramin Am Fr 03.03.2006 20:03 schrieb Lawrence Jones [EMAIL PROTECTED]: Hi Ramin You can substitute even simple types - David Bau, one of the original designers

RE: generationg bean from schema with different name

2006-03-09 Thread Lawrence Jones
Hi all Alex is quite right about .xsdconfig, and his example will work fine but note it will change the _package name_ of all generated beans for that namespace. If you wanted to change the class name of the generated bean then that too is supported via .xsdconfig but this time using

RE: substituting simple types

2006-03-08 Thread Lawrence Jones
. Is there any solution to this? Ramin Am Fr 03.03.2006 20:03 schrieb Lawrence Jones [EMAIL PROTECTED]: Hi Ramin You can substitute even simple types - David Bau, one of the original designers of XmlBeans, thought of this (it's discussed in 3 articles called The Design of XMLBeans parts 1

RE: [2.0] validation

2006-03-03 Thread Lawrence Jones
Hi all Well firstly there's a bug in the message here. In your case the message should read: cvc-maxLength-valid.1.1: string length (9) is greater than maxLength facet (2) for 'yourType' where yourType is QName of the schema type causing the problem. This would be far more helpful and was

RE: Default attribute value and serialization

2006-03-03 Thread Lawrence Jones
Hi Artem Can you send the code you are using to create your document please? Cheers, Lawrence From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 9:14 AM To: user@xmlbeans.apache.org Subject: Default attribute value and serialization

RE: substituting simple types

2006-03-03 Thread Lawrence Jones
Hi Ramin You can substitute even simple types - David Bau, one of the original designers of XmlBeans, thought of this (it's discussed in 3 articles called The Design of XMLBeans parts 1, 2 and 3 - there are links to these articles at http://xmlbeans.apache.org/resources/index.html). To

RE: [2.0] validation

2006-03-03 Thread Lawrence Jones
is: error.getCursorLocation().getDomNode() On 3/3/06, Lawrence Jones [EMAIL PROTECTED] wrote: Hi all Well firstly there's a bug in the message here. In your case the message should read: cvc-maxLength-valid.1.1: string length (9) is greater than maxLength facet (2) for 'yourType' where yourType

RE: XmlValueDisconnectedException: what does it mean?

2006-02-21 Thread Lawrence Jones
Hi Graham XmlBeans generates XmlObjects with getters and setters that sit on top of an XML store which contains XML in a token based form (this is different from most approaches where the values returned by the getters are stored directly in the object as instance variables). An

RE: solution to Saxon 8.1.1 dependency saxon namespaces

2006-02-16 Thread Lawrence Jones
Hey all There have been various mentions on the mailing lists of not being able to use the newer version of Saxon. As of the checkin below (378309) Radu committed for me an update that changes XmlBeans' build process to download and use SaxonB-8.6.1 instead of SaxonB-8.1 (which is what we were

RE: Need help with substitutionGroup

2006-02-09 Thread Lawrence Jones
Hi Vlad Good catch. The fact that insertNewExpression(0) does not insert at the 0th position in this case is another bug. Radu has checked in the fix for that (but not for the previous bugs on this thread) at SVN# 376503. Unfortunately the fix was to the code-generation code and hence

RE: Need help with substitutionGroup

2006-02-06 Thread Lawrence Jones
it not to put type=Apply? Thanks, Vlad Lawrence Jones [EMAIL PROTECTED] wrote: Hi Vlad I’m a little confused over exactly what you’re trying to do. Substitution groups define elements which can replace other elements – therefore I’m not sure what

RE: Need help with substitutionGroup

2006-02-06 Thread Lawrence Jones
, Lawrence From: Lawrence Jones Sent: Monday, February 06, 2006 11:06 AM To: 'user@xmlbeans.apache.org'; '[EMAIL PROTECTED]' Subject: RE: Need help with substitutionGroup Hi Vlad I wouldn’t use changeName() unless you know exactly what you are doing

RE: xml delimiters

2006-02-01 Thread Lawrence Jones
Hi David Thanks for the vote of confidence :-) By using insertChars() you are telling XmlBeans that you want to insert text. To insert text which includes a '' character the XML spec insists that the '' character _must_ be translated into lt; (see http://www.w3.org/TR/REC-xml/ section 2.4 and

RE: xsdconfig

2006-02-01 Thread Lawrence Jones
Hi David You can change both package and class names (and do other useful things such as ensure that your generated XmlBeans implement a user-supplied interface) using an xsdconfig file - see, for instance, the article at http://dev2dev.bea.com/pub/a/2004/11/Configuring_XMLBeans.html for details

RE: xsdconfig

2006-02-01 Thread Lawrence Jones
defined the class name conversion incorrectly? -Original Message- From: Lawrence Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 2:49 PM To: user@xmlbeans.apache.org Subject: RE: xsdconfig Hi David You can change both package and class names (and do other

RE: Source Generation - ignored default values in XSD

2006-01-26 Thread Lawrence Jones
XmlBeans keeps this sort of information in the .xsb files that it generates rather than in annotations on the Java. However there is a way to get to it from the Java. Suppose you've generated MyElementDocument.class from an element called myElement in targetNamespace http://myNamespace/test.

RE: SchemaTypeSystem not generated

2006-01-25 Thread Lawrence Jones
Hi Johann By setting the srconly attribute to true you are generating only source files. In order to get generated class files (and .xsb files which are XmlBeans' way of storing the schema information) you'll need to do something like the following: target name=compileSchema xmlbean

RE: Ignoring a comment

2006-01-20 Thread Lawrence Jones
Hi Richard What you've described, ? ... ?, is not a comment - comments have the form !-- your comment here -- Instead it's what's called a processing instruction (or procinst for short). Having said that I'm not sure why XmlBeans would be objecting to a procinst either. Can you attach the

RE: svn repo

2006-01-19 Thread Lawrence Jones
It seems like you got what you wanted elsewhere but just for everyone else's benefit. To get the most current source code you would do: svn co http://svn.apache.org/repos/asf/xmlbeans/trunk/ If you specifically want the code as of 2.1.0 then you should svn update to revision 330131 (this

RE: solution to Saxon 8.1.1 dependency saxon namespaces

2006-01-19 Thread Lawrence Jones
Hi Marius I'm sorry about the delay. I will try and take a look at this when I get a chance but unfortunately I am not an expert (by a long way) on this area of the code so I will need quite a while to familiarize myself with it. Cheers, Lawrence -Original Message- From: Marius

RE: Multiple Namespaces in an XSD with XML Beans

2005-12-21 Thread Lawrence Jones
Hi Richard What you want is fine and is supported. However, in your instance doc declaring the attribute xmlns:tns=http://infor.com/FactsCodeData in your Response element does nothing other than map the prefix tns to the namespace http://infor.com/FactsCodeData. It does not change the

RE: scomp problem with complextype and simplecontent

2005-12-19 Thread Lawrence Jones
Hi Holger There are a couple of problems here. One is that the error message is a bit misleading and leads you to think that there's some problem with the type definition (in your case typeMLSTRING00250) when in fact it's a problem with the _use_ of that type. The second problem is that I

RE: Illegal characters, can xmlbeans be forgiving?

2005-12-16 Thread Lawrence Jones
doc for setCharterEncoding but couldn’t find The supported encoding types. In other words which encodings are allowed in the Function setCharacterEncoding(encoding); ? Cheers / Christophe -Original Message- From: Lawrence Jones [mailto:[EMAIL PROTECTED] Sent: 16 Disember 2005

RE: scomp problem with complextype and simplecontent

2005-12-16 Thread Lawrence Jones
Hi Holger Can you expand on this a bit? Is your complex type definition for typeMLSTRING00050 at the top level? Or put another way, what is surrounding your definition for typeMLSTRING00050? And what is at line 3681 of your schema bmecat_2005.xsd? It looks like something is using

RE: Illegal characters, can xmlbeans be forgiving?

2005-12-15 Thread Lawrence Jones
Hi Christophe It's very unlikely that the characters are the problem - all Unicode characters are allowed in XML - see e.g. http://www.xml.com/axml/testaxml.htm (section 2.2) and hence in XmlBeans. What is more likely is that the characters are not encoded (as bytes) in the way XmlBeans

RE: problem concerning version number in targetNamespace

2005-12-09 Thread Lawrence Jones
It may be worth mentioning that you can use xsdconfig files to override the default mapping from a given namespace to a package name and pick anything you want. (Although the package name you pick obviously has to be a valid Java package name - so you can't have just numbers). You will then have

RE: NPE running scomp

2005-12-09 Thread Lawrence Jones
Hi Mike Could you post the schema and the exact command line youre invoking when you see this? I think that would allow easier investigation. Cheers, Lawrence From: Mike Skells [mailto:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 8:42 AM To:

RE: Attributes and NameSpaces

2005-12-09 Thread Lawrence Jones
Hi Richard I think youre running into the infamous elementFormDefault=qualified | unqualified issue. If you dont put an elementFormDefault attribute in the schema element of your schema the default is elementFormDefault=unqualified. This means that when you refer to non-global

RE: NPE running scomp

2005-12-09 Thread Lawrence Jones
\src -javasource 1.5 -mx 500m e:\projects\xmlbeansgenerated\schemas for completeness java version 1.5.0_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode) Mike From: Lawrence Jones [mailto:[EMAIL

RE: semi-related schema question

2005-11-03 Thread Lawrence Jones
Hi Kevin Schema doesn't allow multiple inheritance i.e. when you do restriction base=XXX or extension base=XXX there is only 1 XXX. So I don''t think there's any way to immediately inherit both Type1 and Type2. Also all causes problems. You are not allowed to put one all inside another all

RE: scomp issues

2005-10-27 Thread Lawrence Jones
Try adding C:\Java\jdk1.5.0_05\bin to the _start_ of your PATH variable. Cheers, Lawrence -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 4:17 PM To: user@xmlbeans.apache.org Subject: scomp issues I've recently been

RE: Key/value detection

2005-10-11 Thread Lawrence Jones
I am looking to build some UI tools to manage some documents that we use internally I think that I will have to scan all of the document and build these reverse lookups. Mike From: Lawrence Jones [mailto:[EMAIL PROTECTED] Sent: 10 October 2005

RE: Key/value detection

2005-10-10 Thread Lawrence Jones
Hi Mike The SchemaLocalElement interface (and hence SchemaGlobalElement too since it inherits from SchemaLocalElement) has a getIdentityConstraints() API which returns an array of SchemaIdentityConstraint objects which I think should be helpful to you. You can navigate to an object

RE: Re-Generating schema from the generated code

2005-10-04 Thread Lawrence Jones
There is also programmatic access to an object model representing the schema. From any generated bean, say a class called Abc, you can call Abc.type.getTypeSystem() This returns a SchemaTypeSystem on which you can execute all sorts of methods concerning the contents of the schema. Cheers,

RE: dc

2005-09-29 Thread Lawrence Jones
Hi Enrico I don't think there's anything technically wrong with the output the way you've put it below? Prefixes are not part of the infoset and hence are not currently retained (you could easily have clashes where people have used the same prefix in 2 different schemas to mean 2 different

RE: parsing a document with no namespace

2005-09-28 Thread Lawrence Jones
Hi Dan I think XmlOptions.setLoadSubstituteNamespaces() is what you want. The comments on that method indicate that passing in the same map that you're currently using should work. Cheers, Lawrence -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dan Durkin Sent:

RE: elementFormDefault=unqualified not generated unqualified elements....

2005-09-26 Thread Lawrence Jones
Title: Message Hi Ray elementFormDefault=qualified affects only those elements which are local (i.e. declared within the context of another element or type), not those which are global (i.e. declared at the top level just within schema). See http://www.w3.org/TR/xmlschema-1/ section

RE: elementFormDefault=unqualified not generated unqualified elements....

2005-09-26 Thread Lawrence Jones
() would achieve this affect, but it didn't seem to do the trick. Any ideas? Thanks again for your help. -Ray -Original Message- From: Lawrence Jones [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 3:15 PM To: user@xmlbeans.apache.org Subject

RE: Anonymous Elements

2005-09-26 Thread Lawrence Jones
Hi Birch The bar element isnt so much anonymous as local. There is a way of getting to local elements annotations (and hence appInfo elements) but it is not altogether obvious. A JIRA has been raised to look at making it simpler to get to such annotations

RE: Trying to use XMLBeans 2.0 and appinfo

2005-08-26 Thread Lawrence Jones
Hi Ian I think the following thread the user mailing list on 7/19/05 - http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200507.mbox/%3c4B [EMAIL PROTECTED] will help you. Cheers, Lawrence -Original Message- From: Butt, Ian [mailto:[EMAIL PROTECTED] Sent: Friday, August 26,

RE: newbie need help

2005-08-19 Thread Lawrence Jones
Hi Yixing You can use the XmlCursor to insert attributes. Use the cursor to navigate to the element on which you wish to add the attributes. After that do something like the following: QName attQN = new QName(http://www.w3.org/2001/XMLSchema-instance, noNamespaceSchemaLocation,

RE: xmlbeans ant task

2005-08-16 Thread Lawrence Jones
Hi all I'm going to submit a patch that will update the documentation to include jsr173_api.jar in the classpath. The UnsupportedClassVersionError is odd - the only circumstance when you would get that appears to me to be if you had already compiled

RE: xmlbeans ant task

2005-08-16 Thread Lawrence Jones
Here's the patch to the docs I was referring to below. Cheers, Lawrence -Original Message- From: Lawrence Jones Sent: Tuesday, August 16, 2005 10:07 AM To: 'user@xmlbeans.apache.org' Subject: RE: xmlbeans ant task Hi all I'm going to submit a patch that will update

RE: xmlbeans ant task

2005-08-16 Thread Lawrence Jones
Apologies. I updated the taskdef tasks but not the xmlbean tasks. Here's a new patch for the docs. Please ignore the previous one. Cheers, Lawrence -Original Message- From: Lawrence Jones Sent: Tuesday, August 16, 2005 2:41 PM To: user@xmlbeans.apache.org Subject: RE: xmlbeans ant

RE: ClassCastException

2005-08-03 Thread Lawrence Jones
To me it looks as though it's trying to cast something which has a namespace to something that doesn't (and therefore ends up in the noNamespace package). It could have something to do with your elementFormDefault setting. Could I ask you to attach your schema so I can replicate the issue?

RE: Generated code question

2005-08-02 Thread Lawrence Jones
Hi Niklas The TypeSystemHolder class is a generated class which is the link between the Java (.class) world and the compiled schema (.xsb) world. It is output in the binary output directory (whatever you specify with the d flag to scomp) and is not output if you specify -srconly.

RE: Problems with namespace prefixes in version 2

2005-05-24 Thread Lawrence Jones
Hi Jim I can answer your first question. I'll have to leave someone else to answer your second. Your schema defines a targetNamespace of http://www.aptas.com/ontology;. datafeed is defined as a top-level (i.e. global) element. This means that instance documents need to refer to that element

RE: Namespace prefix throws spanner in works

2005-05-23 Thread Lawrence Jones
the second change we have to make to the schema, which points a finger at the WorldDAB committee who wrote it. I did email them when I had to make the first change but received no reply. Oh well. Thanks for the help :) Adam -Original Message- From: Lawrence Jones [mailto

RE: Namespace prefix throws spanner in works

2005-05-23 Thread Lawrence Jones
the schema again? In my current set-up in Eclipse, I am certain that the app is not accessing the schemas once running. Thanks Adam -Original Message- From: Lawrence Jones [mailto:[EMAIL PROTECTED] Sent: 20 May 2005 17:44 To: user@xmlbeans.apache.org Subject: RE