Hi, first of all thanks for your answer :)

We we're able to do that this way:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
    <xsl:output method="xml"/>
    <xsl:variable name="emps" select="document('employeeNames.xml')"/>
    <xsl:template match="/">
        <employees>
        <xsl:for-each select="employees/child::*">
            <xsl:copy-of select="."/>
        </xsl:for-each>
        <xsl:for-each select="$emps/employees/child::*">
            <xsl:copy-of select="."/>
        </xsl:for-each>
        </employees>
    </xsl:template>
</xsl:stylesheet>

In the above code, we copy every employees entries from the file in the
generator pipeline, and thenthe employees entries on the $emps xml document,
and enclose by a <employees> tag, and it worked fine...

But what we see in your example, is that we can accomplish the other
objective we've just asked, by transforming one time to the source write,
and transform another time to html, and then show the results to browser :)

We'll try your tips on that!

Thanks again :)

Joao Cesar
[EMAIL PROTECTED]

Computer Science Student's @ University of Lisboa, PORTUGAL



----- Original Message -----
From: "Upayavira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 05, 2003 7:31 PM
Subject: Re: SourceWrite error :|


> > Yeah... but that way I can do it grabbing the new data in the
> > generator pipeline, and in the transformer grab the local repository
> > to merge with, or grab the local data in the generator, and then grab
> > the remote data on by xslt... what's easier?
>
> I would use an aggregator:
>
> <map:match pattern="xxxxx">
>   <map:aggregate element="page">
>     <map:part src="newcontent.xml"/>
>     <map:part src="originalsource.xml/">
>   </map:aggregate>
>   <map:transform src="prepare-source.xsl"/>
>   <map:transform type="source-writing"/>
>   <map:transform src="source-result.xsl"/>
>   <map:serialize type="html"/>
> </map:match>
>
> Here you aggregate your two xmls into a single stream wrapped with a
<page>
> node. Then you transform these two xmls into a form ready for the source
writing
> transformer. Then you do the source write. Then, finally, you convert the
result of
> the write into html to present success or failure to the web user.
>
> Make sense?
>
> Regards, Upayavira
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to