RE: external model

Many thanks, Roman.  This was the piece I was looking for.


Dean

>  -----Original Message-----
>  From: Roman Huditsch [mailto:roman.huditsch@hico.com]
>  Sent: Tuesday, 16 September 2003 4:07 PM
>  To: Chalker, Dean; www-forms@w3.org
>  Subject: AW: external model
>  
>  
>  Hi all,
>  
>  wouldn't it be possible to use an XPointer-Statement in the 
>  "href" attribute to refer to a xml fragment in an external document?
>  
>  with best regards,
>  Roman
>  
>  Mag.(FH) Roman Huditsch (hRHU )
>  Developer .:. Information & Application Engineering 
>  _____________________________________________________________________
>  hico Informations- und Kommunikations-Management Gesellschaft m.b.H.
>  TechLab, Thomas A. Edison Straße 2.
>  A-7000 Eisenstadt / Austria
>  phone: +43/2682/704-61-73; fax: +43/2682/704-71-61-10
>  e-mail: roman.huditsch@hico.com
>  mobile: +43/664/4102715
>  
>  
>  
>  -----Ursprüngliche Nachricht-----
>  Von: Chalker, Dean [mailto:Dean.Chalker@intelliwhere.com]
>  Gesendet: Dienstag, 16. September 2003 03:28
>  An: www-forms@w3.org
>  Betreff: RE: external model
>  
>  
>  
>  
>  Hi Micah,
>  
>  XML Include would not work for me, because what I think I 
>  need to do is
>  include a fragment of an external document, rather than the 
>  whole document.
>  
>  
>  Dean
>  
>  >  -----Original Message-----
>  >  From: Micah Dubinko [mailto:MDubinko@cardiff.com]
>  >  Sent: Tuesday, 16 September 2003 11:22 AM
>  >  To: 'Matthias Kind'; 'Chalker, Dean'
>  >  Cc: www-forms@w3.org
>  >  Subject: RE: external model
>  >  
>  >  
>  >  
>  >  Would XML Include meet your needs for an external model? Why 
>  >  or why not?
>  >  
>  >  http://www.w3.org/TR/xinclude/
>  >  
>  >  .micah
>  >  
>  >  -----Original Message-----
>  >  From: Matthias Kind [mailto:mkind@dstc.edu.au]
>  >  Sent: Monday, September 08, 2003 7:45 PM
>  >  To: 'Chalker, Dean'
>  >  Cc: www-forms@w3.org
>  >  Subject: RE: external model
>  >  
>  >  
>  >  
>  >  Hi Dean and Others,
>  >  
>  >  the feature that you can refer to an external instance 
>  data is quite
>  >  helpful. But I was actually looking for something where the 
>  >  *entire* model
>  >  can be defined in an external file, which than can be used 
>  >  together with
>  >  different user interface implementations. 
>  >  
>  >  Such as depicted on the XForms homepage 
>  >  http://www.w3.org/MarkUp/Forms/
>  >  under section "What are XForms?". You define your model just 
>  >  once and than
>  >  you can plug it into different presentation documents, such 
>  >  as XHTML, WML,
>  >  SVG, etc. 
>  >  
>  >  Ok, from a logical point of view it works this way right 
>  >  now. But when it
>  >  comes down to implement a model into XHTML, the model 
>  >  definition must be
>  >  'hard coded' into that document. If you wanna use the same 
>  >  model with SVG,
>  >  it has to be 'hard coded' into that document as well. If 
>  >  there's a change in
>  >  the model, you would have to change it in 2 documents. :-(
>  >  
>  >  So is there any way to refer to an entire model (not just 
>  >  the instance data)
>  >  that is outside the actual presentation document?
>  >  
>  >  cheers,
>  >  Matthias
>  >  
>  >  
>  >  -----Original Message-----
>  >  From: Chalker, Dean [mailto:Dean.Chalker@intelliwhere.com] 
>  >  Sent: Tuesday, 9 September 2003 9:23 AM
>  >  To: 'Matthias Kind'
>  >  
>  >  
>  >  Hi Matthias,
>  >  
>  >  I'm an xforms newbie, but I thought I'd make a response 
>  >  anyway.  Perhaps it
>  >  will trigger some discussion from the gurus :-)
>  >  
>  >  I don't know about a external mode, but you can get external 
>  >  instances with
>  >  the instance src attribute.  This may be what you want, 
>  >  since it leaves the
>  >  submission and bind elements with the form description, 
>  >  which is probably
>  >  where you want them.
>  >  
>  >      <xforms:model>
>  >          <xforms:instance src="some-URI"/>
>  >          ...
>  >      </xforms:model>
>  >  
>  >  
>  >  However, there seems to be no way to point to an external 
>  >  fragment, rather
>  >  than an entire document.  The application that I am thinking 
>  >  about would
>  >  benefit from a single XML instance document with a "library" 
>  >  of XForm forms
>  >  for viewing/editing fragments from the common document.  
>  >  Perhaps something
>  >  like:
>  >  
>  >      <xforms:model>
>  >          <xforms:instance src="some-URI"
>  >  ref="xpath-description-of-instance-fragment"/>
>  >          ...
>  >      </xforms:model>
>  >  
>  >  Dean
>  >  
>  >  
>  >  
>  >  >  -----Original Message-----
>  >  >  From: Matthias Kind [mailto:mkind@dstc.edu.au]
>  >  >  Sent: Monday, 8 September 2003 2:54 PM
>  >  >  To: www-forms@w3.org
>  >  >  Subject: external model
>  >  >  
>  >  >  
>  >  >  
>  >  >  Hi there,
>  >  >  
>  >  >  is there a way, to specify a complete xforms model in an  
>  >  external 
>  >  > file and  just refering to it? So that, for example, a 
>  >  hosting XHTML  
>  >  > document only  would need to implement the XForms UI 
>  >  components and 
>  >  > just  contain a link to  the model?
>  >  >  
>  >  >  I was thinking of something like that: (as linking to 
>  an external
>  >  >  stylesheet)
>  >  >  
>  >  >  ...
>  >  >  <head>
>  >  >    ...
>  >  >    <link id="myModel" href="myModel.xml" type="text/xml" 
>  >  >  rel="subsection" />
>  >  >    ...
>  >  >  </head>
>  >  >  <body>
>  >  >    ...
>  >  >    <xform:input model="myModel" ref="/data/test">
>  >  >      <xforms:label>Enter test data<xforms:label>
>  >  >    </xforms:input>
>  >  >    ...
>  >  >  </body>
>  >  >  ...
>  >  >  
>  >  >  Any ideas?
>  >  >  
>  >  >  cheers,
>  >  >  Matthias
>  >  >  
>  >  
>  
>  

Received on Tuesday, 16 September 2003 19:12:48 UTC