xsl-list
[Top] [All Lists]

RE: [xsl] Transform with Multiple Files

2009-12-03 08:32:57
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.



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--