Use of OPS for cooking recipe management using xml

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

Use of OPS for cooking recipe management using xml

Peter Teichert
Hello OPS users,
I am developing an xml solution for creation and management of cooking recipes.
I am interested to use OPS for this but I need some advice beforehand :

1. Is it possible to manage xml 1.1 files within OPS
2. How can be changed in OPS the language in view.html from english to german language
3. Is it possible in OPS to include large xml schema (128kb) for validation in every xml file
4. Is it better to include all recipes in one big xml file or rather have one xml file per recipe
    How can be done selection of xml files to open within OPS

Thanks for answers

Peter 


--
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: Use of OPS for cooking recipe management using xml

fl.schmitt(ops-users)
Peter,

i'm not sure about xml 1.1, but i think this should work, too.

> 2. How can be changed in OPS the language in view.html from english to
> german language

do you want to let the user select between different languages regarding the
field labels, for example? The "Government Forms" example [1] shows how this can
be achieved. It holds the strings used for the labels in an additional "resource
instance", so if the user changes the language, the appropriate resource
instance file is loaded. The control labels are updated automatically when the
resource instance changes.

You have the possibility to view the html source of the different files online
using the button "view source code" in the center of the title bar, or by
downloading the orbeon.war file that contains all the examples.

> 3. Is it possible in OPS to include large xml schema (128kb) for
> validation in every xml file

i think that this is possible - but IMHO you could also store the schema
separately to minimize redundancy.

> 4. Is it better to include all recipes in one big xml file or rather
> have one xml file per recipe

Personally, i would prefer to use multiple small files. Usually, the user will
read / edit only one single file, so there' s no need to load all of them.
Minimizing the size of the xforms instances is a method to increase performance
[2], so working with small files would be preferable.

>     How can be done selection of xml files to open within OPS

You have the full power of XPath at your hands to retrieve the xml files. This
is a very flexible way to access the data. So the better question is how do you
want to access the data. You could use any of the data content, and you can add
a special unique id to access the single files (but this isn't mandatory - take
a look at the bookcast example [3, 4] - it has no unique id, and all the data is
stored in a single file). I think it is really useful to follow the bookcast
tutorial and to play around with the examples shown there.

hth
florian

[1] http://www.orbeon.com/ops/forms/
[2] http://www.orbeon.com/ops/doc/integration-tuning#your-app-size-xml
[3] http://www.orbeon.com/ops/xforms-bookcast/
[4] http://www.orbeon.com/ops/doc/intro-tutorial#bookcast-application



--
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: Use of OPS for cooking recipe management using xml

Peter Teichert
Hello Florian,
thanks for your quick answer.
I am already playing with the bookcast example.

regards
Peter

2008/10/12 Florian Schmitt <[hidden email]>
Peter,

i'm not sure about xml 1.1, but i think this should work, too.

> 2. How can be changed in OPS the language in view.html from english to
> german language

do you want to let the user select between different languages regarding the
field labels, for example? The "Government Forms" example [1] shows how this can
be achieved. It holds the strings used for the labels in an additional "resource
instance", so if the user changes the language, the appropriate resource
instance file is loaded. The control labels are updated automatically when the
resource instance changes.

You have the possibility to view the html source of the different files online
using the button "view source code" in the center of the title bar, or by
downloading the orbeon.war file that contains all the examples.

> 3. Is it possible in OPS to include large xml schema (128kb) for
> validation in every xml file

i think that this is possible - but IMHO you could also store the schema
separately to minimize redundancy.

> 4. Is it better to include all recipes in one big xml file or rather
> have one xml file per recipe

Personally, i would prefer to use multiple small files. Usually, the user will
read / edit only one single file, so there' s no need to load all of them.
Minimizing the size of the xforms instances is a method to increase performance
[2], so working with small files would be preferable.

>     How can be done selection of xml files to open within OPS

You have the full power of XPath at your hands to retrieve the xml files. This
is a very flexible way to access the data. So the better question is how do you
want to access the data. You could use any of the data content, and you can add
a special unique id to access the single files (but this isn't mandatory - take
a look at the bookcast example [3, 4] - it has no unique id, and all the data is
stored in a single file). I think it is really useful to follow the bookcast
tutorial and to play around with the examples shown there.

hth
florian

