On 6/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
On 6/23/06, bhavya sharma <[EMAIL PROTECTED] > wrote:
> Hi
> first Thank you very much for response , i have made all the changes as
> spoecified below but still i am facing the same problem , as a output it is
> showing the link ,menu item, page content but without any format , i am
> sending you the latest code that changed , i am also sending you the output
> screen as a jpg image that wil help you to understand my problem ,
> <map:aggregate element="my">
> <map:transform src="">
The output looks like the DIVs are being copied without being
transformed into pretty HTML.
Things to do:
1. Serialize the final result as HTML:
<map:serialize type="html"/>
2. Test the XML. Serialize as XML directly after the aggregation:
</map:aggregate>
<map:serialize type="xml"/>
Then open the page and "View Source". The top-level element should be
"my" from your aggregation:
<map:aggregate element="my">
Save the results as a reference while working on the XSLT.
3. Check your XSLT page2xhtml-sub.xsl:
The default pipeline aggegates to a top-level element "cmsbody". If
you copied the default page2xhtml.xsl without changing the top-level
match, then the XSLT is copying the tags without changing anything.
(It is probably better to change the aggregate in the XMAP to the
standard than to change the XSLT.)
4. Test the XSLT. Delete the "Copy" match:
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
If your matches are not working, it should return nothing (empty HTML
and BODY elements generated by the HTML Serializer.) Fix the matches
until there are results in "View Source". Then replace the Copy match
so all undefined matches are copied.
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
