You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Jonathan Coogan <Jo...@Attachmate.com> on 2009/04/16 21:36:02 UTC

Question about xpath extensions

Hi.  I have a question about the "insert-as-first-into" and
"insert-as-last-into" Xpath extensions.
 
I get a selectionFailure if I try to insert a child into a parent that
does not yet contain other children.  I'm wondering if this was done on
purpose for some reason, or if this is a bug.
 
As an example, say I have the following elements/types:
 
   <element name="RecordSet" type="tns:RecordSetType"/> 
    <complexType name="RecordSetType">
        <sequence>
            <element maxOccurs="unbounded" minOccurs="0"
ref="tns:Record"/>
        </sequence>
    </complexType>
    
    <element name="Record" type="tns:RecordType"/>
     <complexType name="RecordType">
        <sequence>
            <element maxOccurs="1" minOccurs="1" name="SomeValue"
type="string"/>
            <element maxOccurs="1" minOccurs="1" name="AnotherValue"
type="string"/>
        </sequence>
    </complexType>
 
So RecordSet can contain 0 or more Records.  If I try to insert a Record
into an empty RecordSet (0 Records) I get a selectionFailure.  I have to
initialize the RecordSet variable with at least one dummy Record before
it will work.
 
Comments?
 
Thanks.
-Jon

Re: Question about xpath extensions

Posted by Wenfeng ZHAO <zh...@gmail.com>.
Oh, I'm sorry that in my previous mail the WSDL piece isn't the
correct one related to the BPEL scripts. The correct one should be:
<element name="BookSearchResponse">
	<complexType>
		<sequence>
			<element maxOccurs="unbounded" minOccurs="0" name="result">
				<complexType>
					<sequence>
						<element name="title" type="string"/>
						<element name="author" type="string"/>
						<element name="publishDate" type="string"/>
						<element name="amazonRank" type="string"/>
					</sequence>
				</complexType>
			</element>
		</sequence>
	</complexType>
</element>
<message name="BookSearchOutput">
	<part element="tns:BookSearchResponse" name="body"/>
</message>

Sorry for bothering.

Regards
Wenfeng
------------------
http://www.bupt.edu.cn


On Fri, Apr 17, 2009 at 8:57 AM, Wenfeng ZHAO <zh...@gmail.com> wrote:
> Hi Jonathan, I've also used "ode:insert-as-last-into()" in a similar
> case ant it works as good as expected.
> My BPEL script:
>    <assign>
>      <copy>
>        <from>
>          <literal>
>            <s0_tns:BookSearchResponse />
>          </literal>
>        </from>
>        <to>$output0.body</to>
>      </copy>
>    </assign>
>    <assign>
>      <copy>
>        <from>
>          <literal>
>          <s0_tns:result >
>            <s0_tns:title >
>            </s0_tns:title>
>            <s0_tns:author >
>            </s0_tns:author>
>            <s0_tns:publishDate >
>            </s0_tns:publishDate>
>            <s0_tns:amazonRank >
>            </s0_tns:amazonRank>
>          </s0_tns:result>
>          </literal>
>        </from>
>        <to variable='_elem1'/>
>      </copy>
>    </assign>
>
>    <forEach counterName='_i5' parallel='no'>
>      <startCounterValue>1</startCounterValue>
>      <finalCounterValue>count($_ds1/inner:record)</finalCounterValue>
>      <scope>
>        <assign>
>          <copy>
>            <from
> expressionLanguage='urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0'>ode:insert-as-last-into($output0.body,
> $_elem1)</from>
>            <to>$output0.body</to>
>          </copy>
>        </assign>
>      </scope>
>    </forEach>
>
> And the WSDL pieces:
>                        <element name="searchBookResponse">
>                                <complexType>
>                                        <sequence>
>                                                <element maxOccurs="unbounded" minOccurs="0" name="result">
>                                                        <complexType>
>                                                                <sequence>
>                                                                        <element name="amazonRank" type="nonNegativeInteger"/>
>                                                                        <element name="price" type="string"/>
>                                                                        <element name="publishDate" type="date"/>
>                                                                        <element name="title" type="string"/>
>                                                                        <element name="publisher" type="string"/>
>                                                                        <element name="detailUrl" type="anyURI"/>
>                                                                        <element name="author" type="string" maxOccurs="unbounded"/>
>                                                                </sequence>
>                                                        </complexType>
>                                                </element>
>                                        </sequence>
>                                </complexType>
>                        </element>
>                </schema>
>        </types>
>
>        <message name="searchBookOutput">
>                <part element="tns:searchBookResponse" name="body"/>
>        </message>
>
> Hope it useful to you.
>
>
> Regards
> Wenfeng
> -------------------
> http://www.bupt.edu.cn
>
>
> On Fri, Apr 17, 2009 at 3:36 AM, Jonathan Coogan
> <Jo...@attachmate.com> wrote:
>> Hi.  I have a question about the "insert-as-first-into" and
>> "insert-as-last-into" Xpath extensions.
>>
>> I get a selectionFailure if I try to insert a child into a parent that
>> does not yet contain other children.  I'm wondering if this was done on
>> purpose for some reason, or if this is a bug.
>>
>> As an example, say I have the following elements/types:
>>
>>   <element name="RecordSet" type="tns:RecordSetType"/>
>>    <complexType name="RecordSetType">
>>        <sequence>
>>            <element maxOccurs="unbounded" minOccurs="0"
>> ref="tns:Record"/>
>>        </sequence>
>>    </complexType>
>>
>>    <element name="Record" type="tns:RecordType"/>
>>     <complexType name="RecordType">
>>        <sequence>
>>            <element maxOccurs="1" minOccurs="1" name="SomeValue"
>> type="string"/>
>>            <element maxOccurs="1" minOccurs="1" name="AnotherValue"
>> type="string"/>
>>        </sequence>
>>    </complexType>
>>
>> So RecordSet can contain 0 or more Records.  If I try to insert a Record
>> into an empty RecordSet (0 Records) I get a selectionFailure.  I have to
>> initialize the RecordSet variable with at least one dummy Record before
>> it will work.
>>
>> Comments?
>>
>> Thanks.
>> -Jon
>>
>

