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

Re: Problem with <xsl:import> and <xsl:call-template>!

Subject: Re: Problem with <xsl:import> and <xsl:call-template>!
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Tue, 3 Jul 2001 07:46:07 +0100
Re:  Problem with <xsl:import> and <xsl:call-template>!
> Hi
> I had earlier posted this problem and thought the
> problem was solved although i think there IS a serious
> problem.
>
> I have stylesheet B importing stylesheet A ie A
> defines the PageStructure and hence all our
> stylesheets import stylesheet A.
> Stylesheet A matches the topmost node of the xml and
> generates the <HTML> and body tags.It then does an
> "apply-templates" obviously.
> Now the xml grows in size and the stylesheets get
> reused the problem is that they get applied just by
> importing for eg say i have a stylesheet that
> resuses/imports 2 stylesheets and needs to call the
> templates from those stylesheets at different
> locations/postions while formatting html.
> However they just get applied just by importing and an
> explicit call-template seems useless.The content just
> gets outputted.



using <xsl:template match="somelement"> in conjunction with
<xsl:apply-templates/> will auto match default templates.


using <xsl:template name="templatename"> in conjunction with
<xsl:call-template name="templatename"/> will only fire off that template
when u want it


> So now we got around the problem by forcefully putting
> "modes" and puposefully matching tags with no
> content.However i wanted to know if this is the way
> everybody does or is there something that i am
> missing.

using modes are useful, but i am unsure if u are using this, because u dont
understand the technique of calling a template vs auto matching a template.

i would like to help, if u send example xml/xsl then we can have a go.

cheers, jim fuller


 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.