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 6166837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:24:32+00:00 2026-05-23T22:24:32+00:00

I’ve been trying to figure out this XSLT/XML problem for the past few days

  • 0

I’ve been trying to figure out this XSLT/XML problem for the past few days (it’s code I have the pleasure of trying to fix). Using XSLT, am grabbing what’s in the XML tags “see” and trying to create a “see also” (or related files) ALink menu in the Windows Help File with the tags. The $filename is a global variable, so say this is somefile.xml, the $filename would be somefile.xml.

The actual problem lies when I try to link the file together to create the ALink. ( {$filename}_SEE_ALSO gets linked to node()_SEE_ALSO}, the files do get linked… but reversed. So say you have Function X, you want it to show Function Y in the “See Also”. Normally, you would put <see>Function Y</see> in Function X’s file (so Function X->Function Y). In the code below, however, what it does is show Function X in Function Y (Function X<-Function Y) – so in reverse. So when you click on Function X’s “See also”, you get a blank popup, whilst in Function Y, it would pop up with “Function X”.

These are the XML tags:

<function>
 <showSeeAlso>
   <see>Tag1</see>
   <see>Tag2</see>
   <see>Tag3</see>
 </showSeeAlso>
</function>

This is the XSLT:

<xsl:template match="showSeeAlso">
 <object id="seeAlso" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" codebase="HHCTRL.ocx#Version=4,72,8252,0">
    <param name="Command" value="ALink, MENU"/>
    <param name="Text" value="Text:See Also"/>
    <param name="Font" value="Arial,8pt,,,underline"/>
    <param name="Flags" value="1"/>
    <param name="Item1" value=""/>
    <param name="Item2" value="{$filename}_SEE_ALSO"/>
  </object>

<xsl:apply-templates select="see"/>
</xsl:template>

 <xsl:template match="see">
 <xsl:param name="name" select="."/>
  <object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
  <param name="ALink Name" value="{concat(node(),'_SEE_ALSO')}"/>
 </object>

</xsl:template>

Any/all help greatly appreciated, this has been the bane of my existence the past few days.

  • 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-05-23T22:24:33+00:00Added an answer on May 23, 2026 at 10:24 pm

    I don’t know if this is going to help anyone else, but I semi-figured out a solution. I switched from ALinks to Related Topics, and fixed up the code. Here’s the result:

    The XML:

    <showSeeAlso/>
    <see>tag1</see> 
    <see>tag2</see>
    <see>tag3</see>
    

    The XSLT:

      <xsl:if test="showSeeAlso">
        <object id="hhctrl" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" codebase="hhctrl.ocx#Version=6,1,7600,16385">
        <param name="Command" value="Related Topics, DIALOG"/>
        <param name="Text" value="Text:See Also"/>
        <xsl:apply-templates select="see"/>
       </object>
      </xsl:if>
    
      <xsl:template match="see">
        <xsl:variable name="tag" select="."/>
         <xsl:variable name="count">
      <xsl:number/>
     </xsl:variable>
    
     <param name="Item{$count}" value="{$tag};{$tag}.html"/>
    
     </xsl:template>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I know there's a lot of other questions out there that deal with this

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.