[1] http://www.orbeon.com/ops/forms/
[2] http://www.orbeon.com/ops/doc/integration-tuning#your-app-size-xml
[3] http://www.orbeon.com/ops/xforms-bookcast/
[4] http://www.orbeon.com/ops/doc/intro-tutorial#bookcast-application



--
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




--
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: Use of OPS for cooking recipe management using xml

Erik Bruchez
Administrator
In reply to this post by Peter Teichert
My feeling was that XML 1.1 was pretty much dead, unfortunately. Do  
you have an actual strong need for this?

You could also store your data into the eXist database. I don't know  
your data format, but in eXist you could either have a single large  
"file", or multiple small ones. It doesn't seem to make much of a  
difference for eXist.

The architecture I would use is one where you have an XForms front-end  
talking to eXist through REST. If that doesn't work out, I would use  
an intermediate layer of services between XForms and eXist.

Depending on your requirements, you may even be able to use Form  
Runner, if your data is very form-oriented.

-Erik

On Oct 11, 2008, at 9:33 PM, Peter Teichert wrote:

> Hello OPS users,
> I am developing an xml solution for creation and management of  
> cooking recipes.
> I am interested to use OPS for this but I need some advice  
> beforehand :
>
> 1. Is it possible to manage xml 1.1 files within OPS
> 2. How can be changed in OPS the language in view.html from english  
> to german language
> 3. Is it possible in OPS to include large xml schema (128kb) for  
> validation in every xml file
> 4. Is it better to include all recipes in one big xml file or rather  
> have one xml file per recipe
>     How can be done selection of xml files to open within OPS
>
> Thanks for answers
>
> Peter
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Use of OPS for cooking recipe management using xml

Peter Teichert
In reply to this post by Peter Teichert
Hello Florian,

while playing with the bookcast example several things do not happen when i insert my xml instance and bind the data. Excuse me for such newbie questions but I am testing already a while without success.

1. I created a new folder ...orbeon\WEB-INF\resources\apps\ecooker
2. The bookcast example works in the new dir
3. I changed the view.html as follows:
- changing xforms:model
- bind

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xhtml="http://www.w3.org/1999/xhtml"
      xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
    <head>
        <title>XForms eCooker</title>

<xforms:model>
  <xforms:instance id="recipe-instance">
    <ee26 xmlns="http://www.ecooker.net/v0.3"
          xmlns:ec="http://www.ecooker.net/v0.3"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xsi:schemaLocation="http://www.ecooker.net/uni/v0.3 file:///C:/Home/teichert/cookbook/schema/uni/v0.3/ecooker_v0.3.xsd"
          ea6="v0.3">   
      <ee55>
        <ee41 ea6="v0.3">
          <ee6de>recipe cookbook</ee6de>
        </ee41>
      </ee55>
    <ee25 ea6="v0.3" id="r1" xml:lang="de"/>
  </ee26>         
  </xforms:instance>
         
  <xforms:bind nodeset="instance('recipe-instance')/ee41">
    <xforms:bind nodeset="ee6de" required="true()"/>
  </xforms:bind>

 </xforms:model>

    </head>
    <body>
      <p>Hello</p>
      <xforms:group ref="title">
        <xforms:input ref="ee41/ee6de">
          <xforms:label>Title</xforms:label></xforms:input><br/>
      </xforms:group>   
    </body>
</html>

The control title does not appear on the screen . Why is that ? What I am doing wrong here ?

Thanks for answer.

best regards

Peter




--
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: Use of OPS for cooking recipe management using xml

Peter Teichert
In reply to this post by Erik Bruchez
Hello Erik,

I think that XML 1.1 is not dead especially in multi-language environment.
For example I am creating a multi-language cooking recipe xml web service which will communicate in german, english and russian languages. The tags, tags content and the screen language will be changed.


2008/10/12 Erik Bruchez <[hidden email]>
My feeling was that XML 1.1 was pretty much dead, unfortunately. Do you have an actual strong need for this?

You could also store your data into the eXist database. I don't know your data format, but in eXist you could either have a single large "file", or multiple small ones. It doesn't seem to make much of a difference for eXist.

The architecture I would use is one where you have an XForms front-end talking to eXist through REST. If that doesn't work out, I would use an intermediate layer of services between XForms and eXist.

Yes, this I want to try 

Depending on your requirements, you may even be able to use Form Runner, if your data is very form-oriented.

Yes, I downloaded today the nightly build. The form runner should be very fine for me. 

