Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8158467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:36:29+00:00 2026-06-06T17:36:29+00:00

i am not being able to render a bulleted list through xml/xsl transformation. I

  • 0

i am not being able to render a bulleted list through xml/xsl transformation. I want the output to be a list with round bullet points.

here is the xml file –

<bulletList name="list">
        <item>&#8226; Item1</item>
        <item>&#8226; Item2</item>
        <item>&#8226; Item3</item>
        <item>&#8226; Item4</item>
        <item>&#8226; Item5</item>
</bulletList>

here is the corresponding XSL –

<div class="sansIcon">
            <xsl:apply-templates select="content[@name='con1']" mode="impl_expandContent"/>

            <ul>
            <xsl:apply-templates select="bulletList[@name='list']" mode="impl_expandContent">
                <xsl:for-each select="item">
                    <li><xsl:value-of /></li>
                </xsl:for-each>
            </xsl:apply-templates>  
            </ul>

       </div>

Please help! Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:36:31+00:00Added an answer on June 6, 2026 at 5:36 pm

    Here change <xsl:value-of /> to <xsl:value-of select="text()"/>

    Do this way, rather than using apply-templates for bulletList

    <ul>
        <xsl:for-each select="bulletList[@name='list']/item">
            <li>
                <xsl:value-of select="text()"/>
            </li>
        </xsl:for-each>
    </ul>
    

    EDIT:

    For this type of XML,

    <item>Item1 - Description1</item>
    <item>Item2 - Description2</item>
    

    To make Item1, Item2, …. to be bold. Use substring-before() and substring-after()

    <li>
        <xsl:variable name="itemText" select="substring-before(text(), '-')"/>
        <b><xsl:value-of select="$itemText"/></b><xsl:value-of select="substring-after(text(), $itemText)"/>
    </li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not being able to redirect the user to the page I want after
Not being able to find the answer, and also not being able to do
I'm not being able to make this line work with Tk import os while(1):
So I've resigned myself to not being able to use the order of a
i wrote a custom jquery function that accept a callback but not being able
I'm getting an exception from Cruise Control about not being able to connect to
Right, I solved my previous problem of not being able to submit the textarea
System.Reflection.Assembly.Load(System.IO.File.ReadAllBytes(path)) So this is a work around to not being able to use T4
I have this controller: def list = { withFormat { xml { render Customer.list()
I'm almost there (I think) on being able to render a PDF with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.