cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Toper <nto...@jouve.fr>
Subject Re: Parameters to an XSP?
Date Tue, 23 Dec 2003 16:52:11 GMT
What do you mean by properly?

> A PCdata section.
> An XML Well-formed document
> A catalog entity?

Le Mardi 23 Décembre 2003 17:44, beyaRecords - The home Urban music a écrit :
> Thanks nicolas.
>
> Question, is there no html formatter attribute that can specified to
> properly html format any text on the fly?
>
> regards
>
>
> Uzo
>
> On 23 Dec 2003, at 16:41, Nicolas Toper wrote:
> > &amp; instead of r&b
> >
> > The & indicates an entity...
> >
> > Le Mardi 23 Décembre 2003 17:34, beyaRecords - The home Urban music a
> >
> > écrit :
> >> Hi,
> >> have just done my first cocoon tutorial., and it works!!! ;-) There is
> >> only only problem. In my xml file I have a paragraph which says the
> >> following:
> >>
> >> 	<content>
> >> 		<paragraph>
> >> 			Welcome to beyaRecords, the home of all that is r&b
> >> 		</paragraph>
> >> 	</content>
> >>
> >> My xsl file which formats the paragraphs is:
> >>
> >> 		<xsl:template match="paragraph">
> >> 			<p align="left">
> >> 				<xsl:apply-templates/>
> >> 			</p>
> >> 		</xsl:template>
> >>
> >> The problem is, the line 'Welcome to beyaRecords, the home of all that
> >> is r&b' stops at 'Welcome to beyaRecords, the home of all that is r'.
> >> I
> >> presume the ampersand is throwing  a spanner in the works and breaking
> >> the sentence! How do I resolve this minor issue?
> >>
> >> regards
> >>
> >> Uzo
> >>
> >> On 23 Dec 2003, at 16:02, julien bloit wrote:
> >>> In your sitemap, instead try :
> >>> <map:parameter name="my_param" value="the_value"/>
> >>>
> >>> and in the xsp :
> >>>
> >>> <xsp:logic>
> >>> String my_param = <util:get-sitemap-parameter name="my_param"/> ;
> >>> </xsp:logic>
> >>>
> >>> and recall it wherever you need in your xsp like this:
> >>> <xsp:expr>my_param</xsp:expr>
> >>>
> >>> you have to declare the util namespace in your xsp :
> >>> xmlns:util="http://apache.org/xsp/util/2.0"
> >>>
> >>> It works fine for me,
> >>> HTH
> >>>
> >>> julien
> >>>
> >>>
> >>> ----- Original Message -----
> >>> From: <H.vanderLinden@MI.unimaas.nl>
> >>> To: <users@cocoon.apache.org>
> >>> Sent: Tuesday, December 23, 2003 4:51 PM
> >>> Subject: Parameters to an XSP?
> >>>
> >>>> Hi,
> >>>>
> >>>> I've finally managed to build an XSP (connect.xsp) that can connect
> >>>> to my
> >>>> database. I even built a logicsheet (connect.xsl) that handles most
> >>>> of the
> >>>> java stuff and added it als builtin-logicsheet to cocoon.xconf.
> >>>>
> >>>> Now I would like to do something like this:
> >>>>
> >>>> <map:match pattern="getInfo">
> >>>> <map:generate type="serverpages" src="connect.xsp">
> >>>> <map:parameter name="query">something</map:parameter>
> >>>> </map:generate>
> >>>> <map:transform src="processingresults.xsl"/>
> >>>> <map:serialize type="xml"/>
> >>>> </map:match>
> >>>>
> >>>> The above doesn't work, but who can tell me what I _SHOULD_ do?
> >>>>
> >>>> Bye, Helma
> >>>>
> >>>> --------------------------------------------------------------------
> >>>> -
> >>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >>>> For additional commands, e-mail: users-help@cocoon.apache.org
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >>> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message