Subject: Re: A multiple input files question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Dec 1999 18:30:05 GMT
|
I have a source XML document (primary) and a secondary (virtual) XML
document that contains only links (xlinks) to the primary document. I
would like to know if it possible to use a XSLT document to produce a
standalone XML document (kind of compilation) that would resolve the
whole links from my virtual XML document.
yes if the links were in xhtml syntax (just to make it simple)
<a href="fooo"/>
then you just want a template that expands that
<xsl:template match="a[@href]">
<xsl:apply-templates select="document(@href)"/>
</xsl:template>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|