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

 

 

 
 

Reply via email to