xsl:import and xsl:include
-
Someone can tell me the difference betweem
xsl:import
andxsl:include
? I can't get it :( Please don't post a description from MSDN here :) I have it already :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
Someone can tell me the difference betweem
xsl:import
andxsl:include
? I can't get it :( Please don't post a description from MSDN here :) I have it already :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" ShakesbeerFrom w3schools: Note the precedence comment. IMPORT http://www.w3schools.com/xsl/el\_import.asp The element is a top-level element that is used to import the contents of one style sheet into another. Note: An imported style sheet has lower precedence than the importing style sheet. Note: This element must appear as the first child node of or . Note: Netscape 6 does not support import precedence, so this element will behave equivalent to . INCLUDE http://www.w3schools.com/xsl/el\_include.asp Definition and Usage The element is a top-level element that includes the contents of one style sheet into another. Note: An included style sheet has the same precedence as the including style sheet. Note: This element must appear as a child node of or . EDIT - do not know why the sentences got trimmed but I think you can see the difference - end edit. "I will find a new sig someday."
-
From w3schools: Note the precedence comment. IMPORT http://www.w3schools.com/xsl/el\_import.asp The element is a top-level element that is used to import the contents of one style sheet into another. Note: An imported style sheet has lower precedence than the importing style sheet. Note: This element must appear as the first child node of or . Note: Netscape 6 does not support import precedence, so this element will behave equivalent to . INCLUDE http://www.w3schools.com/xsl/el\_include.asp Definition and Usage The element is a top-level element that includes the contents of one style sheet into another. Note: An included style sheet has the same precedence as the including style sheet. Note: This element must appear as a child node of or . EDIT - do not know why the sentences got trimmed but I think you can see the difference - end edit. "I will find a new sig someday."
Hmm.... precedence... Can you give me a small example? Is that like this scenario: Both imported and importing XSLTs has a
xsl:template
named "template". But only the importing (main) will work in case ofxsl:import
, right? In case ofxsl:include
both will be called? Same if 2 templates has same match attribute? I think I'm lost, lol <edited> or in both cases they will be called, but when use import the template from main XSLT will be used first and always? </edited> Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer -
Hmm.... precedence... Can you give me a small example? Is that like this scenario: Both imported and importing XSLTs has a
xsl:template
named "template". But only the importing (main) will work in case ofxsl:import
, right? In case ofxsl:include
both will be called? Same if 2 templates has same match attribute? I think I'm lost, lol <edited> or in both cases they will be called, but when use import the template from main XSLT will be used first and always? </edited> Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" ShakesbeerYou got the concept. Make a few simple examples and step through them. If you can not justify a xslt edit/debug purchase, try cooktop. It is free and although does not debug, it can work with several processors and you can see the output right away. http://www.xmlcooktop.com/[^] "I will find a new sig someday."
-
You got the concept. Make a few simple examples and step through them. If you can not justify a xslt edit/debug purchase, try cooktop. It is free and although does not debug, it can work with several processors and you can see the output right away. http://www.xmlcooktop.com/[^] "I will find a new sig someday."
Ah, thanx :) Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer