From j-usersaburgess@example.net  Tue May  3 03:57:46 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 89A8EBA1
	for <aburgess@example.net>; Tue,  3 May 2011 03:57:46 +0000 (UTC)
Received: (qmail 13368 invoked by uid 500); 3 May 2011 03:57:46 -0000
Delivered-To: aburgess@example.net
Received: (qmail 13326 invoked by uid 500); 3 May 2011 03:57:42 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Delivered-To: moderator for aburgess@example.net
Received: (qmail 81354 invoked by uid 99); 2 May 2011 22:11:17 -0000
X-ASF-Spam-Status: No, hits=2.2 required=5.0
	tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: aburgess@example.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1304374244; bh=NaGpvkPOelzjAzu7/c3a0W3NUZqPHhR/xiwwU4xxiTI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=iyUnyguYw7q/mXqAik7C5bLAWYhVKvWIuwEAes6mc5qVnhqVTVOXxH9avWxtc+zmsKaoCKWov5jf4D5SAVTYosAJ4ZIaXYiU8i6YbuX/jGkpursQw+9Z5z20mgMBo429V6b/OYzfTSO/aVw0wVlOVZ4A86UP6Xrh6u4gTsk4GVg=
DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
  b=XZ1dsHJmhzVaPToPF0rH5CEjDvsONTB6gpIL5ekbzCbsIHHX5+s89ktOHMlC+LgolTY2KlDt3ZurCyScwdZpH6oIqrkU9wYOVHVFHXbRVqcemtmMh7hnrzO+2JMze5wmOAgHlotP9afSgaSGuwcswscnw6nXvSUgnE3GQ2vn1h0=;
Message-ID: <aburgess@example.net>
X-YMail-OSG: DHXPF2kVM1kTsxpy117bA4t5Tkoa4_K_fwJOLGu5r231zG8
 oqIWnkPKxQM2jWfNvSkjb7MSP6UE.RwIFnRzkckmS1RCVqqteEX2VJI2jbRc
 5uzndwHd.tmu80sO_ZTmyLm0THjyfdcbdW.uBbVCTeKYD9zunnnbCm3_3DWS
 .2ucgExzCmB5e_5k9MvFy1Q3XegvJbcezs4ve.U1lF7kwgusmxNMsTO03LII
 AiU4bKww1SPMaduyWCWxOLh_htE1T2rcW0Hy_f9Ns6Urig7LDxLGx2mpCe53
 wpv6exkhc68Mp9lCc84CD3pEJTA1nOtOb_bysoR9qJPFfrBl0Wc8tI5edk2B
 f6jM6ajJH.ILN8czwyIi4AfRDIeMQAOWR2JFzx7bsh9Vcb5dombbvdJpzsyM
 9Fs9GuCuW
X-Mailer: YahooMailWebService/83.161.120.1559900
Date: Mon, 2 May 2011 15:10:44 -0700 (PDT)
From: Aziz Ibrahim <aburgess@example.net>
Reply-To: Aziz Ibrahim <aburgess@example.net>
Subject: Parsing attributes from non-schema namespaces 
To: "aburgess@example.net" <aburgess@example.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1023772612-1304374244=:40777"
X-Virus-Checked: Checked by ClamAV on apache.org

--0-1023772612-1304374244=:40777
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,=0AI have what I think is a very simple question with regards to the =
Xerces 2 Schema API. I need to parse an XML 1.0 schema that has embedded in=
 it attributes from another namespace. See valid schema below. You can see =
the namespace for instance documents is "my". But, I have also defined a "y=
ours" namespace and is used to further annotate the two elements "my:LineIt=
emName" and "my:LineItemNumber" with labels for each. You see how I have ad=
ded the yours:label attributes? When I parse this schema in Xerces 2, how c=
an I get to these "extra" attributes? It looks to me like Xerces 2 simply i=
ngores any attributes/elements that are not in the target or in the "xs" na=
mespace. Is this true? If so, what other options do I have?=0AThanks in adv=
ance!=0A=0A<xs:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" xmlns:m=
y=3D"my-own-namespace" targetNamespace=3D"my-own-namespace" xmlns:yours=3D"=
your-namespace" elementFormDefault=3D"qualified">=0A=A0=A0 =A0<xs:element n=
ame=3D"LineItemList" type=3D"my:LineItemListType"/>=A0=A0 =A0=0A=A0=A0 =A0<=
xs:complexType name=3D"LineItemListType">=0A=A0=A0 =A0=A0=A0 =A0<xs:sequenc=
e>=0A=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0<xs:element name=3D"LineItem" type=3D"my=
:LineItemType" maxOccurs=3D"unbounded"/>=0A=A0=A0 =A0=A0=A0 =A0</xs:sequenc=
e>=0A=A0=A0 =A0</xs:complexType>=0A=A0=A0 =A0<xs:complexType name=3D"LineIt=
emType">=0A=A0=A0 =A0=A0=A0 =A0<xs:sequence>=0A=A0=A0 =A0=A0=A0 =A0=A0=A0 =
=A0<xs:element name=3D"LineItemName" type=3D"xs:string" yours:label=3D"Name=
 Label"/>=A0=A0 =A0=A0=A0 =A0=0A=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0<xs:element n=
