[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Keeping comments in an XML file

Subject: Keeping comments in an XML file
From: Julie Holloway <jhllwy@xxxxxxxxx>
Date: Wed, 3 Sep 2003 11:49:32 -0700 (PDT)
comments in xml file
Thanks everyone for your previous answers.
Following is my xsl script.  As tested using WSAD,
comments are kept in the resulting xml file.  However,
when used with ISMP, the comments are removed.  I am
wondering if there is a better way to keep the
comments.

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

    <xsl:output method="xml" />

    <!-- <xsl:template match="*|@*">  -->
    <xsl:template match="*|@*|comment()">
	<xsl:copy>
	  <xsl:apply-templates select="@*" /> 
	  <xsl:apply-templates select="node( )" /> 
	</xsl:copy>
    </xsl:template>
    
    <xsl:template
match="import[@plugin='com.test.ejbdeploy.ui']"/>
    <xsl:template
match="extension[view/@name='%Ejb_Project_view']"/>
    <xsl:template
match="extension[wizard/@name='%Ejb_Project_wizard_name']"/>
    <xsl:template
match="extension[@name='%Ejb_Nature_name']"/>
        		  		
</xsl:stylesheet>


=====
Julie

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.