|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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. 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. To summarize my requirement is that i want all stylesheets to import a commom pagestructure.xsl and be able to call templates at will or at points where we need. --Vijay __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