ame=3D"LineItemNumber" yours:label=3D"Number Label" type=3D"xs:string"/>=0A=
=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0</xs:sequence>=0A=A0=A0 =A0</xs:complexType>=
=0A</xs:schema>=0A=0A(A valid instance document for this is:=0A=0A<?xml ver=
sion=3D"1.0" encoding=3D"UTF-8"?>=0A<my:LineItemList xmlns:my=3D"my-own-nam=
espace">=0A=A0=A0=A0 <my:LineItem>=0A=A0=A0=A0 =A0=A0=A0 <my:LineItemName>X=
YZ Phone system</my:LineItemName>=0A=A0=A0=A0 =A0=A0=A0 <my:LineItemNumber>=
A12345</my:LineItemNumber>=0A=A0=A0=A0 </my:LineItem>=0A</my:LineItemList>=
=0A)=0A
--0-1023772612-1304374244=:40777
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:ti=
mes new roman, new york, times, serif;font-size:12pt">Hello,<br>I have what=
 I think is a very simple question with regards to the Xerces 2 Schema API.=
 I need to parse an XML 1.0 schema that has embedded in it attributes from =
another namespace. See valid schema below. You can see the namespace for in=
stance documents is "my". But, I have also defined a "yours" namespace and =
is used to further annotate the two elements "my:LineItemName" and "my:Line=
ItemNumber" with labels for each. You see how I have added the yours:label =
attributes? When I parse this schema in Xerces 2, how can I get to these "e=
xtra" attributes? It looks to me like Xerces 2 simply ingores any attribute=
s/elements that are not in the target or in the "xs" namespace. Is this tru=
e? If so, what other options do I have?<br>Thanks in advance!<br><br>&lt;xs=
:schema xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"
 xmlns:my=3D"my-own-namespace" targetNamespace=3D"my-own-namespace" xmlns:y=
ours=3D"your-namespace" elementFormDefault=3D"qualified"&gt;<br>&nbsp;&nbsp=
; &nbsp;&lt;xs:element name=3D"LineItemList" type=3D"my:LineItemListType"/&=
gt;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&lt;xs:complexType name=3D"Lin=
eItemListType"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xs:sequence=
&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xs:ele=
ment name=3D"LineItem" type=3D"my:LineItemType" maxOccurs=3D"unbounded"/&gt=
;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/xs:sequence&gt;<br>&nbsp;&n=
bsp; &nbsp;&lt;/xs:complexType&gt;<br>&nbsp;&nbsp; &nbsp;&lt;xs:complexType=
 name=3D"LineItemType"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xs:=
sequence&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&l=
t;xs:element name=3D"LineItemName" type=3D"xs:string" yours:label=3D"Name L=
abel"/&gt;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;&nbs=
p;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&lt;xs:element name=3D"LineItemNumber" yours:labe=
l=3D"Number Label" type=3D"xs:string"/&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbs=
p; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/xs:sequence&gt;<br>&nbsp;&nbsp; &nbsp;&lt;=
/xs:complexType&gt;<br>&lt;/xs:schema&gt;<br><br>(A valid instance document=
 for this is:<br><br>&lt;?xml version=3D"1.0" encoding=3D"UTF-8"?&gt;<br>&l=
t;my:LineItemList xmlns:my=3D"my-own-namespace"&gt;<br>&nbsp;&nbsp;&nbsp; &=
lt;my:LineItem&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;my:LineItem=
Name&gt;XYZ Phone system&lt;/my:LineItemName&gt;<br>&nbsp;&nbsp;&nbsp; &nbs=
p;&nbsp;&nbsp; &lt;my:LineItemNumber&gt;A12345&lt;/my:LineItemNumber&gt;<br=
>&nbsp;&nbsp;&nbsp; &lt;/my:LineItem&gt;<br>&lt;/my:LineItemList&gt;<br>)<b=
r><div></div></div></body></html>
--0-1023772612-1304374244=:40777--

From j-usersaburgess@example.net  Tue May  3 16:02:33 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 6D4262AE4
	for <aburgess@example.net>; Tue,  3 May 2011 16:02:33 +0000 (UTC)
Received: (qmail 63617 invoked by uid 500); 3 May 2011 16:02:33 -0000
Delivered-To: aburgess@example.net
Received: (qmail 63599 invoked by uid 500); 3 May 2011 16:02:32 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 63592 invoked by uid 99); 3 May 2011 16:02:32 -0000
Received: from minotaur.apache.org (HELO minotaur.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 16:02:32 +0000
Received: from localhost (HELO mail-wy0-f179.google.com) (83.161.120.155)
  (smtp-auth username mukulg, mechanism plain)
  by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 16:02:32 +0000
Received: by wyg36 with SMTP id 36so203022wyg.38
        for <aburgess@example.net>; Tue, 03 May 2011 09:02:30 -0700 (PDT)
Received: by 83.161.120.155 with SMTP id k56mr2156381wea.29.1304438550099; Tue,
 03 May 2011 09:02:30 -0700 (PDT)
MIME-Version: 1.0
Reply-To: aburgess@example.net
Received: by 83.161.120.155 with HTTP; Tue, 3 May 2011 09:02:10 -0700 (PDT)
In-Reply-To: <aburgess@example.net>
References: <aburgess@example.net>
From: Mukul Gandhi <aburgess@example.net>
Date: Tue, 3 May 2011 21:32:10 +0530
Message-ID: <aburgess@example.net>
Subject: Re: Parsing attributes from non-schema namespaces
To: aburgess@example.net
Content-Type: text/plain; charset=UTF-8

I think this is why Xerces synthetic annotations should be used for.

Here's a code snippet (using your sample schema as input) illustrating
how to use synthetic annotations,

XMLSchemaLoader xsLoader = new XMLSchemaLoader();
xsLoader.setFeature("http://apache.org/xml/features/generate-synthetic-annotations",
true);
XSModel xsModel = xsLoader.loadURI("lineItemSchema.xsd");
XSComplexTypeDecl typeDefn =
(XSComplexTypeDecl)xsModel.getTypeDefinition("LineItemType",
"my-own-namespace");
XSParticle particle1 =
(XSParticle)(((XSModelGroup)(typeDefn.getParticle()).getTerm())).getParticles().item(0);
XSAnnotation annotation1 = ((XSElementDecl)particle1.getTerm()).getAnnotation();

i.e we need to set the feature
"http://apache.org/xml/features/generate-synthetic-annotations" to
'true' to enable generation of synthetic annotations.

In this case, an attribute in non XML Schema namespace (here,
yours:label="Name Label") is rendered as XSAnnotation object (variable
annotation1 in above code snippet). If we'll serialize the annotation
object annotation1, we would get something like follows,

<xs:annotation yours:label="Name Label"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:my="my-own-namespace" xmlns:yours="your-namespace">
   <xs:documentation>SYNTHETIC_ANNOTATION</xs:documentation>
</xs:annotation>

Here's another workaround (just discovered this non standard &
undocumented method), for this requirement (in case you're willing to
make changes to schema document as suggested below),

