Related Content

Hi all

does anybody know how to access the values of related content. I have a snippet which has an image as related content and i am trying to access the name of the image.

so i can use

/*/linkurl/Value/@current

to get the url of the related content - but i don’t know how to access the xml of that related content and get the value at /*/posharedimage/image_filename.

thanks
michelle

Hi Michelle

You use the document function eg

<xsl:variable name="doc" select="document(/*/linkurl/Value/@current)" />

<xsl:value-of select="$doc/*/posharedimage/image_filename" />

Cheers
James

thanks james - i’ll give that a go

Sorry to hijack. Once we use the document to get the html, how can we get the xml within that?