Re: [xsl] Transform with Multiple Files

Subject: Re: [xsl] Transform with Multiple Files
From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx>
Date: Thu, 3 Dec 2009 16:31:21 +0100
Those two just dont 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[@w:id=$commentID]//w:t"/>


- Michael M|ller-Hillebrand

--
_______________________________________________________________
Michael M|ller-Hillebrand: Dokumentations-Technologie
Adobe Certified Expert, FrameMaker
Lvsungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747

Current Thread