i.e if you could specify the element declaration as follows (i.e write
a dummy/empty xs:annotation as child of xs:element),

<xs:element name="LineItemName" type="xs:string" yours:label="Name Label">
    <xs:annotation/>
</xs:element>

In this case, you don't have to specify the property
"http://apache.org/xml/features/generate-synthetic-annotations" (which
by default has value 'false').

Using the same code snippet as above, the annotation object
annotation1 would now look like as follows,

<xs:annotation yours:label="Name Label"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:my="my-own-namespace" xmlns:yours="your-namespace">

</xs:annotation>

This is now a real schema annotation, and it also has your string
annotation information yours:label="Name Label".

I hope this helps.

On Tue, May 3, 2011 at 3:40 AM, Aziz Ibrahim <aburgess@example.net> wrote:
> Hello,
> I have what I think is a very simple question with regards to the Xerces 2
> Schema API. I need to parse an XML 1.0 schema that has embedded in it
> attributes from another namespace. See valid schema below. You can see the
> namespace for instance documents is "my". But, I have also defined a "yours"
> namespace and is used to further annotate the two elements "my:LineItemName"
> and "my:LineItemNumber" with labels for each. You see how I have added the
> yours:label attributes? When I parse this schema in Xerces 2, how can I get
> to these "extra" attributes? It looks to me like Xerces 2 simply ingores any
> attributes/elements that are not in the target or in the "xs" namespace. Is
> this true? If so, what other options do I have?
> Thanks in advance!
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:my="my-own-namespace" targetNamespace="my-own-namespace"
> xmlns:yours="your-namespace" elementFormDefault="qualified">
>     <xs:element name="LineItemList" type="my:LineItemListType"/>
>     <xs:complexType name="LineItemListType">
>         <xs:sequence>
>             <xs:element name="LineItem" type="my:LineItemType"
> maxOccurs="unbounded"/>
>         </xs:sequence>
>     </xs:complexType>
>     <xs:complexType name="LineItemType">
>         <xs:sequence>
>             <xs:element name="LineItemName" type="xs:string"
> yours:label="Name Label"/>
>             <xs:element name="LineItemNumber" yours:label="Number Label"
> type="xs:string"/>
>             </xs:sequence>
>     </xs:complexType>
> </xs:schema>
>
> (A valid instance document for this is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <my:LineItemList xmlns:my="my-own-namespace">
>     <my:LineItem>
>         <my:LineItemName>XYZ Phone system</my:LineItemName>
>         <my:LineItemNumber>A12345</my:LineItemNumber>
>     </my:LineItem>
> </my:LineItemList>
> )
>





-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: aburgess@example.net
For additional commands, e-mail: aburgess@example.net


From j-usersaburgess@example.net  Tue May 24 00:23:36 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 633C64ACA
	for <aburgess@example.net>; Tue, 24 May 2011 00:23:36 +0000 (UTC)
Received: (qmail 20404 invoked by uid 500); 24 May 2011 00:23:36 -0000
Delivered-To: aburgess@example.net
Received: (qmail 20372 invoked by uid 500); 24 May 2011 00:23:35 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 20365 invoked by uid 99); 24 May 2011 00:23:35 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 00:23:35 +0000
X-ASF-Spam-Status: No, hits=-0.8 required=5.0
	tests=HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO lo.gmane.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 00:23:26 +0000
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <aburgess@example.net>)
	id 1QOfOn-0004Sq-Vn
	for aburgess@example.net; Tue, 24 May 2011 02:23:02 +0200
Received: from 83.161.120.155 ([83.161.120.155])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <aburgess@example.net>; Tue, 24 May 2011 02:23:01 +0200
Received: from rjotwani by 83.161.120.155 with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <aburgess@example.net>; Tue, 24 May 2011 02:23:01 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: aburgess@example.net
From: RJ <aburgess@example.net>
Subject: group references in sequence
Date: Tue, 24 May 2011 00:22:48 +0000 (UTC)
Lines: 1
Message-ID: <aburgess@example.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: aburgess@example.net
X-Gmane-NNTP-Posting-Host: sea.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 83.161.120.155 (Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C))
X-Virus-Checked: Checked by ClamAV on apache.org

Is there a way to identify group references in a sequence under a complex type.


---------------------------------------------------------------------
To unsubscribe, e-mail: aburgess@example.net
For additional commands, e-mail: aburgess@example.net


From j-usersaburgess@example.net  Tue May 24 03:52:38 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 47F606466
	for <aburgess@example.net>; Tue, 24 May 2011 03:52:38 +0000 (UTC)