Re: Question about xpath extensions

Posted by Wenfeng ZHAO <zh...@gmail.com>.
Hi Jonathan, I've also used "ode:insert-as-last-into()" in a similar
case ant it works as good as expected.
My BPEL script:
    <assign>
      <copy>
        <from>
          <literal>
            <s0_tns:BookSearchResponse />
          </literal>
        </from>
        <to>$output0.body</to>
      </copy>
    </assign>
    <assign>
      <copy>
        <from>
          <literal>
          <s0_tns:result >
            <s0_tns:title >
            </s0_tns:title>
            <s0_tns:author >
            </s0_tns:author>
            <s0_tns:publishDate >
            </s0_tns:publishDate>
            <s0_tns:amazonRank >
            </s0_tns:amazonRank>
          </s0_tns:result>
          </literal>
        </from>
        <to variable='_elem1'/>
      </copy>
    </assign>

    <forEach counterName='_i5' parallel='no'>
      <startCounterValue>1</startCounterValue>
      <finalCounterValue>count($_ds1/inner:record)</finalCounterValue>
      <scope>
        <assign>
          <copy>
            <from
expressionLanguage='urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0'>ode:insert-as-last-into($output0.body,
$_elem1)</from>
            <to>$output0.body</to>
          </copy>
        </assign>
      </scope>
    </forEach>

And the WSDL pieces:
			<element name="searchBookResponse">
				<complexType>
					<sequence>
						<element maxOccurs="unbounded" minOccurs="0" name="result">
							<complexType>
								<sequence>
									<element name="amazonRank" type="nonNegativeInteger"/>
									<element name="price" type="string"/>
									<element name="publishDate" type="date"/>
									<element name="title" type="string"/>
									<element name="publisher" type="string"/>
									<element name="detailUrl" type="anyURI"/>
									<element name="author" type="string" maxOccurs="unbounded"/>
								</sequence>
							</complexType>
						</element>
					</sequence>
				</complexType>
			</element>
		</schema>
	</types>

	<message name="searchBookOutput">
		<part element="tns:searchBookResponse" name="body"/>
	</message>

Hope it useful to you.


Regards
Wenfeng
-------------------
http://www.bupt.edu.cn


