Developer forum

Forum » Templates » RE: xslt and breadcrumb microdata

RE: xslt and breadcrumb microdata

Jan Sangill
Reply

Hi,

In this case:

 <a itemprop="url" >
                <xsl:attribute name="href">
                    <xsl:value-of select="@FriendlyHref" disable-output-escaping="yes"/>
                </xsl:attribute>
                <xsl:value-of select="@MenuText" disable-output-escaping="yes"/>
            </a>

How would I go about making it look like this in xslt:

<a itemprop="url" href="/">
      <span itemprop="title">Forside</span>
</a>

Basically I need the span to be around the @Menutext


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

Unless I'm missing something you just have to write

<span itemprop="title">
  <xsl:value-of select="@MenuText" disable-output-escaping="yes"/>
</span>

Best regards,
Mikkel

Votes for this answer: 1
 
Jan Sangill
Reply

Wow,

Im embaressed. Did not even think that was possible:(

Was sure I had to write it in the "select" of some sort.

:((

Ty for the help and making me look stupid:)

 

 

You must be logged in to post in the forum