Received: (qmail 85962 invoked by uid 500); 24 May 2011 03:52:37 -0000
Delivered-To: aburgess@example.net
Received: (qmail 85740 invoked by uid 500); 24 May 2011 03:52:37 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 85730 invoked by uid 99); 24 May 2011 03:52:35 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 03:52:35 +0000
X-ASF-Spam-Status: No, hits=-0.1 required=5.0
	tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO e4.ny.us.ibm.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 03:52:26 +0000
Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [83.161.120.155])
	by e4.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4O3V4DI025298
	for <aburgess@example.net>; Mon, 23 May 2011 23:31:04 -0400
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [83.161.120.155])
	by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4O3q3V5610542
	for <aburgess@example.net>; Mon, 23 May 2011 23:52:03 -0400
Received: from d01av02.pok.ibm.com (loopback [83.161.120.155])
	by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4O3q3Xr019803
	for <aburgess@example.net>; Tue, 24 May 2011 00:52:03 -0300
Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155])
	by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4O3q3sB019783
	for <aburgess@example.net>; Tue, 24 May 2011 00:52:03 -0300
In-Reply-To: <aburgess@example.net>
References: <aburgess@example.net>
Subject: Re: group references in sequence
X-KeepSent: C8C530AD:EF125FA1-8525789A:00148FDE;
 type=4; name=$KeepSent
To: aburgess@example.net
X-Mailer: Lotus Notes Release 8.0.2FP1 SHF149 July 17, 2009
Message-ID: <aburgess@example.net>
From: Michael Glavassevich <aburgess@example.net>
Date: Mon, 23 May 2011 23:52:01 -0400
X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 8.5.1FP5|September 29, 2010) at
 05/23/2011 23:52:02
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=0ABBF209DF87094E8f9e8a93df938690918c0ABBF209DF87094E"
Content-Disposition: inline
X-Virus-Checked: Checked by ClamAV on apache.org

--0__=0ABBF209DF87094E8f9e8a93df938690918c0ABBF209DF87094E
Content-type: text/plain; charset=US-ASCII

RJ <aburgess@example.net> wrote on 05/23/2011 08:22:48 PM:

> Is there a way to identify group references in a sequence under a
> complex type.

There is no schema component for a reference to a model group definition,
but you might be able to match it up with its model group by examining each
of the XSModelGroupDefinitions in the XSModel.

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: aburgess@example.net
> For additional commands, e-mail: aburgess@example.net

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: aburgess@example.net
E-mail: aburgess@example.net
--0__=0ABBF209DF87094E8f9e8a93df938690918c0ABBF209DF87094E
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p><tt>RJ &lt;aburgess@example.net&gt; wrote on 05/23/2011 08:22:48 PM:<br>
 <br>
&gt; Is there a way to identify group references in a sequence under a <br>
&gt; complex type.</tt><br>
<br>
<tt>There is no schema component for a reference to a model group definition, but you might be able to match it up with its model group by examining </tt><tt>each of the XSModelGroupDefinitions in the XSModel.</tt><br>
<tt><br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: aburgess@example.net<br>
&gt; For additional commands, e-mail: aburgess@example.net</tt><br>
<br>
<tt>Thanks.</tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: aburgess@example.net</tt><br>
<tt>E-mail: aburgess@example.net</tt><tt><br>
</tt></body></html>
--0__=0ABBF209DF87094E8f9e8a93df938690918c0ABBF209DF87094E--


From j-usersaburgess@example.net  Tue May 24 17:03:01 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 1586067D3
	for <aburgess@example.net>; Tue, 24 May 2011 17:03:01 +0000 (UTC)
Received: (qmail 3535 invoked by uid 500); 24 May 2011 17:03:00 -0000
Delivered-To: aburgess@example.net
Received: (qmail 3296 invoked by uid 500); 24 May 2011 17:02:59 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 3289 invoked by uid 99); 24 May 2011 17:02:59 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 17:02:59 +0000
X-ASF-Spam-Status: No, hits=-0.8 required=5.0
	tests=HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO lo.gmane.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 17:02:53 +0000
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <aburgess@example.net>)
	id 1QOv02-0004z6-8W
	for aburgess@example.net; Tue, 24 May 2011 19:02:30 +0200
Received: from 83.161.120.155 ([83.161.120.155])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <aburgess@example.net>; Tue, 24 May 2011 19:02:30 +0200
Received: from rjotwani by 83.161.120.155 with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <aburgess@example.net>; Tue, 24 May 2011 19:02:30 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: aburgess@example.net
From: RJ <aburgess@example.net>
Subject: Re: group references in sequence
Date: Tue, 24 May 2011 17:02:16 +0000 (UTC)
Lines: 19
Message-ID: <aburgess@example.net>
References: <aburgess@example.net> <aburgess@example.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: aburgess@example.net
X-Gmane-NNTP-Posting-Host: sea.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 83.161.120.155 (Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C))

Michael Glavassevich <mrglavas <at> ca.ibm.com> writes:

> 
> 
> RJ <rjotwani <at> dag.com> wrote on 05/23/2011 08:22:48 PM:
> > Is there a way to identify group references in a sequence under a 
> > complex type.

>There is no schema component for a reference to a model group definition, but 
>you might be able to match it up with its model group by examining each of the 
>XSModelGroupDefinitions in the XSModel.


The XSParticle under a sequence doesn't seem to be having the group name.
Is there a way to get the group name it is referencing?






---------------------------------------------------------------------
To unsubscribe, e-mail: aburgess@example.net
For additional commands, e-mail: aburgess@example.net


From j-usersaburgess@example.net  Tue May 24 17:28:27 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 9BFF06A8E
	for <aburgess@example.net>; Tue, 24 May 2011 17:28:27 +0000 (UTC)