Peter

-Erik


On Oct 11, 2008, at 9:33 PM, Peter Teichert wrote:

Hello OPS users,
I am developing an xml solution for creation and management of cooking recipes.
I am interested to use OPS for this but I need some advice beforehand :

1. Is it possible to manage xml 1.1 files within OPS
2. How can be changed in OPS the language in view.html from english to german language
3. Is it possible in OPS to include large xml schema (128kb) for validation in every xml file
4. Is it better to include all recipes in one big xml file or rather have one xml file per recipe
   How can be done selection of xml files to open within OPS

Thanks for answers

Peter

--
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

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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




--
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: Use of OPS for cooking recipe management using xml

Erik Bruchez
Administrator
Peter,

Why do the name of the tags need to be changed when you localize the  
recipe? Just asking because it's the first time I have seen this.

In general, XML formats are defined in a single language (say,  
English), and only the containing data is localized. There is usually  
no need to localize elements as those are processed by software, not  
by humans.

-Erik

On Oct 12, 2008, at 10:34 AM, Peter Teichert wrote:

> Hello Erik,
>
> I think that XML 1.1 is not dead especially in multi-language  
> environment.
> For example I am creating a multi-language cooking recipe xml web  
> service which will communicate in german, english and russian  
> languages. The tags, tags content and the screen language will be  
> changed.
>
>
> 2008/10/12 Erik Bruchez <[hidden email]>
> My feeling was that XML 1.1 was pretty much dead, unfortunately. Do  
> you have an actual strong need for this?
>
> You could also store your data into the eXist database. I don't know  
> your data format, but in eXist you could either have a single large  
> "file", or multiple small ones. It doesn't seem to make much of a  
> difference for eXist.
>
> The architecture I would use is one where you have an XForms front-
> end talking to eXist through REST. If that doesn't work out, I would  
> use an intermediate layer of services between XForms and eXist.
>
> Yes, this I want to try
>
> Depending on your requirements, you may even be able to use Form  
> Runner, if your data is very form-oriented.
>
> Yes, I downloaded today the nightly build. The form runner should be  
> very fine for me.
>
> Peter
>
> -Erik
>
>
> On Oct 11, 2008, at 9:33 PM, Peter Teichert wrote:
>
> Hello OPS users,
> I am developing an xml solution for creation and management of  
> cooking recipes.
> I am interested to use OPS for this but I need some advice  
> beforehand :
>
> 1. Is it possible to manage xml 1.1 files within OPS
> 2. How can be changed in OPS the language in view.html from english  
> to german language
> 3. Is it possible in OPS to include large xml schema (128kb) for  
> validation in every xml file
> 4. Is it better to include all recipes in one big xml file or rather  
> have one xml file per recipe
>    How can be done selection of xml files to open within OPS
>
> Thanks for answers
>
> Peter
>
> --
> 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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> 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
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Use of OPS for cooking recipe management using xml

Erik Bruchez
Administrator
In reply to this post by Peter Teichert
>     <ee26 xmlns="http://www.ecooker.net/v0.3"

>           xmlns:ec="http://www.ecooker.net/v0.3"
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>           xmlns:xlink="http://www.w3.org/1999/xlink"
>           xsi:schemaLocation="http://www.ecooker.net/uni/v0.3 file:///C:/Home/teichert/cookbook/schema/uni/v0.3/ecooker_v0.3.xsd
> "
>           ea6="v0.3">
>       <ee55>
>         <ee41 ea6="v0.3">
>           <ee6de>recipe cookbook</ee6de>
>         </ee41>
>       </ee55>
>     <ee25 ea6="v0.3" id="r1" xml:lang="de"/>
>   </ee26>

>
>   <xforms:bind nodeset="instance('recipe-instance')/ee41">

This won't work: instance('recipe-instance') returns element <ee26>.  
If you want to reach element <ee41>, you need to address ee55 as well.  
So write:

     xforms:bind nodeset="instance('recipe-instance')/ee55/ee41">

>       <xforms:group ref="title">

This line is incorrect: you don't have a <title> element in your  
instance. Replace it with ref="ee55".

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Use of OPS for cooking recipe management using xml

Peter Teichert
In reply to this post by Erik Bruchez
Hello Erik,
I agree with you, but my first idea was to write xml files by hand. Therefore for russian speaking community it would be more easy to use their language when writing xml recipe files.
Greetings
Peter

