Those two just don’t match:
Am 03.12.2009 um 14:37 schrieb Ramkumar:
<xsl:value-of
select="document('comments.xml')/w:comments/w:comment[w:id=$commentID]/w:p"/>
and [heavily abbreviated]
<w:comment w:id="1">
<w:p>
<w:pPr>
<w:pStyle />
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle/>
</w:rPr>
<w:annotationRef/>
</w:r>
<w:r>
<w:t>This is my comment</w:t>
</w:r>
</w:p>
</w:comment>
There is no <w:comments> in the XML, and the w:comment does not have a
child::w:id (but an @w:id). Also, as Michael Kay suggested, there may be
namespace problems involved. If not, something like this might help:
<xsl:value-of
select="document('comments.xml')/w:comment[(_at_)w:id=$commentID]//w:t"/>
- Michael Müller-Hillebrand
--
_______________________________________________________________
Michael Müller-Hillebrand: Dokumentations-Technologie
Adobe Certified Expert, FrameMaker
Lösungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747
--~------------------------------------------------------------------
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>
--~--