Including external texts

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

Including external texts

J. Thorsten Stumpf
Hi!

We're trying to include texts into our XForm which are managed in an
external (content management) system.

We tried to insert it the texts by using xinclude. That didn't work out,
because we could not change the behaviour of Orbeon to add the basic
context path to the URL. f:url-norewrite="true" and using an absolute
path (without an server) didn't work.

We also tried to use an instance (which can be loaded (though the path
/../uvw/xyz.xml is ugly)). But whenever we use an instance, we can't add
all the childs and only get a text extract of the selected node.

We also tried to use the mediatype attribute of the xforms:output
element, but that didn't have any effect at all.

I really don't understand, why it is necessary to substitute an absolute
path. This behaviour is making easy things so complicated!

Is there any option to switch it off completely, can I deactivate it on
xincludes or can I somehow insert an whole subset of an instance
(serialization wasn't helpful, because it either inserts an "escaped
sequence like "<tag>" or none of the actual markup).

Thx in advance,

Thorsten


--
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: Including external texts

J. Thorsten Stumpf
Add:
Certainly we could add an absolute url with an fixed server, but the
application has several stages and these have different adresses. So
that's not an real option...

J. Thorsten Stumpf schrieb:

> Hi!
>
> We're trying to include texts into our XForm which are managed in an
> external (content management) system.
>
> We tried to insert it the texts by using xinclude. That didn't work out,
> because we could not change the behaviour of Orbeon to add the basic
> context path to the URL. f:url-norewrite="true" and using an absolute
> path (without an server) didn't work.
>
> We also tried to use an instance (which can be loaded (though the path
> /../uvw/xyz.xml is ugly)). But whenever we use an instance, we can't add
> all the childs and only get a text extract of the selected node.
>
> We also tried to use the mediatype attribute of the xforms:output
> element, but that didn't have any effect at all.
>
> I really don't understand, why it is necessary to substitute an absolute
> path. This behaviour is making easy things so complicated!
>
> Is there any option to switch it off completely, can I deactivate it on
> xincludes or can I somehow insert an whole subset of an instance
> (serialization wasn't helpful, because it either inserts an "escaped
> sequence like "<tag>" or none of the actual markup).
>
> Thx in advance,
>
> Thorsten
>


--
PEPPERMIND bei der Internet World 2008
Stand Nummer 35
am 21. und 22. Oktober 2008
ICM, Neue Messe M?nchen

--

Jens Thorsten Stumpf
Frontend Development

Durchwahl  +49 (0)89 17860 - 359
Direktfax  +49 (0)89 17860 - 6 359
E-Mail     [hidden email]

KOCHAN & PARTNER GmbH
Werbung, Design und Kommunikation
Hirschgartenallee 25 | D-80639 Munchen
Telefon + 49 (0)89 1784978 | Telefax + 49 (0)89 1781235
[hidden email] | www.kochan.de
Geschaftsfuhrer ist Boris Kochan
Eingetragen im Handelsregister Munchen unter HRB 92175


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

Calendar question

Nikola Radic
Hello,

Is it possible to prevent user to enter a date manually i.e. to force
use of pop-up calendar?

Tnx,

Nikola


--
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: Calendar question

Nikola Radic
After some testing, I found a satisfactory solution, that is to add the
following XSL code in theme.xsl (custom or plain)

<xsl:template match="xhtml:input[tokenize(@class, ' ') =
'xforms-type-date']">      
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
            *<xsl:attribute name="readonly"/>*
        </xsl:copy>
    </xsl:template>

However, it would be better to have a global setting (properties.xml) or
xxforms:readonly attribute.

nikola

Nikola Radic wrote:
> Hello,
>
> Is it possible to prevent user to enter a date manually i.e. to force
> use of pop-up calendar?
>
> Tnx,
>
> Nikola


--

*P/ Please consider the environment before deciding to print this e-mail/*



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

Problem in xforms:label

Nikola Radic
Hi,

xforms:label within xforms:input does not work correctly because "for"
attribute points to SPAN element instead a text box, due to missing
suffix $xforms-input-1.

Is it possible to insert HTML as a content of xforms:label? If not,
would it possible to add it as a feature in 3.7 final?

Tnx,

Nikola


--

*P/ Please consider the environment before deciding to print this e-mail/*



--
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: Problem in xforms:label

Erik Bruchez
Administrator
> xforms:label within xforms:input does not work correctly because  
> "for" attribute points to SPAN element instead a text box, due to  
> missing suffix $xforms-input-1.

Yes, this is a known bug:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=311626&group_id=168&atid=350207

> Is it possible to insert HTML as a content of xforms:label? If not,  
> would it possible to add it as a feature in 3.7 final?

Yes, this is already possible, except within item/itemsets labels.

Best,

-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: Calendar question

Erik Bruchez
Administrator
In reply to this post by Nikola Radic
Maybe you could also use CSS to hide the input control?

-Erik

On Oct 30, 2008, at 7:06 AM, Nikola Radic wrote:

> After some testing, I found a satisfactory solution, that is to add  
> the following XSL code in theme.xsl (custom or plain)
>
> <xsl:template match="xhtml:input[tokenize(@class, ' ') = 'xforms-
> type-date']">              <xsl:copy>
>           <xsl:apply-templates select="@*|node()"/>
>           *<xsl:attribute name="readonly"/>*
>       </xsl:copy>
>   </xsl:template>
>
> However, it would be better to have a global setting  
> (properties.xml) or xxforms:readonly attribute.
>
> nikola
>
> Nikola Radic wrote:
>> Hello,
>>
>> Is it possible to prevent user to enter a date manually i.e. to  
>> force use of pop-up calendar?
>>
>> Tnx,
>>
>> Nikola
--
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: Including external texts

Alessandro Vernet
Administrator
In reply to this post by J. Thorsten Stumpf
On Oct 27, 2008, at 6:21 PM, "J. Thorsten Stumpf"
<[hidden email]

>> We're trying to include texts into our XForm which are managed in
>> an external (content management) system.
>> We tried to insert it the texts by using xinclude. That didn't work
>> out, because we could not change the behaviour of Orbeon to add the
>> basic context path to the URL. f:url-norewrite="true" and using an
>> absolute path (without an server) didn't work.
>> We also tried to use an instance (which can be loaded (though the
>> path /../uvw/xyz.xml is ugly)). But whenever we use an instance, we
>> can't add all the childs and only get a text extract of the
>> selected node.
>> We also tried to use the mediatype attribute of the xforms:output
>> element, but that didn't have any effect at all.
>> I really don't understand, why it is necessary to substitute an
>> absolute path. This behaviour is making easy things so complicated!
>> Is there any option to switch it off completely, can I deactivate
>> it on xincludes or can I somehow insert an whole subset of an
>> instance (serialization wasn't helpful, because it either inserts
>> an "escaped sequence like "&lt;tag&gt;" or none of the actual
>> markup).
So you were successful getting the data from the CMS to an instance,
but displaying that data doesn't work the way you'd like. Is that
correct?

If it is, could you create a stand-alone XForms files that we can run
in the XForms sandbox and that shows the instance with the data and
what you are doing in the <xforms:output>?

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