2008/10/12 Erik Bruchez <[hidden email]>
Peter,

Why do the name of the tags need to be changed when you localize the recipe? Just asking because it's the first time I have seen this.

In general, XML formats are defined in a single language (say, English), and only the containing data is localized. There is usually no need to localize elements as those are processed by software, not by humans.

-Erik


On Oct 12, 2008, at 10:34 AM, Peter Teichert wrote:

Hello Erik,

I think that XML 1.1 is not dead especially in multi-language environment.
For example I am creating a multi-language cooking recipe xml web service which will communicate in german, english and russian languages. The tags, tags content and the screen language will be changed.


2008/10/12 Erik Bruchez <[hidden email]>
My feeling was that XML 1.1 was pretty much dead, unfortunately. Do you have an actual strong need for this?

You could also store your data into the eXist database. I don't know your data format, but in eXist you could either have a single large "file", or multiple small ones. It doesn't seem to make much of a difference for eXist.

The architecture I would use is one where you have an XForms front-end talking to eXist through REST. If that doesn't work out, I would use an intermediate layer of services between XForms and eXist.

Yes, this I want to try

Depending on your requirements, you may even be able to use Form Runner, if your data is very form-oriented.

Yes, I downloaded today the nightly build. The form runner should be very fine for me.

Peter

-Erik


On Oct 11, 2008, at 9:33 PM, Peter Teichert wrote:

Hello OPS users,
I am developing an xml solution for creation and management of cooking recipes.
I am interested to use OPS for this but I need some advice beforehand :

1. Is it possible to manage xml 1.1 files within OPS
2. How can be changed in OPS the language in view.html from english to german language
3. Is it possible in OPS to include large xml schema (128kb) for validation in every xml file
4. Is it better to include all recipes in one big xml file or rather have one xml file per recipe
  How can be done selection of xml files to open within OPS

Thanks for answers

Peter

--
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

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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



--
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

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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




--
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: Re: Use of OPS for cooking recipe management using xml

Erik Bruchez
Administrator
Peter,

I understand. But it will make everything much more complicated I  
think. For example, in XForms, XPath bindings point to element names,  
e.g.:

   <xforms:input ref="recipe">

If you change the element names, then all the XForms will have to  
change as well.

If you really want to do that, one approach could be to go first  
through a transformation phase: normalize everything into English or  
the language of your choice, and use localized version only for import/
export.

But if it was just me, I would really just try to avoid the extra  
complexity.

-Erik

On Oct 12, 2008, at 10:50 AM, Peter Teichert wrote:

> Hello Erik,
> I agree with you, but my first idea was to write xml files by hand.  
> Therefore for russian speaking community it would be more easy to  
> use their language when writing xml recipe files.
> Greetings
> Peter
>
> 2008/10/12 Erik Bruchez <[hidden email]>
> Peter,
>
> Why do the name of the tags need to be changed when you localize the  
> recipe? Just asking because it's the first time I have seen this.
>
> In general, XML formats are defined in a single language (say,  
> English), and only the containing data is localized. There is  
> usually no need to localize elements as those are processed by  
> software, not by humans.
>
> -Erik
>
>
> On Oct 12, 2008, at 10:34 AM, Peter Teichert wrote:
>
> Hello Erik,
>
> I think that XML 1.1 is not dead especially in multi-language  
> environment.
> For example I am creating a multi-language cooking recipe xml web  
> service which will communicate in german, english and russian  
> languages. The tags, tags content and the screen language will be  
> changed.
>
>
> 2008/10/12 Erik Bruchez <[hidden email]>
> My feeling was that XML 1.1 was pretty much dead, unfortunately. Do  
> you have an actual strong need for this?
>
> You could also store your data into the eXist database. I don't know  
> your data format, but in eXist you could either have a single large  
> "file", or multiple small ones. It doesn't seem to make much of a  
> difference for eXist.
>
> The architecture I would use is one where you have an XForms front-
> end talking to eXist through REST. If that doesn't work out, I would  
> use an intermediate layer of services between XForms and eXist.
>
> Yes, this I want to try
>
> Depending on your requirements, you may even be able to use Form  
> Runner, if your data is very form-oriented.
>
> Yes, I downloaded today the nightly build. The form runner should be  
> very fine for me.
>
> Peter
>
> -Erik
>
>
> On Oct 11, 2008, at 9:33 PM, Peter Teichert wrote:
>
> Hello OPS users,
> I am developing an xml solution for creation and management of  
> cooking recipes.
> I am interested to use OPS for this but I need some advice  
> beforehand :
>
> 1. Is it possible to manage xml 1.1 files within OPS
> 2. How can be changed in OPS the language in view.html from english  
> to german language
> 3. Is it possible in OPS to include large xml schema (128kb) for  
> validation in every xml file
> 4. Is it better to include all recipes in one big xml file or rather  
> have one xml file per recipe
>   How can be done selection of xml files to open within OPS
>
> Thanks for answers
>
> Peter
>
> --
> 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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> 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
>
>
>
> --
> 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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> 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
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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: Re: Re: Use of OPS for cooking recipe management using xml

