Sorry I repost my message because the previous one it was confused :))) (sorry!!):
thank you eric finally I have discorvered that the problem is in the submission...
but it's very strange... I have this behaviour:
1) if I have an xml with an initial structure and I try to add some node inside all works fine:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2007 rel. 3 (
http://www.altova.com)-->
<RefPoints xmlns="">
<RefPoint>
<Name Language="en-us" ID="1">a</Name>
<GeneralCategory>Attraction</
GeneralCategory>
<AttractionCategory>0</AttractionCategory>
<ReferenceCategory>0</ReferenceCategory>
<Rank>2</Rank>
<AppropriateFor>Family</AppropriateFor>
<Seasonality>Summer</Seasonality>
<Description Language="en-us" ID="1">a</Description>
−
<Location>
<LocationCode>a</LocationCode>
<DirectionFromHotel>North</DirectionFromHotel>
<Distance DistanceUnit="0">a</Distance>
<Latitude LatitudeUnit="0" LatitudeOrientation="North">a</Latitude>
<Longitude LongitudeUnit="0" LongitudeOrientation="East">a</Longitude>
</Location>
−
<Contact>
<PhoneCountry>0</PhoneCountry>
<PhoneAreaCity>0</PhoneAreaCity>
<PhoneNumber>0</PhoneNumber>
−
<WebsiteURL>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</WebsiteURL>
<StreetAddress>a</StreetAddress>
<CountryName>AA</CountryName>
<StateProv>aa</StateProv>
<CityName>a</CityName>
<PostalCode>a</PostalCode>
</Contact>
−
<OperationSchedules>
−
<OperationSchedule>
<BeginDate>1967-08-13</BeginDate>
<EndDate>1967-08-13</EndDate>
<BeginTime>1967-08-13</BeginTime>
<EndTime>1967-08-13</EndTime>
<DaysOfWeek Weds="true" Sun="true" Tue="true" Sat="true" Fri="true" Mon="true" Thur="true"/>
</OperationSchedule>
</OperationSchedules>
</RefPoint>
</RefPoints>
2) if I pass as instance an xml like this my submission generates an empty file with only the xml intestation....
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2007 rel. 3 (
http://www.altova.com)-->
<RefPoints xmlns="">
</RefPoints>
this it will be imported as 'i-instance' in the model
My submission element is:
<xf:submission id="s-send" method="put" action="file:/D:/fake/myData.xml" replace="none" instance="i-instance" validate="false" >
<xf:action ev:event="xforms-submit-error">
<xf:message level="ephemeral">Submission failed</xf:message>
</xf:action>
<xf:action ev:event="xforms-submit-done">
<xf:message level="ephemeral">Submission successfull.</xf:message>
</xf:action>
</xf:submission>
could you see any errors on it?
because I expected that at least the RefPoints
not it will be in the myData.xml output file but the output file it's
complitly empty. Why????
Daniele ippoliti
2011/4/19 daniele ippoliti
<[hidden email]>
thank you eric finally I have discorvered that the problem is in the submission...
but it's very strange... I have this behaviour:
1) if I have an xml with an initial structure and I try to add some node inside all works fine
2) if I pass as instance an xml like this my submission generates an empty file with only the xml intestation....
<xf:submission id="s-send" method="put" action="file:/D:/fake/myData.xml" replace="none" instance="i-instance" validate="false" >
<xf:action ev:event="xforms-submit-error">
<xf:message level="ephemeral">Submission failed</xf:message>
</xf:action>
<xf:action ev:event="xforms-submit-done">
<xf:message level="ephemeral">Submission successfull.</xf:message>
</xf:action>
</xf:submission>
could you see any errors on it? or could you think that could be something in the instance imported that is:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2007 rel. 3 (http://www.altova.com)-->
<RefPoints xmlns="">
</RefPoints>
because I expected that at least the RefPoints not it will be in the myData.xml output file but the output file it's complitly empty, I don't have the same behaviour if I pass a file like this
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2007 rel. 3 (http://www.altova.com)-->
<RefPoints xmlns="">
<RefPoint>
<Name Language="en-us" ID="1">a</Name>
<GeneralCategory>Attraction</GeneralCategory>
<AttractionCategory>0</AttractionCategory>
<ReferenceCategory>0</ReferenceCategory>
<Rank>2</Rank>
<AppropriateFor>Family</AppropriateFor>
<Seasonality>Summer</Seasonality>
<Description Language="en-us" ID="1">a</Description>
−
<Location>
<LocationCode>a</LocationCode>
<DirectionFromHotel>North</DirectionFromHotel>
<Distance DistanceUnit="0">a</Distance>
<Latitude LatitudeUnit="0" LatitudeOrientation="North">a</Latitude>
<Longitude LongitudeUnit="0" LongitudeOrientation="East">a</Longitude>
</Location>
−
<Contact>
<PhoneCountry>0</PhoneCountry>
<PhoneAreaCity>0</PhoneAreaCity>
<PhoneNumber>0</PhoneNumber>
−
<WebsiteURL>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</WebsiteURL>
<StreetAddress>a</StreetAddress>
<CountryName>AA</CountryName>
<StateProv>aa</StateProv>
<CityName>a</CityName>
<PostalCode>a</PostalCode>
</Contact>
−
<Transportations>
−
<Transportation>
<TransportationMode>0</TransportationMode>
<Chargeable>true</Chargeable>
<Fee Currency="AAA">1.123</Fee>
<ChargeType>One Way</ChargeType>
<ReservationRequired>true</ReservationRequired>
<TypicalTravelTime>0</TypicalTravelTime>
<DirectionsFromHotel Language="en-us" ID="1">a</DirectionsFromHotel>
<DirectionsFromPOR Language="en-us" ID="1">a</DirectionsFromPOR>
<Description Language="en-us" ID="1">a</Description>
−
<OperationSchedules>
−
<OperationSchedule>
<BeginDate>1967-08-13</BeginDate>
<EndDate>1967-08-13</EndDate>
<BeginTime>1967-08-13</BeginTime>
<EndTime>1967-08-13</EndTime>
<DaysOfWeek Weds="true" Sun="true" Tue="true" Sat="true" Fri="true" Mon="true" Thur="true"/>
</OperationSchedule>
</OperationSchedules>
</Transportation>
</Transportations>
−
<OperationSchedules>
−
<OperationSchedule>
<BeginDate>1967-08-13</BeginDate>
<EndDate>1967-08-13</EndDate>
<BeginTime>1967-08-13</BeginTime>
<EndTime>1967-08-13</EndTime>
<DaysOfWeek Weds="true" Sun="true" Tue="true" Sat="true" Fri="true" Mon="true" Thur="true"/>
</OperationSchedule>
</OperationSchedules>
</RefPoint>
</RefPoints>
why????
Daniele Ippoliti
On Mon, Apr 18, 2011 at 6:50 AM, daniele ippoliti
<[hidden email]> wrote:
why you need nopdeset attribute and how would you set it ??????, I have read this link of IBM
We have some doc here:
See also the examples from XForms 1.1:
I hope this helps,
-Erik
--
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