Woodchuck wrote:


actually i'm using Ant too. i'm pre-compiling using the <jspc> task
and it generates a file containing <servlet> and <servlet-mapping>
tags. that's exactly what i need to do really, is to merge this file
with my web.xml file. if you can show me how you're doing it that
would be great, thanks! i didn't look into doing this right away
because i thought it would be simpler to just have web.xml point to
this file... :p


You could use XSL and output a file from something like:


<xsl:variable name="otherDescriptor" select="document('_web.xml')/*"/>

<xsl:template match="/">
 <xsl:apply-templates select="//filter"/>
 <xsl:apply-templates select="$otherDescriptor//filter"/>
 <xsl:apply-templates select="//filter-mapping"/>
 <xsl:apply-templates select="$otherDescriptor//filter-mapping"/>
 <xsl:apply-templates select="//servlet"/>
 <xsl:apply-templates select="$otherDescriptor//servlet"/>
 <xsl:apply-templates select="//servlet-mapping"/>
 <xsl:apply-templates select="$otherDescriptor//servlet-mapping"/>
</xsl:template>

best,
-Rob

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



Reply via email to