Subject: Re: [xsl] Copy-per-default From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 21 Apr 2011 11:43:07 -0400 |
Yeah, things work great now, albeit with a caveat or two (see my e-mail to Florent Georges).
I understand the point you are making regarding the *|/ template. It has its benefits, but I am sort of a control freak or perfectionist if you will. For my part, I'd really prefer "whitelisting" the things I want to happen and being meticulous in the pattern design. Someone suggested adding a "null" template for d:book/d:info specifically instead of for *, but that'd be a form of blacklisting and relies on me knowing any and all possible subnode types today and for all time to come....
<xsl:template match="d:book"> <xsl:apply-templates select="d:body"/> </xsl:template>
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Copy-per-default, Florent Georges | Thread | RE: [xsl] Copy-per-default, Fredrik Bengtsson |
Re: [xsl] Variations in XML to CSV, Michael Kay | Date | Re: [xsl] Variations in XML to CSV, Michel Hendriksen |
Month |