DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: XSLT to implement a footnote in (X)HTML

  1. #1
    Join Date
    Nov 2008

    Unhappy XSLT to implement a footnote in (X)HTML

    I need to implement a footnote system in (X)HTML. For example, suppose I introduce an element in my XML markup called footnote, such that whenever such an element
    <footnote symbol="*">Hello World</footnote> appears in the document then the contents of the footnote element should be displayed at the bottom of the document next to value of the symbol attribute.

    I am very new to XML and this is what I come up with so far, If anyone could help to get a bit further I will be grateful.
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="">
        <xsl:template match="/">
        <xsl:template match="footnote[@symbol='@*']">
                <xsl:value-of select="footnote"/>
        <xsl:template match="text()"/>
    Last edited by Hack; 11-26-2008 at 08:34 AM. Reason: Added Code Tags

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Welcome to DevX

    Does this help?

Similar Threads

  1. XSLT: Dynamic Concatenation of XHTML sections?
    By anotherchrisber in forum XML
    Replies: 0
    Last Post: 01-30-2006, 03:14 PM
  2. Importing xslt into 1 master xslt then to html
    By Patrick Long in forum XML
    Replies: 1
    Last Post: 03-01-2002, 03:47 PM
  3. Replies: 0
    Last Post: 01-08-2002, 08:16 PM
  4. Replies: 0
    Last Post: 01-08-2002, 08:13 PM
  5. Replies: 0
    Last Post: 06-21-2001, 05:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center