On Fri, Apr 17, 2009 at 3:36 AM, Jonathan Coogan
<Jo...@attachmate.com> wrote:
> Hi.  I have a question about the "insert-as-first-into" and
> "insert-as-last-into" Xpath extensions.
>
> I get a selectionFailure if I try to insert a child into a parent that
> does not yet contain other children.  I'm wondering if this was done on
> purpose for some reason, or if this is a bug.
>
> As an example, say I have the following elements/types:
>
>   <element name="RecordSet" type="tns:RecordSetType"/>
>    <complexType name="RecordSetType">
>        <sequence>
>            <element maxOccurs="unbounded" minOccurs="0"
> ref="tns:Record"/>
>        </sequence>
>    </complexType>
>
>    <element name="Record" type="tns:RecordType"/>
>     <complexType name="RecordType">
>        <sequence>
>            <element maxOccurs="1" minOccurs="1" name="SomeValue"
> type="string"/>
>            <element maxOccurs="1" minOccurs="1" name="AnotherValue"
> type="string"/>
>        </sequence>
>    </complexType>
>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record
> into an empty RecordSet (0 Records) I get a selectionFailure.  I have to
> initialize the RecordSet variable with at least one dummy Record before
> it will work.
>
> Comments?
>
> Thanks.
> -Jon
>

RE: Question about xpath extensions

Posted by Jonathan Coogan <Jo...@Attachmate.com>.
See ODE-582.  I don't think I have permission to assign issues.
 
Thanks for looking at this.
-Jon

________________________________

From: Karthick Sankarachary [mailto:sankarachary@intalio.com] 
Sent: Thursday, April 16, 2009 3:42 PM
To: Jonathan Coogan
Cc: user@ode.apache.org
Subject: Re: Question about xpath extensions


Yes, please go ahead and create a JIRA issue, attach your test process
and assign it to me.


On 4/16/09, Jonathan Coogan <Jo...@attachmate.com> wrote: 

	Hmmm.. I'm still getting the selectionFailure.
	
	I should note that I get the selectionFailure on both
insert-as-first-into
	and insert-as-last-into..
	
	I'd be happy to write this up and/or submit a test process if
that would
	help.
	-Jon
	
	
	
	On 4/16/09 2:21 PM, "Jon Coogan"
<Jo...@attachmate.com> wrote:
	
	> Sure thing.  I'll do this and get back to you.
	>
	> Thanks.
	> -Jon
	>
	> ________________________________
	>
	> From: Karthick Sankarachary [mailto:sankarachary@intalio.com]
	> Sent: Thursday, April 16, 2009 1:06 PM
	> To: user@ode.apache.org; Jonathan Coogan
	> Subject: Re: Question about xpath extensions
	>
	>
	> Hi Johnathan,
	>
	> I have a patch that could potentially resolve your issue. If
you don't
	> mind, can you apply the attached patch and let me know how it
goes?
	>
	> Regards,
	> Karthick
	>
	>
	> On 4/16/09, Karthick Sankarachary <sa...@intalio.com>
wrote:
	>
	> Hi Johnathan,
	>
	> This sounds like a bug to me. I'll take a look see at that
	> function when I get a chance.
	>
	> Regards,
	> Karthick
	>
	>
	>
	> On 4/16/09, Jonathan Coogan <Jo...@attachmate.com>
	> wrote:
	>
	> Hi.  I have a question about the "insert-as-first-into"
	> and
	> "insert-as-last-into" Xpath extensions.
	>
	> I get a selectionFailure if I try to insert a child into
	> a parent that
	> does not yet contain other children.  I'm wondering if
	> this was done on
	> purpose for some reason, or if this is a bug.
	>
	> As an example, say I have the following elements/types:
	>
	>   <element name="RecordSet" type="tns:RecordSetType"/>
	>    <complexType name="RecordSetType">
	>        <sequence>
	>            <element maxOccurs="unbounded" minOccurs="0"
	> ref="tns:Record"/>
	>        </sequence>
	>    </complexType>
	>
	>    <element name="Record" type="tns:RecordType"/>
	>     <complexType name="RecordType">
	>        <sequence>
	>            <element maxOccurs="1" minOccurs="1"
	> name="SomeValue"
	> type="string"/>
	>            <element maxOccurs="1" minOccurs="1"
	> name="AnotherValue"
	> type="string"/>
	>        </sequence>
	>    </complexType>
	>
	> So RecordSet can contain 0 or more Records.  If I try to
	> insert a Record
	> into an empty RecordSet (0 Records) I get a
	> selectionFailure.  I have to
	> initialize the RecordSet variable with at least one
	> dummy Record before
	> it will work.
	>
	> Comments?
	>
	> Thanks.
	> -Jon
	>
	>
	>
	>
	
	


Re: Question about xpath extensions

Posted by Karthick Sankarachary <sa...@intalio.com>.
Yes, please go ahead and create a JIRA issue, attach your test process and
assign it to me.

