You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by beyaRecords - The home Urban music <uz...@beya-records.com> on 2004/01/08 14:16:43 UTC
Html issue
Hi,
I have a pipe line that does some aggregation:
<map:aggregate element="home">
<map:part src="cocoon:/support/beya-menu" />
<map:part src="cocoon:/support/contract-summary" />
<map:part src="context://beyarecords/content/adv-xyz-01.xml" />
<map:part src="context://beyarecords/content/site_title.xml" />
</map:aggregate>
The line of issue is <map:part src="cocoon:/support/beya-menu" />, for
which the code is:
<map:match pattern="support/beya-menu">
<map:generate type="serverpages" src="xsp/beya-menu.xsp"/>
<map:serialize type="html"/>
</map:match>
The xsp code is:
<page>
<menu>
<table width="100%" border="1">
<tr>
<td align="left" valign="top"><a href="/temp/home">menu item
1</a></td>
</tr>
<tr>
<td align="left" valign="top"><a href="/temp/home">menu item
2</a></td>
</tr>
</table>
</menu>
</page>
What is happening at the moment is that the html between the menu tags
is being stripped and only menu item 1 and 2 are being written to the
screen, when in fact I want the integrity of the html kept intact so
that when written to the screen the links are available to be clicked.
Could someone please inform me how to do this?
regards
Uzo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Html issue
Posted by go...@osmosis.gr.
you dont give information of your transofrmations (xslt) so i can not help
you a lot but some hints
1. use xml serialization for your support/beya-menu
2. check your support/beya-menu match direclty from your browser to see if
the output is what you expect
3. create your <home> ...</home> xml fragment using xml serialization for
all parts and transform this fragment to html.
note:
check othello sample in cocoon scratchpad area to see a similar aproach
--stavros
On Thu, 8 Jan 2004, beyaRecords - The home Urban music wrote:
> Hi,
> I have a pipe line that does some aggregation:
>
> <map:aggregate element="home">
> <map:part src="cocoon:/support/beya-menu" />
> <map:part src="cocoon:/support/contract-summary" />
> <map:part src="context://beyarecords/content/adv-xyz-01.xml" />
> <map:part src="context://beyarecords/content/site_title.xml" />
> </map:aggregate>
>
> The line of issue is <map:part src="cocoon:/support/beya-menu" />, for
> which the code is:
>
> <map:match pattern="support/beya-menu">
>
> <map:generate type="serverpages" src="xsp/beya-menu.xsp"/>
> <map:serialize type="html"/>
>
> </map:match>
>
> The xsp code is:
>
> <page>
>
> <menu>
> <table width="100%" border="1">
> <tr>
> <td align="left" valign="top"><a href="/temp/home">menu item
> 1</a></td>
> </tr>
> <tr>
> <td align="left" valign="top"><a href="/temp/home">menu item
> 2</a></td>
> </tr>
> </table>
> </menu>
>
>
> </page>
>
> What is happening at the moment is that the html between the menu tags
> is being stripped and only menu item 1 and 2 are being written to the
> screen, when in fact I want the integrity of the html kept intact so
> that when written to the screen the links are available to be clicked.
> Could someone please inform me how to do this?
>
>
> regards
>
>
> Uzo
>
>
> ---------------------------------------------------------------------
> 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