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

Re: Comments, and entities

Subject: Re: Comments, and entities
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 21 Dec 1999 16:27:01 GMT
Re: Comments
> I've tried the following under XT (latest 
> version), but it produces no output...

AN XML parser is at liberty to discard comments (that's why they are
called comments) If the parser does discard them then they are gone
before xsl gets a chance to match against them. If they are not
discarded, the syntax you quoted should work.

For xt you can tell it to use a non standard sax extension that keeps
comments by using the following switch on your java call

-Dcom.jclark.xsl.sax.parser=com.jclark.xml.sax.CommentDriver 


> Also, is there a way to determine if a document contains an 
> entity reference?
They are expanded by the XML parser so they are not in the source tree
that XSL sees, even if they were in the original file.

David


 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.