Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refering an outer element in xsl 1

Status
Not open for further replies.

sheila11

Programmer
Joined
Dec 27, 2000
Messages
251
Location
US
Hi all,

My XML looks like this:

<root>
<title>Some title here </title>
<table>
.....many table tags here with content....
</table>

</root>

Now in my XSL, when writing a template for the <table> tag, I need to refer to the <title> tag, and place it inside the <table> tags as:
<xsl:template match="table">
<cation><xsl:value-of select="????" /> </caption>
......
</xsl:template>

so that the <caption> tags appear within the <table> tags.

Is it possible to do this ? How?

TIA,
Sheila
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top