[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: selecting an element in an external doc using its
Hi Jarkko,
the answer was already given by Joerg Pietschmann. In XSLT a id()-function exists, which Cindy is using (only in a wrong way). When you want to use id() you have to declare an attribute in the DTD as ID. You will have fast access to this element, which has the value given as parameter to id(). It's similar to the key(), but you don't need to construct a key(), you only need the DTD. The problem Cindy has with her code is the writing of the expression. A function must not be written after an XPATH. So she must change the context before using id() to the other file: <xsl:for-each select="$docnode"> <xsl:value-of select="id($from)"/> </xsl:for-each> Regards, Joerg Jarkko.Moilanen@xxxxxx wrote: Lainaus Cindy Mazza <clm6u@xxxxxxxxxxxx>: XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|