Repeat gives too many rows

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Repeat gives too many rows

Jim Logan-3
Please tell me if I'm doing something wrong or if I found an Orbeon bug. (I'm running a nightly build I downloaded yesterday.)

The following XForm gives me four rows instead of two:
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xforms="http://www.w3.org/2002/xforms"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:ev="http://www.w3.org/2001/xml-events"
	xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
	xmlns:defaultviewpoint="http://www.modeldriven.org/2008/ArchitectureOntology/DefaultViewpoint.owl#"
	xmlns:mdp="http://www.modeldriven.org/2007/schema/ModelDrivenProfile.xsd"
	xmlns:v="http://www.modeldriven.org/2008/ArchitectureOntology/Versioning.owl#"
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:auth="http://www.modeldriven.org/2008/ArchitectureOntology/Authority.owl#"
	xmlns:sampleversions="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#">
<head>
<title>Asset Form</title>
<xforms:model>
	<xforms:instance id="asset-instance">
		<DefaultViewpoint:Default_root
			xmlns:DefaultViewpoint="http://www.modeldriven.org/2008/ArchitectureOntology/DefaultViewpoint.owl#"
			xmlns:mdp="http://www.modeldriven.org/2007/schema/ModelDrivenProfile.xsd"
			xmlns:v="http://www.modeldriven.org/2008/ArchitectureOntology/Versioning.owl#"
			xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
			xmlns:auth="http://www.modeldriven.org/2008/ArchitectureOntology/Authority.owl#"
			xmlns:SampleVersions="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#">
			<v:Unstructured_data_asset
				mdp:id="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFile">
				<!--Get  ID=http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFile-->
				<rdfs:label>Cow File</rdfs:label>
				<v:current_version>
					<v:Data_asset_version
						mdp:id="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion2">
						<!--Get  ID=http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion2-->
						<rdfs:label>v2</rdfs:label>
					</v:Data_asset_version>
				</v:current_version>
				<v:has_version>
					<v:Data_asset_version
						mdp:id="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion2">
						<!--Get  ID=http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion2-->
						<rdfs:label>v2</rdfs:label>
					</v:Data_asset_version>
				</v:has_version>
				<v:has_version>
					<v:Data_asset_version
						mdp:id="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion1">
						<!--Get  ID=http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion1-->
						<rdfs:label>v1</rdfs:label>
					</v:Data_asset_version>
				</v:has_version>
				<auth:responsible_party>
					<auth:Authority
						mdp:id="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#Cory">
						<!--Get  ID=http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#Cory-->
						<rdfs:label>Cory Casanave</rdfs:label>
					</auth:Authority>
				</auth:responsible_party>
				<v:contained_in>
					<v:Data_asset_container
						mdp:id="http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFolder">
						<!--Get  ID=http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFolder-->
					</v:Data_asset_container>
				</v:contained_in>
			</v:Unstructured_data_asset>
		</DefaultViewpoint:Default_root>
	</xforms:instance>

</xforms:model>

<style type="text/css">
.xforms-label {
	font-weight: bold
}

.xforms-textarea-appearance-xxforms-autosize {
	width: 20em;
	margin-bottom: 2px
}
</style>
</head>


<body>
<p>Asset Information</p>
<p><xforms:input
	ref="instance('asset-instance')/v:Unstructured_data_asset/rdfs:label">
	<xforms:label>Asset name:</xforms:label>
	<xforms:action ev:event="xforms-value-changed">
		<xforms:insert context="."
			origin="xxforms:attribute('action', 'edited')" />
	</xforms:action>
</xforms:input></p>
<p><xforms:input
	ref="instance('asset-instance')/v:Unstructured_data_asset/auth:responsible_party/auth:Authority/rdfs:label">
	<xforms:label>Responsible Party:</xforms:label>
	<xforms:action ev:event="xforms-value-changed">
		<xforms:insert context="."
			origin="xxforms:attribute('action', 'edited')" />
	</xforms:action>
</xforms:input></p>

<p>Versions:</p>
<table border="1" cellpadding="3">
	<thead>
		<tr>
			<th>Version</th>
			<th>URI</th>
		</tr>
	</thead>
	<tbody>
		<xforms:repeat
			nodeset="instance('asset-instance')/v:Unstructured_data_asset/v:has_version/v:Data_asset_version"
			id="asset-repeat">
			<tr>
				<td><xforms:output ref="rdfs:label" /></td>
				<td><xforms:output ref="@mdp:id" /></td>
			</tr>
		</xforms:repeat>

	</tbody>
</table>

<widget:xforms-instance-inspector
	xmlns:widget="http://orbeon.org/oxf/xml/widget" />
</body>
</html>

  
The output I get is this:

Asset Information

Versions:

Version URI
v2 http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion2
v1 http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion1
v2 http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion2
v1 http://www.modeldriven.org/2008/ArchitectureOntology/Samples/SampleVersions.owl#CowFileVersion1
Thanks,
-Jim




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Repeat gives too many rows

fl.schmitt(ops-users)
Hi,

> Please tell me if I'm doing something wrong or if I found an Orbeon bug.
> (I'm running a nightly build I downloaded yesterday.)
>
> The following XForm gives me four rows instead of two: (...)

Seems to be build-specific - using the online sandbox, the form is
displayed correctly (with two table rows).

florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Repeat gives too many rows

Alessandro Vernet
Administrator
Jim,

On Thu, May 29, 2008 at 12:24 AM, Florian Schmitt
<[hidden email]> wrote:
> Seems to be build-specific - using the online sandbox, the form is displayed
> correctly (with two table rows).

And I am also getting this with the latest code. Could this be caused
by some local change you have done to some other files. Let us know if
you still get this with the latest builds.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Repeat gives too many rows

Jim Logan-3
Alessandro Vernet wrote:

> Jim,
>
> On Thu, May 29, 2008 at 12:24 AM, Florian Schmitt
> <[hidden email]> wrote:
>  
>> Seems to be build-specific - using the online sandbox, the form is displayed
>> correctly (with two table rows).
>>    
>
> And I am also getting this with the latest code. Could this be caused
> by some local change you have done to some other files. Let us know if
> you still get this with the latest builds.
>
> Alex
>  
Alex,

The problem seems to be gone now, but if I remember correctly, it went
away when I added something to an unrelated part of my form!

Thanks,
-Jim



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Repeat gives too many rows

Alessandro Vernet
Administrator
On Mon, Jun 2, 2008 at 6:49 AM, Jim Logan <[hidden email]> wrote:
> The problem seems to be gone now, but if I remember correctly, it went away
> when I added something to an unrelated part of my form!

OK, good. Thank you for the update.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws