RE: [xsl] Transform with Multiple Files

Subject: RE: [xsl] Transform with Multiple Files
From: "Ramkumar" <ramkumar@xxxxxxxxxxxxxxxxxx>
Date: Thu, 3 Dec 2009 19:07:15 +0530
Hi Martin Honnen,

Part of my XSLT Code:

<xsl:when test="w:commentReference/@w:id">
	<xsl:variable name="commentID"><xsl:value-of
select="w:commentReference/@w:id"/></xsl:variable>
	<span class="{$commentID}"><xsl:value-of
select="document('comments.xml')/w:comments/w:comment[w:id=$commentID]/w:p"/
></span>
</xsl:when>	

Comment.xml placed on xslt path. It contains.

<w:comment w:id="1" w:author="Ramkumar" w:date="2009-12-02T18:10:00Z"
w:initials="V"><w:p w:rsidR="00196A26"
w:rsidRDefault="00196A26"><w:pPr><w:pStyle
w:val="CommentText"/></w:pPr><w:r><w:rPr><w:rStyle
w:val="CommentReference"/></w:rPr><w:annotationRef/></w:r><w:r><w:t>This is
my comment</w:t></w:r></w:p></w:comment>

Part of Output by the above code:

<span class="1"> </span>

Expected:

<span class="1"> This is my comment </span>

Note: I am transforming from Word ML to HTML transformation.

Regards,
Ramkumar.

Current Thread