Subject: Re: Apply-templates for getting around my XML doc? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 11 Oct 2000 20:21:31 +0100 |
OK. If I wanted to process specific elements only, and no others, in the order listed in the stylesheet,
would the following XSLT be a correct way to navigate around?
<xsl:stylesheet etc.>
<xsl:template match='/'>
<xsl:apply-templates select="/L/0/iii"/> <!-- does this pass the ball directly to the template listed below?-->
</xsl:template>
<xsl:template match="/L/8/iii">
<!--do something-->
<xsl:apply-templates select="/X/4/vii"/> <!--and then does this go to the next template?-->
</xsl:template>
Hopefully this can eliminate [this style of navigating] as a potential error. I don't understand how the processor thinks, and I had some problems with templates being ignored, but a wise man recommended this style as a [simple-enough-for-even-me-to-understand] potential solution. Have I missed even that boat?
<xsl:template match="X/8/iii"> <xsl:apply-templates select="//L/4/ii"/> </xsl:template>
Good luck, 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: Apply-templates for getting aro, David Carlisle | Thread | Using document() to check the exist, Mac Schwarz |
Copying and Transforming/Recursion?, Jeff Saylor | Date | XML Join, Alin Simionoiu |
Month |