Received: (qmail 58833 invoked by uid 500); 24 May 2011 17:28:27 -0000
Delivered-To: aburgess@example.net
Received: (qmail 58808 invoked by uid 500); 24 May 2011 17:28:27 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 58800 invoked by uid 99); 24 May 2011 17:28:27 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 17:28:27 +0000
X-ASF-Spam-Status: No, hits=-0.8 required=5.0
	tests=HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO lo.gmane.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 17:28:18 +0000
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <aburgess@example.net>)
	id 1QOvOe-0004MP-KD
	for aburgess@example.net; Tue, 24 May 2011 19:27:56 +0200
Received: from 83.161.120.155 ([83.161.120.155])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <aburgess@example.net>; Tue, 24 May 2011 19:27:56 +0200
Received: from rjotwani by 83.161.120.155 with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <aburgess@example.net>; Tue, 24 May 2011 19:27:56 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: aburgess@example.net
From: RJ <aburgess@example.net>
Subject: Differentiate between local global complex types and the ones from included schema
Date: Tue, 24 May 2011 17:27:44 +0000 (UTC)
Lines: 9
Message-ID: <aburgess@example.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: aburgess@example.net
X-Gmane-NNTP-Posting-Host: sea.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 83.161.120.155 (Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C))
X-Virus-Checked: Checked by ClamAV on apache.org

Is there a way to differentiate between local global complex types and the ones 
from included schemas

I use namesapce to differentiate between local global complex types and the 
ones from imported schemas

I couldn't figure out how to do it for included schemas.




---------------------------------------------------------------------
To unsubscribe, e-mail: aburgess@example.net
For additional commands, e-mail: aburgess@example.net


From j-usersaburgess@example.net  Wed May 25 03:38:18 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id C432146A5
	for <aburgess@example.net>; Wed, 25 May 2011 03:38:18 +0000 (UTC)
Received: (qmail 37336 invoked by uid 500); 25 May 2011 03:38:18 -0000
Delivered-To: aburgess@example.net
Received: (qmail 37314 invoked by uid 500); 25 May 2011 03:38:18 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 37307 invoked by uid 99); 25 May 2011 03:38:15 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 03:38:15 +0000
X-ASF-Spam-Status: No, hits=-0.1 required=5.0
	tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO e1.ny.us.ibm.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 03:38:06 +0000
Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [83.161.120.155])
	by e1.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4P3QN2i003979
	for <aburgess@example.net>; Tue, 24 May 2011 23:26:23 -0400
Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [83.161.120.155])
	by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4P3bdUb1253384
	for <aburgess@example.net>; Tue, 24 May 2011 23:37:43 -0400
Received: from d01av04.pok.ibm.com (loopback [83.161.120.155])
	by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4P3bd5D019870
	for <aburgess@example.net>; Tue, 24 May 2011 23:37:39 -0400
Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155])
	by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4P3bdUL019865
	for <aburgess@example.net>; Tue, 24 May 2011 23:37:39 -0400
In-Reply-To: <aburgess@example.net>
References: <aburgess@example.net> <aburgess@example.net> <aburgess@example.net>
Subject: Re: group references in sequence
X-KeepSent: 53328F83:6407A5A6-8525789B:0013C3CC;
 type=4; name=$KeepSent
To: aburgess@example.net
X-Mailer: Lotus Notes Release 8.0.2FP1 SHF149 July 17, 2009
Message-ID: <aburgess@example.net>
From: Michael Glavassevich <aburgess@example.net>
Date: Tue, 24 May 2011 23:37:38 -0400
X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 8.5.1FP5|September 29, 2010) at
 05/24/2011 23:37:38
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=0ABBF208DF80455C8f9e8a93df938690918c0ABBF208DF80455C"
Content-Disposition: inline
X-Virus-Checked: Checked by ClamAV on apache.org

--0__=0ABBF208DF80455C8f9e8a93df938690918c0ABBF208DF80455C
Content-type: text/plain; charset=US-ASCII

RJ <aburgess@example.net> wrote on 05/24/2011 01:02:16 PM:

> Michael Glavassevich <mrglavas <at> ca.ibm.com> writes:
>
> >
> >
> > RJ <rjotwani <at> dag.com> wrote on 05/23/2011 08:22:48 PM:
> > > Is there a way to identify group references in a sequence under a
> > > complex type.
>
> >There is no schema component for a reference to a model group
> definition, but
> >you might be able to match it up with its model group by examining
> each of the
> >XSModelGroupDefinitions in the XSModel.
>
>
> The XSParticle under a sequence doesn't seem to be having the group name.
> Is there a way to get the group name it is referencing?

I was suggesting that you try to match up the XSModelGroup from the
XSParticle with one from an XSModelGroupDefinition. Hopefully they are the
same XSModelGroup object, but it's possible that it's a copy.

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: aburgess@example.net
> For additional commands, e-mail: aburgess@example.net

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: aburgess@example.net
E-mail: aburgess@example.net
--0__=0ABBF208DF80455C8f9e8a93df938690918c0ABBF208DF80455C
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p><tt>RJ &lt;aburgess@example.net&gt; wrote on 05/24/2011 01:02:16 PM:<br>
 <br>
&gt; Michael Glavassevich &lt;mrglavas &lt;at&gt; ca.ibm.com&gt; writes:<br>
&gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; RJ &lt;rjotwani &lt;at&gt; dag.com&gt; wrote on 05/23/2011 08:22:48 PM:<br>
&gt; &gt; &gt; Is there a way to identify group references in a sequence under a <br>
&gt; &gt; &gt; complex type.<br>
&gt; <br>
&gt; &gt;There is no schema component for a reference to a model group <br>
&gt; definition, but <br>
&gt; &gt;you might be able to match it up with its model group by examining <br>
&gt; each of the <br>
&gt; &gt;XSModelGroupDefinitions in the XSModel.<br>
&gt; <br>
&gt; <br>
&gt; The XSParticle under a sequence doesn't seem to be having the group name.<br>
&gt; Is there a way to get the group name it is referencing?<br>
</tt><br>
<tt>I was suggesting that you try to match up the XSModelGroup from the XSParticle with one from an XSModelGroupDefinition. Hopefully they are the same XSModelGroup object, but it's possible that it's a copy.</tt><br>
<tt><br>
&gt; <br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: aburgess@example.net<br>
&gt; For additional commands, e-mail: aburgess@example.net</tt><br>
<br>
<tt>Thanks.</tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: aburgess@example.net</tt><br>
<tt>E-mail: aburgess@example.net</tt></body></html>
--0__=0ABBF208DF80455C8f9e8a93df938690918c0ABBF208DF80455C--


