Click here to Skip to main content
15,914,500 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Generalsend xml Pin
hmdhmd27-Apr-04 0:58
hmdhmd27-Apr-04 0:58 
GeneralRe: send xml Pin
Ryan Roberts27-Apr-04 3:03
Ryan Roberts27-Apr-04 3:03 
GeneralRe: send xml Pin
Anonymous28-Apr-04 23:55
Anonymous28-Apr-04 23:55 
GeneralIXMLDOM Pin
Stojan7823-Apr-04 1:21
Stojan7823-Apr-04 1:21 
Generalxml digital signature Pin
nuez21-Apr-04 4:56
nuez21-Apr-04 4:56 
GeneralRe: xml digital signature Pin
ian mariano25-Apr-04 14:40
ian mariano25-Apr-04 14:40 
QuestionAvailable DTD for MS Project? Pin
anderslundsgard19-Apr-04 20:30
anderslundsgard19-Apr-04 20:30 
QuestionHow to include different XSLT files on the fly based on some criteria? Pin
Mohit19-Apr-04 12:09
Mohit19-Apr-04 12:09 
Hi FriendsSmile | :)

I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by version 2 of XSLT processor based on some condition.

Q) How and where shall I write logic or import desirable XSLT on the Fly ?
Q) When we call AAA.XSLT then it will be processed by XSLT Processor 1 and when we call BBB.XSLT,it will be called by XSLT processor 2. (This is what I want to happen). Is this statement correct? Is it possible?

---Main.XSLT-----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- This functionality is not supported. -->
<xsl:choose>
<xsl:when test = "X = AAA">
<xsl:include href=".\AAA.xslt"/>
</xsl:when>
<xsl:when test = "X = BBB">
<xsl:include href=".\BBB.xslt"/>
</xsl:when>
</xsl:choose>
</xsl:stylesheet>
----------------

---AAA.XSLT----------
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!----some code here for version 1 of xslt---->
</xsl:template>
</xsl:stylesheet>


---BBB.XSLT-----------
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!------some code here for version 2 of xslt---->
</xsl:template>
</xsl:stylesheet>


Thanks

Mohit
mohitfl@hotmail.com
QuestionCan Fill Pin
wokankan19-Apr-04 1:17
wokankan19-Apr-04 1:17 
GeneralAn xml browser-based electronic medical record Pin
ejam17-Apr-04 19:21
ejam17-Apr-04 19:21 
GeneralRe: An xml browser-based electronic medical record Pin
Member 52486620-Apr-04 5:45
Member 52486620-Apr-04 5:45 
GeneralInner XML Pin
jithen_dt16-Apr-04 3:15
jithen_dt16-Apr-04 3:15 
GeneralRe: Inner XML Pin
Mike Ellison18-Apr-04 19:54
Mike Ellison18-Apr-04 19:54 
GeneralXML/XSLT/XML Schema questions Pin
rt280016-Apr-04 2:57
professionalrt280016-Apr-04 2:57 
GeneralXSLT over unknown XML(DTD) (XML to SQL INSERT(s)) Pin
Stoian Ivanov13-Apr-04 23:06
Stoian Ivanov13-Apr-04 23:06 
Generalxml file capacity Pin
karanba12-Apr-04 8:59
karanba12-Apr-04 8:59 
GeneralRe: xml file capacity Pin
Steven Campbell13-Apr-04 8:42
Steven Campbell13-Apr-04 8:42 
Generaltrying to write an XSL conditional statement Pin
feline_dracoform8-Apr-04 4:59
feline_dracoform8-Apr-04 4:59 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 3:57
Philip Fitzsimons14-Apr-04 3:57 
GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform14-Apr-04 4:52
feline_dracoform14-Apr-04 4:52 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 4:56
Philip Fitzsimons14-Apr-04 4:56 
GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform14-Apr-04 6:00
feline_dracoform14-Apr-04 6:00 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 6:03
Philip Fitzsimons14-Apr-04 6:03 
GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform14-Apr-04 6:38
feline_dracoform14-Apr-04 6:38 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 22:45
Philip Fitzsimons14-Apr-04 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.