Subject: Re: [xsl] Conditional use of <xsl:apply-imports> or <xsl:import> XSLT 2.0 From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 11 Jul 2008 10:58:11 -0400 |
<xsl:template match="article/meta/journalcode[.='ABCD' | 'EFGH' | 'IJKL' | 'LMNO']"> <xsl:apply-imports/> <!-- Some thing I need to do here --> </xsl:template>
Another way of get it done is use of "mode" attribute <xsl:apply-templates mode="Reference-style-1"/>, which infact I was using as of now, but I ending up defining a huge stylesheet. This was reason I thought of having different modules to make the things manageable.
My questions: =============
1. Can the conditional apply-imports can be done.
(XSLT 2.0) <xsl:template match="article/meta/journalcode [.=('ABCD','EFGH','IJKL','LMNO')]">
(XSLT 1.0) <xsl:template match="article/meta/journalcode [.='ABCD' or .='EFGH' or .='IJKL' or .='LMNO']">
Or even conditional import of <xsl:import> instead of declaring all of them on top?
2. I have also noticed that my transformation taking much more time after declaring (xsl:import) all the stylesheet on top. Do this have anything to do with importing lots of stylesheet or this my incorrect clairvoyance? I am using XMLSPY enterprise edition.
3. Finally, is this a correct method to approach?
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 -> |
---|---|---|
[xsl] Conditional use of <xsl:apply, Pankaj Chaturvedi | Thread | [xsl] Combining XML XBEL files, Aaron Gray |
[xsl] Conditional use of <xsl:apply, Pankaj Chaturvedi | Date | RE: [xsl] Find the root element fro, Marroc |
Month |