[xslt] Question concerning paths



Hi everybody,

I have a little problem with a XSL file someone give me. This stylesheet
has to deal with many XML source file, it access them trough XPath
expression in this way:
---- CODE ----
<xsl:variable name="metaDoc">
    <xsl:copy-of select="document(/a_certain_path/meta.xml)"/>
</xsl:variable>

<xsl:template name="getAuthor">
    <xsl:attribute name="author">
        <xsl:value-of
select="$metaDoc/office:document-meta/office:meta/dc:creator"/>
    </xsl:attribute>
</xsl:template>
---- END ----

Until now, i didn't manage to make this working, the xpath expression:
$metaDoc/office:document-meta/office:meta/dc:creator
does never match anything, displaying: "XPath evaluation returned no result"

Can someone enlighten me? Your help would be much appreciated...
M. H.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]