get content by content id

hi

is there a way in xsl to get some content, if the user provides the content id.

so what i want to do is provide the user with a field where they enter the content id of another piece of content then in my variant i want to grab and display certain bits of that content, ie H1, body.

the users would prefer to provide the content id, rather than assembling the item in a slot.

thanks
michelle

in XSL, yes:

<xsl:variable name=“something” select=“document(DATA_URL)”/>

replace “something” with whatever you like, and DATA_URL with the url to fetch your data… usually, you can construct this by pasting in a preview url and replacing the contentid in that url with the one from your current field.

doing this in velocity is a touch trickier.

many thanks