Hi,
I've the below piece of XML.
<toc-div><title>CHAPTER 1 INTRODUCTION</title><subtitle><content-stylefont-style="italic">David Smith</content-style></subtitle><toc-item><toc-title>1. Love on the Star Ferry</toc-title><toc-pg>2</toc-pg></toc-item><toc-item><toc-title>2. Contracts, Torts, Copyrights and Other Mysteries of the Legal World</toc-title><toc-pg>2</toc-pg></toc-item></toc-div>
here actually i want to get the reference that matches the title from different document.
the second document i have is
<chapternum="1"><toc><toc-part><toc-div><toc-item><toc-title>1. Love on the Star Ferry</toc-title><toc-pg>1.002</toc-pg></toc-item><toc-item><toc-title>2. Contracts, Torts, Copyrights and Other Mysteries of the Legal World</toc-title><toc-pg>1.004</toc-pg></toc-item></toc-div></toc-part></toc></chapter>
the condition is , first he title should be matched in both cases and then the <toc-pg>
should
be taken and displayed. i'm able to redirect to that document by using the below xslt, but i'm unable to know how i can retrieve these values. below is the XSLT i tried.
<xsl:templatematch="toc-item"><xsl:variablename="prent"><xsl:value-ofselect="substring-before(substring-after(../title,' '),' ')"/></xsl:variable><xsl:variablename="tex"><xsl:value-ofselect="./toc-title/text()"/></xsl:variable><xsl:variablename="cha"><xsl:value-ofselect="$prent"/></xsl:variable><xsl:iftest="document(concat('C:\Documents and Settings\u0138039\Desktop\Proview\HK\Business Law in Hong Kong\Source\Business Law in Hong Kong/Chapter ',$cha,'.xml'))/chapter/toc/toc-part/toc-div/toc-item/toc-title/text() = ./toc-title/text()"><xsl:copy-ofselect="$tex"/><xsl:apply-templatesselect="document(concat('C:\Documents and Settings\u0138039\Desktop\Proview\HK\Business Law in Hong Kong\Source\Business Law in Hong Kong/Chapter ',$cha,'.xml'))/chapter/toc/toc-part/toc-div/toc-item/toc-title"mode="x"/></xsl:if></xsl:template>
please let me know how can i see the value expected.
Thanks