From j-usersaburgess@example.net  Wed May 25 03:42:42 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 8545246CA
	for <aburgess@example.net>; Wed, 25 May 2011 03:42:42 +0000 (UTC)
Received: (qmail 39047 invoked by uid 500); 25 May 2011 03:42:42 -0000
Delivered-To: aburgess@example.net
Received: (qmail 38927 invoked by uid 500); 25 May 2011 03:42:41 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 38920 invoked by uid 99); 25 May 2011 03:42:41 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 03:42:41 +0000
X-ASF-Spam-Status: No, hits=-0.1 required=5.0
	tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO e2.ny.us.ibm.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 03:42:33 +0000
Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [83.161.120.155])
	by e2.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4P3MA92005678
	for <aburgess@example.net>; Tue, 24 May 2011 23:22:10 -0400
Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [83.161.120.155])
	by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4P3gBZf104424
	for <aburgess@example.net>; Tue, 24 May 2011 23:42:11 -0400
Received: from d01av05.pok.ibm.com (loopback [83.161.120.155])
	by d01av05.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4P3gB2r000484
	for <aburgess@example.net>; Tue, 24 May 2011 23:42:11 -0400
Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155])
	by d01av05.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4P3gBs9000479
	for <aburgess@example.net>; Tue, 24 May 2011 23:42:11 -0400
In-Reply-To: <aburgess@example.net>
References: <aburgess@example.net>
Subject: Re: Differentiate between local global complex types and the ones from
 included schema
To: aburgess@example.net
X-Mailer: Lotus Notes Release 8.0.2FP1 SHF149 July 17, 2009
Message-ID: <aburgess@example.net>
From: Michael Glavassevich <aburgess@example.net>
Date: Tue, 24 May 2011 23:42:09 -0400
X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 8.5.1FP5|September 29, 2010) at
 05/24/2011 23:42:11
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=0ABBF208DF87B5FF8f9e8a93df938690918c0ABBF208DF87B5FF"
Content-Disposition: inline

--0__=0ABBF208DF87B5FF8f9e8a93df938690918c0ABBF208DF87B5FF
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: quoted-printable


RJ <aburgess@example.net> wrote on 05/24/2011 01:27:44 PM:

> Is there a way to differentiate between local global complex types
> and the ones from included schemas

No. I think I mentioned this before, but worth repeating... Xerces' XML=

Schema API provides a schema component centric view of an XML Schema. O=
ften
you can find ways to map back to XML schema document concepts, but that=

isn't possible in general.

> I use namesapce to differentiate between local global complex types a=
nd
the
> ones from imported schemas
>
> I couldn't figure out how to do it for included schemas.
>
> ---------------------------------------------------------------------=

> To unsubscribe, e-mail: aburgess@example.net
> For additional commands, e-mail: aburgess@example.net

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: aburgess@example.net
E-mail: aburgess@example.net=

--0__=0ABBF208DF87B5FF8f9e8a93df938690918c0ABBF208DF87B5FF
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline
Content-transfer-encoding: quoted-printable

<html><body>
<p><tt>RJ &lt;aburgess@example.net&gt; wrote on 05/24/2011 01:27:44 PM:<br>=

<br>
&gt; Is there a way to differentiate between local global complex types=
 <br>
&gt; and the ones from included schemas</tt><br>
<br>
<tt>No. I think I mentioned this before, but worth repeating... Xerces'=
 XML Schema API provides a schema component centric view of an XML Sche=
ma. Often you can find ways to map back to XML schema document concepts=
, but that isn't possible in general.</tt><br>
<tt><br>
&gt; I use namesapce to differentiate between local global complex type=
s and the <br>
&gt; ones from imported schemas<br>
&gt; <br>
&gt; I couldn't figure out how to do it for included schemas.<br>
&gt; <br>
&gt; ------------------------------------------------------------------=
---<br>
&gt; To unsubscribe, e-mail: aburgess@example.net<br>
&gt; For additional commands, e-mail: aburgess@example.net</t=
t><br>
<br>
<tt>Thanks.</tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: aburgess@example.net</tt><br>
<tt>E-mail: aburgess@example.net</tt></body></html>=

--0__=0ABBF208DF87B5FF8f9e8a93df938690918c0ABBF208DF87B5FF--


From j-usersaburgess@example.net  Wed May 25 07:27:27 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 347AD434E
	for <aburgess@example.net>; Wed, 25 May 2011 07:27:27 +0000 (UTC)
Received: (qmail 8047 invoked by uid 500); 25 May 2011 07:27:26 -0000
Delivered-To: aburgess@example.net
Received: (qmail 7805 invoked by uid 500); 25 May 2011 07:27:24 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 7798 invoked by uid 99); 25 May 2011 07:27:23 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 07:27:23 +0000
X-ASF-Spam-Status: No, hits=-0.7 required=5.0
	tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-vx0-f195.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 07:27:18 +0000