On 4/16/09, Jonathan Coogan <Jo...@attachmate.com> wrote:
>
> Hmmm.. I'm still getting the selectionFailure.
>
> I should note that I get the selectionFailure on both insert-as-first-into
> and insert-as-last-into..
>
> I'd be happy to write this up and/or submit a test process if that would
> help.
> -Jon
>
>
>
> On 4/16/09 2:21 PM, "Jon Coogan" <Jo...@attachmate.com> wrote:
>
> > Sure thing.  I'll do this and get back to you.
> >
> > Thanks.
> > -Jon
> >
> > ________________________________
> >
> > From: Karthick Sankarachary [mailto:sankarachary@intalio.com]
> > Sent: Thursday, April 16, 2009 1:06 PM
> > To: user@ode.apache.org; Jonathan Coogan
> > Subject: Re: Question about xpath extensions
> >
> >
> > Hi Johnathan,
> >
> > I have a patch that could potentially resolve your issue. If you don't
> > mind, can you apply the attached patch and let me know how it goes?
> >
> > Regards,
> > Karthick
> >
> >
> > On 4/16/09, Karthick Sankarachary <sa...@intalio.com> wrote:
> >
> > Hi Johnathan,
> >
> > This sounds like a bug to me. I'll take a look see at that
> > function when I get a chance.
> >
> > Regards,
> > Karthick
> >
> >
> >
> > On 4/16/09, Jonathan Coogan <Jo...@attachmate.com>
> > wrote:
> >
> > Hi.  I have a question about the "insert-as-first-into"
> > and
> > "insert-as-last-into" Xpath extensions.
> >
> > I get a selectionFailure if I try to insert a child into
> > a parent that
> > does not yet contain other children.  I'm wondering if
> > this was done on
> > purpose for some reason, or if this is a bug.
> >
> > As an example, say I have the following elements/types:
> >
> >   <element name="RecordSet" type="tns:RecordSetType"/>
> >    <complexType name="RecordSetType">
> >        <sequence>
> >            <element maxOccurs="unbounded" minOccurs="0"
> > ref="tns:Record"/>
> >        </sequence>
> >    </complexType>
> >
> >    <element name="Record" type="tns:RecordType"/>
> >     <complexType name="RecordType">
> >        <sequence>
> >            <element maxOccurs="1" minOccurs="1"
> > name="SomeValue"
> > type="string"/>
> >            <element maxOccurs="1" minOccurs="1"
> > name="AnotherValue"
> > type="string"/>
> >        </sequence>
> >    </complexType>
> >
> > So RecordSet can contain 0 or more Records.  If I try to
> > insert a Record
> > into an empty RecordSet (0 Records) I get a
> > selectionFailure.  I have to
> > initialize the RecordSet variable with at least one
> > dummy Record before
> > it will work.
> >
> > Comments?
> >
> > Thanks.
> > -Jon
> >
> >
> >
> >
>
>

Re: Question about xpath extensions

Posted by Jonathan Coogan <Jo...@attachmate.com>.
Hmmm.. I'm still getting the selectionFailure.

I should note that I get the selectionFailure on both insert-as-first-into
and insert-as-last-into..

I'd be happy to write this up and/or submit a test process if that would
help.
-Jon


On 4/16/09 2:21 PM, "Jon Coogan" <Jo...@attachmate.com> wrote:

