|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: MERGING 2 XML DOCS WITH dom4j parser
Lea Allison wrote:
The problem I find with this method, is that by using a parameter / variable to import the second document I have to use a for-each loop with the $importedDoc to be able to apply the templates to this data. Why not just <xsl:apply-templates select="$importedDoc/*"/> ? What do you mean by "I view outputed XML from the stylesheet" ? Pass its name as parameter too.Actually it would be ideal to get two combined documents returned to the users browser as XML. ie. <DOCUMENT>
<xsl:element name="{$imported-doc-name}">
<!-- Process imported doc -->
<xsl:apply-templates select="$imported-doc" mode="imported"/>
<xsl:element>
<!-- Process main doc -->
<xsl:apply-templates/>
</DOCUMENT>-- Oleg Tkachenko Multiconn International, Israel XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








