& 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: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to