Subject: Re: [xsl] after use of document(): selecting parts of the obtained node-set From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 11 Apr 2002 18:15:51 -0400 |
I use the document function to load a document from within a stylesheet, and store the resulting nodeset in a variable:
<xsl:variable name="itn" select="document(itn.xml)" />
Now I'd like to access certain parts of this nodeset, like this:
<xsl:template>
...
<xsl:apply-templates select="$itn/logo" />
...
</xsl:template>
and for the sub-nodeset $itn/logo I have the following template:
<xsl:template match="itn/logo"> extract data </xsl>
Unfortunately, whenever I try this combination, the result of my <xsl:apply-templates select="$itn/logo"> is empty. The same is true when I do a select like <xsl:apply-templates select="$itn//logo">.
Maybe I haven't understood the functionality of document() or how to access parts of a node set that is returned by document()? Can someone help me, please?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] after use of document(): sele, Ralph Holz | Thread | Re: [xsl] after use of document(): , Joerg Heinicke |
[xsl] after use of document(): sele, Ralph Holz | Date | Re: [xsl] after use of document(): , Joerg Heinicke |
Month |