You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Volker Schneider <vo...@danet.de> on 2002/06/26 09:51:54 UTC
Urgent: i18n and xsp:element does not work!
Dear colleagues,
I have a problem using the xsp:element tag with i18n.
I have this pipeline (the catalog works fine):
<map:match pattern="RX">
<map:generate type="serverpages" src="../xsp/rx.xsp"/>
<map:transform type="i18n"/>
<map:serialize type="xml"/>
</map:match>
and my xsp:
<?xml version="1.0" encoding="UTF-8"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-session="http://apache.org/xsp/session/2.0"
create-session="true">
<service xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
<!-- (1) -->
<input_city id="startcity" label="xy" i18n:attr="label"/>
<!-- (2) -->
<xsp:element name="input_city">
<xsp:attribute name="id">startcity</xsp:attribute>
<xsp:attribute name="label">xy</xsp:attribute>
<xsp:attribute name="i18n:attr">label</xsp:attribute>
</xsp:element>
</service>
</xsp:page>
The result is, that (1) works fine, but (2) does not!!!
The result is:
<?xml version="1.0" encoding="UTF-8" ?>
<service xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-session="http://apache.org/xsp/session/2.0"
xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
<input_city id="startcity" label="City:" />
<input_city id="startcity" label="xy" i18n:attr="label" />
</service>
Can anybody help me please?
Thank you, best regards
- Volker -
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Urgent: i18n and xsp:element does not work!
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
>
> On 26.Jun.2002 -- 09:51 AM, Volker Schneider wrote:
> > Dear colleagues,
> >
> > I have a problem using the xsp:element tag with i18n.
> >
> > I have this pipeline (the catalog works fine):
> >
> > <map:match pattern="RX">
> > <map:generate type="serverpages" src="../xsp/rx.xsp"/>
> > <map:transform type="i18n"/>
> > <map:serialize type="xml"/>
> > </map:match>
> >
> > and my xsp:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <xsp:page xmlns:xsp="http://apache.org/xsp"
> > xmlns:xsp-session="http://apache.org/xsp/session/2.0"
> > create-session="true">
> >
> > <service xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
> >
> > <!-- (1) -->
> > <input_city id="startcity" label="xy" i18n:attr="label"/>
> >
> > <!-- (2) -->
> > <xsp:element name="input_city">
> > <xsp:attribute name="id">startcity</xsp:attribute>
> > <xsp:attribute name="label">xy</xsp:attribute>
> > <xsp:attribute name="i18n:attr">label</xsp:attribute>
> > </xsp:element>
> > </service>
> > </xsp:page>
> >
> > The result is, that (1) works fine, but (2) does not!!!
>
> It might help to include prefix and uri for the namespace
>
> <xsp:element name="input_city">
> <xsp:attribute name="id">startcity</xsp:attribute>
> <xsp:attribute name="label">xy</xsp:attribute>
> <xsp:attribute name="attr" prefix="i18n"
> uri="http://apache.org/cocoon/i18n/2.0">label</xsp:attribute>
> </xsp:element>
>
> But I'm just guessing...
It is not guessing, you are completely right: you must specify
prefix/namespace.
I'm almost sure that there is RTFM or article somewhere about it...
Vadim
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Urgent: i18n and xsp:element does not work!
Posted by Volker Schneider <vo...@danet.de>.
Hi Christian,
thank you very much, your guess was very right!!! But I'm not really
understanding the reason...
Best regards
- Volker -
-----Original Message-----
From: Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
Sent: Mittwoch, 26. Juni 2002 10:15
To: cocoon-users@xml.apache.org
Subject: Re: Urgent: i18n and xsp:element does not work!
On 26.Jun.2002 -- 09:51 AM, Volker Schneider wrote:
> Dear colleagues,
>
> I have a problem using the xsp:element tag with i18n.
>
> I have this pipeline (the catalog works fine):
>
> <map:match pattern="RX">
> <map:generate type="serverpages" src="../xsp/rx.xsp"/>
> <map:transform type="i18n"/>
> <map:serialize type="xml"/>
> </map:match>
>
> and my xsp:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xsp:page xmlns:xsp="http://apache.org/xsp"
> xmlns:xsp-session="http://apache.org/xsp/session/2.0"
> create-session="true">
>
> <service xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
>
> <!-- (1) -->
> <input_city id="startcity" label="xy" i18n:attr="label"/>
>
> <!-- (2) -->
> <xsp:element name="input_city">
> <xsp:attribute name="id">startcity</xsp:attribute>
> <xsp:attribute name="label">xy</xsp:attribute>
> <xsp:attribute name="i18n:attr">label</xsp:attribute>
> </xsp:element>
> </service>
> </xsp:page>
>
> The result is, that (1) works fine, but (2) does not!!!
It might help to include prefix and uri for the namespace
<xsp:element name="input_city">
<xsp:attribute name="id">startcity</xsp:attribute>
<xsp:attribute name="label">xy</xsp:attribute>
<xsp:attribute name="attr" prefix="i18n"
uri="http://apache.org/cocoon/i18n/2.0">label</xsp:attribute>
</xsp:element>
But I'm just guessing...
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Urgent: i18n and xsp:element does not work!
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 26.Jun.2002 -- 09:51 AM, Volker Schneider wrote:
> Dear colleagues,
>
> I have a problem using the xsp:element tag with i18n.
>
> I have this pipeline (the catalog works fine):
>
> <map:match pattern="RX">
> <map:generate type="serverpages" src="../xsp/rx.xsp"/>
> <map:transform type="i18n"/>
> <map:serialize type="xml"/>
> </map:match>
>
> and my xsp:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xsp:page xmlns:xsp="http://apache.org/xsp"
> xmlns:xsp-session="http://apache.org/xsp/session/2.0"
> create-session="true">
>
> <service xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
>
> <!-- (1) -->
> <input_city id="startcity" label="xy" i18n:attr="label"/>
>
> <!-- (2) -->
> <xsp:element name="input_city">
> <xsp:attribute name="id">startcity</xsp:attribute>
> <xsp:attribute name="label">xy</xsp:attribute>
> <xsp:attribute name="i18n:attr">label</xsp:attribute>
> </xsp:element>
> </service>
> </xsp:page>
>
> The result is, that (1) works fine, but (2) does not!!!
It might help to include prefix and uri for the namespace
<xsp:element name="input_city">
<xsp:attribute name="id">startcity</xsp:attribute>
<xsp:attribute name="label">xy</xsp:attribute>
<xsp:attribute name="attr" prefix="i18n" uri="http://apache.org/cocoon/i18n/2.0">label</xsp:attribute>
</xsp:element>
But I'm just guessing...
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>