"Back to top" link using name templates
Here should go questions about transforming XML with XSLT and FOP.
"Back to top" link using name templates
Hello,
At the end of my xml/html page I want to add the hyperlink "back to the top" that points to the top of the page.
I want to do this using the xsl:call-template element.
I guess i have to use sth like that in my stylesheet :
<xsl:template match="/">
<xsl:call-template name="top"/>
<xsl:apply-templates/>
<xsl:call-template name="bottom"/>
</xsl:template>
<xsl:template name="bottom">
<xsl:text>This is the bottom of the page</xsl:text>
</xsl:template>
<xsl:template name="top">
<xsl:text>This is the top of the page</xsl:text>
</xsl:template>
But how do I integrate the hyperlink, and where do I put it in the stylesheet? Has anyone a complete xsl stylesheet example with that?
At the end of my xml/html page I want to add the hyperlink "back to the top" that points to the top of the page.
I want to do this using the xsl:call-template element.
I guess i have to use sth like that in my stylesheet :
<xsl:template match="/">
<xsl:call-template name="top"/>
<xsl:apply-templates/>
<xsl:call-template name="bottom"/>
</xsl:template>
<xsl:template name="bottom">
<xsl:text>This is the bottom of the page</xsl:text>
</xsl:template>
<xsl:template name="top">
<xsl:text>This is the top of the page</xsl:text>
</xsl:template>
But how do I integrate the hyperlink, and where do I put it in the stylesheet? Has anyone a complete xsl stylesheet example with that?
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service