Peter Teichert
Hello Erik,

I fully agree with your approach. Therefore I introduced tag names which will be written in normal 0-127 ASCII code and then I will translate them into diff languages ( e.g. ee26 - will mean recipe in english and rezept in german)

But I have another problem with the OPS tutorial. Can you review my view.html in my previous email and give me some hint to resolve the issue ? Thanks for response

Greetinge, Peter

2008/10/15 Erik Bruchez <[hidden email]>
Peter,

I understand. But it will make everything much more complicated I think. For example, in XForms, XPath bindings point to element names, e.g.:

 <xforms:input ref="recipe">

If you change the element names, then all the XForms will have to change as well.

If you really want to do that, one approach could be to go first through a transformation phase: normalize everything into English or the language of your choice, and use localized version only for import/export.

But if it was just me, I would really just try to avoid the extra complexity.

-Erik


On Oct 12, 2008, at 10:50 AM, Peter Teichert wrote:

Hello Erik,
I agree with you, but my first idea was to write xml files by hand. Therefore for russian speaking community it would be more easy to use their language when writing xml recipe files.
Greetings
Peter

2008/10/12 Erik Bruchez <[hidden email]>
Peter,

Why do the name of the tags need to be changed when you localize the recipe? Just asking because it's the first time I have seen this.

In general, XML formats are defined in a single language (say, English), and only the containing data is localized. There is usually no need to localize elements as those are processed by software, not by humans.

-Erik


On Oct 12, 2008, at 10:34 AM, Peter Teichert wrote:

Hello Erik,

I think that XML 1.1 is not dead especially in multi-language environment.
For example I am creating a multi-language cooking recipe xml web service which will communicate in german, english and russian languages. The tags, tags content and the screen language will be changed.


2008/10/12 Erik Bruchez <[hidden email]>
My feeling was that XML 1.1 was pretty much dead, unfortunately. Do you have an actual strong need for this?

You could also store your data into the eXist database. I don't know your data format, but in eXist you could either have a single large "file", or multiple small ones. It doesn't seem to make much of a difference for eXist.

The architecture I would use is one where you have an XForms front-end talking to eXist through REST. If that doesn't work out, I would use an intermediate layer of services between XForms and eXist.

Yes, this I want to try

Depending on your requirements, you may even be able to use Form Runner, if your data is very form-oriented.

Yes, I downloaded today the nightly build. The form runner should be very fine for me.

Peter

-Erik


On Oct 11, 2008, at 9:33 PM, Peter Teichert wrote:

Hello OPS users,
I am developing an xml solution for creation and management of cooking recipes.
I am interested to use OPS for this but I need some advice beforehand :

1. Is it possible to manage xml 1.1 files within OPS
2. How can be changed in OPS the language in view.html from english to german language
3. Is it possible in OPS to include large xml schema (128kb) for validation in every xml file
4. Is it better to include all recipes in one big xml file or rather have one xml file per recipe
 How can be done selection of xml files to open within OPS

Thanks for answers

Peter

--
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

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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



--
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

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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



--
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

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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




--
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: Re: Re: Re: Use of OPS for cooking recipe management using xml

Alessandro Vernet
Administrator
Peter,

On Wed, Oct 15, 2008 at 1:40 AM, Peter Teichert
<[hidden email]> wrote:
> But I have another problem with the OPS tutorial. Can you review my
> view.html in my previous email and give me some hint to resolve the issue ?

The <xforms:input> is inside a  <xforms:group ref="title">, but I don't
see a <title> inside <ee26>, so nothing inside the group will show.

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