> Sure thing.  I'll do this and get back to you.
>  
> Thanks.
> -Jon
> 
> ________________________________
> 
> From: Karthick Sankarachary [mailto:sankarachary@intalio.com]
> Sent: Thursday, April 16, 2009 1:06 PM
> To: user@ode.apache.org; Jonathan Coogan
> Subject: Re: Question about xpath extensions
> 
> 
> Hi Johnathan,
> 
> I have a patch that could potentially resolve your issue. If you don't
> mind, can you apply the attached patch and let me know how it goes?
> 
> Regards,
> Karthick
> 
> 
> On 4/16/09, Karthick Sankarachary <sa...@intalio.com> wrote:
> 
> Hi Johnathan,
> 
> This sounds like a bug to me. I'll take a look see at that
> function when I get a chance.
> 
> Regards,
> Karthick 
> 
> 
> 
> On 4/16/09, Jonathan Coogan <Jo...@attachmate.com>
> wrote: 
> 
> Hi.  I have a question about the "insert-as-first-into"
> and
> "insert-as-last-into" Xpath extensions.
> 
> I get a selectionFailure if I try to insert a child into
> a parent that
> does not yet contain other children.  I'm wondering if
> this was done on
> purpose for some reason, or if this is a bug.
> 
> As an example, say I have the following elements/types:
> 
>   <element name="RecordSet" type="tns:RecordSetType"/>
>    <complexType name="RecordSetType">
>        <sequence>
>            <element maxOccurs="unbounded" minOccurs="0"
> ref="tns:Record"/>
>        </sequence>
>    </complexType>
> 
>    <element name="Record" type="tns:RecordType"/>
>     <complexType name="RecordType">
>        <sequence>
>            <element maxOccurs="1" minOccurs="1"
> name="SomeValue"
> type="string"/>
>            <element maxOccurs="1" minOccurs="1"
> name="AnotherValue"
> type="string"/>
>        </sequence>
>    </complexType>
> 
> So RecordSet can contain 0 or more Records.  If I try to
> insert a Record
> into an empty RecordSet (0 Records) I get a
> selectionFailure.  I have to
> initialize the RecordSet variable with at least one
> dummy Record before
> it will work.
> 
> Comments?
> 
> Thanks.
> -Jon
> 
> 
> 
> 


RE: Question about xpath extensions

Posted by Jonathan Coogan <Jo...@Attachmate.com>.
Sure thing.  I'll do this and get back to you.
 
Thanks.
-Jon

________________________________

From: Karthick Sankarachary [mailto:sankarachary@intalio.com] 
Sent: Thursday, April 16, 2009 1:06 PM
To: user@ode.apache.org; Jonathan Coogan
Subject: Re: Question about xpath extensions


Hi Johnathan,

I have a patch that could potentially resolve your issue. If you don't
mind, can you apply the attached patch and let me know how it goes?

Regards,
Karthick


On 4/16/09, Karthick Sankarachary <sa...@intalio.com> wrote: 

	Hi Johnathan,
	
	This sounds like a bug to me. I'll take a look see at that
function when I get a chance.
	
	Regards,
	Karthick 
	
	
	
	On 4/16/09, Jonathan Coogan <Jo...@attachmate.com>
wrote: 

		Hi.  I have a question about the "insert-as-first-into"
and
		"insert-as-last-into" Xpath extensions.
		
		I get a selectionFailure if I try to insert a child into
a parent that
		does not yet contain other children.  I'm wondering if
this was done on
		purpose for some reason, or if this is a bug.
		
		As an example, say I have the following elements/types:
		
		   <element name="RecordSet" type="tns:RecordSetType"/>
		    <complexType name="RecordSetType">
		        <sequence>
		            <element maxOccurs="unbounded" minOccurs="0"
		ref="tns:Record"/>
		        </sequence>
		    </complexType>
		
		    <element name="Record" type="tns:RecordType"/>
		     <complexType name="RecordType">
		        <sequence>
		            <element maxOccurs="1" minOccurs="1"
name="SomeValue"
		type="string"/>
		            <element maxOccurs="1" minOccurs="1"
name="AnotherValue"
		type="string"/>
		        </sequence>
		    </complexType>
		
		So RecordSet can contain 0 or more Records.  If I try to
insert a Record
		into an empty RecordSet (0 Records) I get a
selectionFailure.  I have to
		initialize the RecordSet variable with at least one
dummy Record before
		it will work.
		
		Comments?
		
		Thanks.
		-Jon
		




-- 
Best Regards,
Karthick Sankarachary 

Re: Question about xpath extensions

Posted by Karthick Sankarachary <sa...@intalio.com>.
Hi Johnathan,

I have a patch that could potentially resolve your issue. If you don't mind,
can you apply the attached patch and let me know how it goes?

Regards,
Karthick

