cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Häner <rainer.hae...@gfz-potsdam.de>
Subject including fragments of xml-documents
Date Fri, 16 Aug 2002 11:51:40 GMT
hallo,
i want to include single-nodes or fragments of xml-documents.

simply i can do this with a stylesheet

<xsl:template match="xlink">
...
<!-- show attributes -->
<xsl:value-of select="@pathToFile"/>
<!-- => docs/samples/xml-file.xml -->
<xsl:value-of select="@xpathExpression"/>
<!-- => /document/title -->

<xsl:copy-of select="document(@pathToFile)/document/title"/>
<!-- okay -->

<xsl:copy-of select="document(@pathToFile)/@xpathExpression"/>
<!-- dosn't work -->
...
</xsl:template>

the xpathExpression is variable, depending on the xml-document, which
is transformed by the stylesheet:

suggestions? i there a way do handle this problem with logicsheets, for example:
XSPUtil.includeSource(<xsl:copy-of select="$pathToFile"/>, null, this.resolver, this.contentHandler);

the complete file is included



thanks for your help in advance

rainer








Mime
View raw message