[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Removing line-feeds on a imported tree via do
Antonio,
You could use templates: <xsl:variable name="xmldoc" select="document($xmluri)/Menus/Menu"/> ... <xsl:apply-templates select="$xmldoc" mode="menu"/> ... <xsl:template match="*" mode="menu"> <!-- copies any elements --> <xsl:copy> <xsl:apply-templates mode="menu"/> </xsl:copy> </xsl:template> <xsl:template match="text()" mode="menu"> <!-- trims whitespace --> <xsl:value-of select="normalize-space(.)"/> </xsl:template> Of course, it works by applying a modification of the identity transform to the node set you call in. Cheers, Wendell At 02:28 PM 1/25/2005, you wrote: I've solved my problem but i would like a more elegant solution, if there is one... ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
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
|