On 4/16/09, Karthick Sankarachary <sa...@intalio.com> wrote:
>
> Hi Johnathan,
>
> This sounds like a bug to me. I'll take a look see at that function when I
> get a chance.
>
> Regards,
> Karthick
>
> On 4/16/09, Jonathan Coogan <Jo...@attachmate.com> wrote:
>>
>> Hi.  I have a question about the "insert-as-first-into" and
>> "insert-as-last-into" Xpath extensions.
>>
>> I get a selectionFailure if I try to insert a child into a parent that
>> does not yet contain other children.  I'm wondering if this was done on
>> purpose for some reason, or if this is a bug.
>>
>> As an example, say I have the following elements/types:
>>
>>    <element name="RecordSet" type="tns:RecordSetType"/>
>>     <complexType name="RecordSetType">
>>         <sequence>
>>             <element maxOccurs="unbounded" minOccurs="0"
>> ref="tns:Record"/>
>>         </sequence>
>>     </complexType>
>>
>>     <element name="Record" type="tns:RecordType"/>
>>      <complexType name="RecordType">
>>         <sequence>
>>             <element maxOccurs="1" minOccurs="1" name="SomeValue"
>> type="string"/>
>>             <element maxOccurs="1" minOccurs="1" name="AnotherValue"
>> type="string"/>
>>         </sequence>
>>     </complexType>
>>
>> So RecordSet can contain 0 or more Records.  If I try to insert a Record
>> into an empty RecordSet (0 Records) I get a selectionFailure.  I have to
>> initialize the RecordSet variable with at least one dummy Record before
>> it will work.
>>
>> Comments?
>>
>> Thanks.
>> -Jon
>>
>


-- 
Best Regards,
Karthick Sankarachary

Re: Question about xpath extensions

Posted by Jonathan Coogan <Jo...@attachmate.com>.
 Thank you.


On 4/16/09 12:57 PM, "Karthick Sankarachary" <sa...@intalio.com>
wrote:

> Hi Johnathan,
> 
> This sounds like a bug to me. I'll take a look see at that function when I
> get a chance.
> 
> Regards,
> Karthick
> 
> On 4/16/09, Jonathan Coogan <Jo...@attachmate.com> wrote:
>> 
>> Hi.  I have a question about the "insert-as-first-into" and
>> "insert-as-last-into" Xpath extensions.
>> 
>> I get a selectionFailure if I try to insert a child into a parent that
>> does not yet contain other children.  I'm wondering if this was done on
>> purpose for some reason, or if this is a bug.
>> 
>> As an example, say I have the following elements/types:
>> 
>>    <element name="RecordSet" type="tns:RecordSetType"/>
>>     <complexType name="RecordSetType">
>>         <sequence>
>>             <element maxOccurs="unbounded" minOccurs="0"
>> ref="tns:Record"/>
>>         </sequence>
>>     </complexType>
>> 
>>     <element name="Record" type="tns:RecordType"/>
>>      <complexType name="RecordType">
>>         <sequence>
>>             <element maxOccurs="1" minOccurs="1" name="SomeValue"
>> type="string"/>
>>             <element maxOccurs="1" minOccurs="1" name="AnotherValue"
>> type="string"/>
>>         </sequence>
>>     </complexType>
>> 
>> So RecordSet can contain 0 or more Records.  If I try to insert a Record
>> into an empty RecordSet (0 Records) I get a selectionFailure.  I have to
>> initialize the RecordSet variable with at least one dummy Record before
>> it will work.
>> 
>> Comments?
>> 
>> Thanks.
>> -Jon
>> 


Re: Question about xpath extensions

Posted by Karthick Sankarachary <sa...@intalio.com>.
Hi Johnathan,

This sounds like a bug to me. I'll take a look see at that function when I
get a chance.

Regards,
Karthick

On 4/16/09, Jonathan Coogan <Jo...@attachmate.com> wrote:
>
> Hi.  I have a question about the "insert-as-first-into" and
> "insert-as-last-into" Xpath extensions.
>
> I get a selectionFailure if I try to insert a child into a parent that
> does not yet contain other children.  I'm wondering if this was done on
> purpose for some reason, or if this is a bug.
>
> As an example, say I have the following elements/types:
>
>    <element name="RecordSet" type="tns:RecordSetType"/>
>     <complexType name="RecordSetType">
>         <sequence>
>             <element maxOccurs="unbounded" minOccurs="0"
> ref="tns:Record"/>
>         </sequence>
>     </complexType>
>
>     <element name="Record" type="tns:RecordType"/>
>      <complexType name="RecordType">
>         <sequence>
>             <element maxOccurs="1" minOccurs="1" name="SomeValue"
> type="string"/>
>             <element maxOccurs="1" minOccurs="1" name="AnotherValue"
> type="string"/>
>         </sequence>
>     </complexType>
>
> So RecordSet can contain 0 or more Records.  If I try to insert a Record
> into an empty RecordSet (0 Records) I get a selectionFailure.  I have to
> initialize the RecordSet variable with at least one dummy Record before
> it will work.
>
> Comments?
>
> Thanks.
> -Jon
>