Subject: Re: [xsl] Transform XML to XML From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 26 Aug 2005 09:56:42 -0400 |
I guess, like security best practices, my mindset is "don't allow it unless I explicitly ask for it." But I guess it doesn't work that way so I shouldn't fight it.
I typically begin every stylesheet with a template that looks like
<xsl:template match="*">
<xsl:message>Unsupported element: <xsl:value-of select="name()"/></xsl:message>
</xsl:template>
and so have to keep adding templates until my stylesheet stops moaning on all test cases.
<xsl:template match="*"> <xsl:message>Unsupported element: <xsl:value-of select="name()"/></xsl:message> <xsl:apply-templates/> </xsl:template>
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Transform XML to XML, David Carlisle | Thread | Re: [xsl] Transform XML to XML, David Carlisle |
RE: [xsl] Transform XML to XML, Mike Schinkel | Date | Re: [xsl] sending more than one par, JBryant |
Month |