[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Transform with Multiple Files

Subject: Re: Transform with Multiple Files
From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx>
Date: Thu, 3 Dec 2009 16:31:21 +0100
Re:  Transform with Multiple Files
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.