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

RE: template match for subelement throughout tree

Subject: RE: template match for subelement throughout tree
From: "bix xslt" <bix_xslt@xxxxxxxxxxx>
Date: Thu, 10 Apr 2003 23:37:00 +0000
xslt subelement
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>

Thanks, Ken. I thought using "//para" matched ALL occurrences in the doc?

Yes, it should match all para elements from the root node of the current xml tree.



<xsl:template match="para"> <p><xsl:apply-templates/></p> </xsl:template>

Kathy,


It might be more beneficial if you provided an example XML and the full XSL. From your small snippet, there doesn't appear to be anything that 'jumps out'. In other words, what type of output do you see as compared to what you want?

The following works fine on MSXML4:
XML:
<para>This is a sample paragraph</para>

XSL:
<x:stylesheet version="1.0"
 xmlns:x="http://www.w3.org/1999/XSL/Transform">
 <x:output method="html" indent="yes"/>
 <x:template match="/">
   <x:apply-templates select="//para"/>
 </x:template>
 <x:template match="para">
   <p><x:apply-templates/></p>
 </x:template>
</x:stylesheet>

Output:
<p>This is a sample paragraph</p>

bix






_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



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.