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

  • SEARCH
  • Home
  • 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 8155725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:44:56+00:00 2026-06-06T16:44:56+00:00

I am using SDL tridion 2011 SP1. I want to get the list of

  • 0

I am using SDL tridion 2011 SP1.

I want to get the list of keywords under given category using XSLT Mediator.

Have any one come across this situation, If yes please share your views.

But When I actually looked at the Category Item XML it does not have any info related to its keywords.

  • 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-06T16:44:57+00:00Added an answer on June 6, 2026 at 4:44 pm

    You will need to create a C# TBB to insert the category keywords into the package, and then access this as a parameter in your XSLT.

    You can use a piece of c# like the following:

    class GetCategoryKeywords : TemplateBase
        {
            public override void Transform(Engine engine, Package package)
            {
                Initialize(engine, package);
                String webDavPathCategory = package.GetValue("CategotryWebDavPath");
                Category cat = (Category)engine.GetObject(webDavPathCategory);
                XmlDocument keywordsXml = new XmlDocument();
                keywordsXml.LoadXml(cat.GetListKeywords().OuterXml);
                Item output = package.CreateXmlDocumentItem(ContentType.Xml, keywordsXml);
                package.PushItem("CategoryKeywords", output);
            }
        }
    

    This will place an XML document in the package called CategoryKeywords containing the keywords. Then when you invoke the XSLT mediator, set the “Include Package Paramters” value to true, and add a parameter to the top of your XSLT as follows:

    <xsl:param name="CategoryKeywords"/>
    

    You can then loop through the new parameter as a variable performing any XPath queries on it that you desire. The following samples may help:

    <xsl:variable name="URI" select="$CategoryKeywords//tcm:ListUsedItems/tcm:Item[@Title=$VALUE]/@ID" />
    
    <xsl:for-each select="$CategoryKeywords//tcm:ListItems/tcm:Item">
        Do something
    <xsl:for-each>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a GUI extension using SDL Tridion 2011 SP1. I want to
I am working on SDL Tridion 2011 SP1 with the XSLT Mediator from SDL
I am using SDL Tridion 2011 SP1. I need small clarification regarding multimedia schema
I am creating Schema using Core Service in SDL Tridion 2011 SP1. In the
I am using XSLT mediator from SDL Tridion World to create an XSLT TBB.
I am using SDL Tridion 2011 SP1. I am creating the Dreamweaver TBB for
I am working on a XSLT Template Building Blocks in SDL Tridion 2011 SP1
I am using SDL Tridion 2011. I have created a Component of field type
I'm using SDL Tridion 2011 SP1 and the documentation states: Users with system administration
I have an SDL Tridion 2011 SP1 HR1 image in which Experience Manager is

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.