Received: by vxc40 with SMTP id 40so715920vxc.2
        for <aburgess@example.net>; Wed, 25 May 2011 00:26:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:from:date:message-id:subject:to
         :content-type;
        bh=w9CxrJy5djISjbFmHY7Qtr+yw7xfqJot/F73t6Y1ptI=;
        b=hoVksyOzshEWfsDxoVpaXoWHtydYvCtNinJn2AgpPrv/0EkdYv0HQdWxh4/u1Dfe4B
         pmLlpGNFnz7c8urwZ1btVHmZ7RFQZ4gaaG4bWxMPPt8W/Y7rrnHWCl12gkIwcY89oUVE
         rDwD+L+VijuTzFblrj7tZfl8ZDvVeck6SDAKw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:from:date:message-id:subject:to:content-type;
        b=np/RWdGfT72Qm55uS3AKtxfZBCbUajc/GxgJmrrsbqvSAxYt8JaZR0LxD6leaI2Ow9
         c5GP22dyCw9cUtUCNVf8NRJ8SWCo1gyoh3TwXPyl0MuFQO9lPfeeX44wdAIjK7/9cxqq
         gFwoVxCxR2zo2qQnrK8aJUxY8GAtQ29/wx3/8=
Received: by 83.161.120.155 with SMTP id ex5mr1296517vcb.203.1306308418112;
 Wed, 25 May 2011 00:26:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 83.161.120.155 with HTTP; Wed, 25 May 2011 00:26:38 -0700 (PDT)
From: Alan Egerton <aburgess@example.net>
Date: Wed, 25 May 2011 08:26:38 +0100
Message-ID: <aburgess@example.net>
Subject: Expansion of Entity nodes where document does not contain references
To: aburgess@example.net
Content-Type: text/plain; charset=ISO-8859-1

Dear all,

Following on from [a question][1] I posted on StackOverflow, I note
that after parsing an XML document any nodes returned by
DocumentType.getEntities() have children only if the entity has been
referenced.

Grateful if someone could help me understand why this is and, if at
all possible, how I can workaround it in order to lookup the
replacement text of entities which have _not_ been referenced.

Kind regards,
-- Alan

  [1]: http://stackoverflow.com/questions/6115972/obtain-xml-entity-replacement-text-from-dom-in-xerces

---------------------------------------------------------------------
To unsubscribe, e-mail: aburgess@example.net
For additional commands, e-mail: aburgess@example.net


From j-usersaburgess@example.net  Wed May 25 12:12:20 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id 9DC23404C
	for <aburgess@example.net>; Wed, 25 May 2011 12:12:20 +0000 (UTC)
Received: (qmail 74708 invoked by uid 500); 25 May 2011 12:12:20 -0000
Delivered-To: aburgess@example.net
Received: (qmail 74676 invoked by uid 500); 25 May 2011 12:12:20 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 74669 invoked by uid 99); 25 May 2011 12:12:20 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 12:12:20 +0000
X-ASF-Spam-Status: No, hits=-0.1 required=5.0
	tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO e5.ny.us.ibm.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 12:12:13 +0000
Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [83.161.120.155])
	by e5.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p4PBidDU029448
	for <aburgess@example.net>; Wed, 25 May 2011 07:44:39 -0400
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [83.161.120.155])
	by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4PCBn99117128
	for <aburgess@example.net>; Wed, 25 May 2011 08:11:51 -0400
Received: from d01av01.pok.ibm.com (loopback [83.161.120.155])
	by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4PCBnmH006023
	for <aburgess@example.net>; Wed, 25 May 2011 08:11:49 -0400
Received: from d25ml03.torolab.ibm.com (d25ml03.torolab.ibm.com [83.161.120.155])
	by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4PCBmPH006007
	for <aburgess@example.net>; Wed, 25 May 2011 08:11:49 -0400
In-Reply-To: <aburgess@example.net>
References: <aburgess@example.net>
Subject: Re: Expansion of Entity nodes where document does not contain references
X-KeepSent: 0BB4592B:EE0B5B8D-8525789B:00428E27;
 type=4; name=$KeepSent
To: aburgess@example.net
X-Mailer: Lotus Notes Release 8.0.2FP1 SHF149 July 17, 2009
Message-ID: <aburgess@example.net>
From: Michael Glavassevich <aburgess@example.net>
Date: Wed, 25 May 2011 08:11:48 -0400
X-MIMETrack: Serialize by Router on D25ML03/25/M/IBM(Release 8.5.1FP5|September 29, 2010) at
 05/25/2011 08:11:48
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=0ABBF208DFD108B78f9e8a93df938690918c0ABBF208DFD108B7"
Content-Disposition: inline

--0__=0ABBF208DFD108B78f9e8a93df938690918c0ABBF208DFD108B7
Content-type: text/plain; charset=US-ASCII

Hi Alan,

This is an old topic. Here is a response from 2004 [1] on the same subject.
It still applies now.

Thanks.

[1] http://markmail.org/message/oq3g26f3t2rbafdv

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: aburgess@example.net
E-mail: aburgess@example.net

Alan Egerton <aburgess@example.net> wrote on 05/25/2011 03:26:38 AM:

