When I add

  <table >   
      <xsl:apply-templates select='Rows/Row'/>
    <xsl:template match='Row'>
         <xsl:value-of select="@URLwMenu" disable-output-escaping="yes"/>

,nothing appears. How can I use URLwMenu Field Ref with xslt?

Edited: I found this answer but it only shows URL not the description. I don't want the urls appear. The descriptions of the URLs have to appear. http://social.technet.microsoft.com/Forums/bs-Cyrl-BA/sharepointfr/thread/8a368e8f-459e-496e-925e-298810d3184b

  <xsl:template match='dsQueryResponse' ...>
  <xsl:template match="Row">
         <xsl:element name="a">
              <xsl:attribute name="href"><xsl:value-of select="@URLwMenu"/></xsl:attribute>
              <xsl:value-of select="@URL"/>

I think I have to put something else instead of 'dsQueryResponse'.


For the actual hyperlink use @URL For the description use @URL.desc

<a href="{@URL}><xsl:value-of select="@URL.desc" /></a>

Hope this helps



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.