[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Copy-per-default
Hi,
On 4/21/2011 4:08 AM, Fredrik Bengtsson wrote: Yeah, things work great now, albeit with a caveat or two (see my e-mail to Florent Georges). If you want absolutely to control what you get, you can take the "pull" approach and select just the nodes you want. So if d:book has a d:body child that you want, and you want no others (no d:info or anything else), you say <xsl:template match="d:book"> <xsl:apply-templates select="d:body"/> </xsl:template> XSLT is actually really good for control freaks, because you can control what you want to control and what you leave your own mitts off of, relegating control to other parts of the system. Commonly, we rely on schemas and validation to handle the whitelisting part of the problem. This level of control and meta-control does require understanding the processing model and the overall system design. "Use the Force, Luke". Cheers, Wendell ====================================================================== 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
|