> Dear all,
>
> Following on from [a question][1] I posted on StackOverflow, I note
> that after parsing an XML document any nodes returned by
> DocumentType.getEntities() have children only if the entity has been
> referenced.
>
> Grateful if someone could help me understand why this is and, if at
> all possible, how I can workaround it in order to lookup the
> replacement text of entities which have _not_ been referenced.
>
> Kind regards,
> -- Alan
>
>   [1]: http://stackoverflow.com/questions/6115972/obtain-xml-entity-
> replacement-text-from-dom-in-xerces
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: aburgess@example.net
> For additional commands, e-mail: aburgess@example.net
--0__=0ABBF208DFD108B78f9e8a93df938690918c0ABBF208DFD108B7
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p><tt>Hi Alan,</tt><br>
<br>
<tt>This is an old topic. Here is a response from 2004 [1] on the same subject. It still applies now.</tt><br>
<br>
<tt>Thanks.</tt><br>
<br>
<tt>[1] <a href="http://markmail.org/message/oq3g26f3t2rbafdv">http://markmail.org/message/oq3g26f3t2rbafdv</a></tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: aburgess@example.net</tt><br>
<tt>E-mail: aburgess@example.net</tt><br>
<br>
<tt>Alan Egerton &lt;aburgess@example.net&gt; wrote on 05/25/2011 03:26:38 AM:<br>
<br>
&gt; Dear all,<br>
&gt; <br>
&gt; Following on from [a question][1] I posted on StackOverflow, I note<br>
&gt; that after parsing an XML document any nodes returned by<br>
&gt; DocumentType.getEntities() have children only if the entity has been<br>
&gt; referenced.<br>
&gt; <br>
&gt; Grateful if someone could help me understand why this is and, if at<br>
&gt; all possible, how I can workaround it in order to lookup the<br>
&gt; replacement text of entities which have _not_ been referenced.<br>
&gt; <br>
&gt; Kind regards,<br>
&gt; -- Alan<br>
&gt; <br>
&gt; &nbsp; [1]: <a href="http://stackoverflow.com/questions/6115972/obtain-xml-entity-">http://stackoverflow.com/questions/6115972/obtain-xml-entity-</a><br>
&gt; replacement-text-from-dom-in-xerces<br>
&gt; <br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: aburgess@example.net<br>
&gt; For additional commands, e-mail: aburgess@example.net<br>
</tt></body></html>
--0__=0ABBF208DFD108B78f9e8a93df938690918c0ABBF208DFD108B7--


From j-usersaburgess@example.net  Thu May 26 06:52:10 2011
Return-Path: <j-usersaburgess@example.net>
X-Original-To: aburgess@example.net
Delivered-To: aburgess@example.net
Received: from mail.apache.org (hermes.apache.org [83.161.120.155])
	by minotaur.apache.org (Postfix) with SMTP id D8CD768D7
	for <aburgess@example.net>; Thu, 26 May 2011 06:52:10 +0000 (UTC)
Received: (qmail 55884 invoked by uid 500); 26 May 2011 06:52:10 -0000
Delivered-To: aburgess@example.net
Received: (qmail 55791 invoked by uid 500); 26 May 2011 06:52:09 -0000
Mailing-List: contact aburgess@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:aburgess@example.net>
List-Unsubscribe: <mailto:aburgess@example.net>
List-Post: <mailto:aburgess@example.net>
List-Id: <j-users.xerces.apache.org>
Reply-To: aburgess@example.net
Delivered-To: mailing list aburgess@example.net
Received: (qmail 55784 invoked by uid 99); 26 May 2011 06:52:07 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2011 06:52:07 +0000
X-ASF-Spam-Status: No, hits=-0.7 required=5.0
	tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of aburgess@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-vw0-f51.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2011 06:52:02 +0000
Received: by vws20 with SMTP id 20so342532vws.38
        for <aburgess@example.net>; Wed, 25 May 2011 23:51:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:content-type;
        bh=r2usIn5jliFGlc9n109KbpI0gATdfe3Hczt5HWS264Y=;
        b=DO770jmPjz/zGWrjOfzUiQJSthCij58ppAuNWfu8CjlPsV4aXY778rUzcF2v730WFR
         jWBVLODFr64pI9VaFj2Bup1EXJCxPnyUCh/5wNk83S7MGouXYq16x3u0EBejcIRVKkbx
         NRyrzrUESShfoMfw82e7HnSoCEE+cAmc85tUg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        b=Y3zgffxR/HdpjW9ibnuw5ZlogI56bT4z2fa9EV9yzMzsX9JwWRBKhSU55ZGyd1o2vq
         OGFA6spNGFe4ICzHE+gePbV0hyQvtF+2WY+O15XUd+sGCPYlUbut4CGVTNV2rXi3pgFk
         v21FOl56Q29TPF1gLH1mGmlsnsaCEMalcMTYY=
Received: by 83.161.120.155 with SMTP id gh1mr160059vcb.238.1306392701130;
 Wed, 25 May 2011 23:51:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 83.161.120.155 with HTTP; Wed, 25 May 2011 23:51:21 -0700 (PDT)
In-Reply-To: <aburgess@example.net>
References: <aburgess@example.net> <aburgess@example.net>
From: Alan Egerton <aburgess@example.net>
Date: Thu, 26 May 2011 07:51:21 +0100
Message-ID: <aburgess@example.net>
Subject: Re: Expansion of Entity nodes where document does not contain references
To: aburgess@example.net
Content-Type: text/plain; charset=ISO-8859-1

Hi Michael,

On Wed, May 25, 2011 at 1:11 PM, Michael Glavassevich
<aburgess@example.net> wrote:
> This is an old topic. Here is a response from 2004 [1] on the same subject.
> It still applies now.
>
> Thanks.
>
> [1] http://markmail.org/message/oq3g26f3t2rbafdv

Thanks for pointing me towards that - very helpful; sorry that I
hadn't found it before posting!

I have quoted Andy's reply in answer[1] to my question on
StackOverflow.  Many thanks again.

Kind regards,
-- Alan

[1] http://stackoverflow.com/questions/6115972/obtain-xml-entity-replacement-text-from-dom-in-xerces/6134684#6134684

---------------------------------------------------------------------
To unsubscribe, e-mail: aburgess@example.net
For additional commands, e-mail: aburgess@example.net



{'source': 'Apache Software Foundation Public Mail Archives'}