क्या xslt फ़ाइल के भीतर से वर्तमान फ़ोल्डर पथ प्राप्त करने का कोई तरीका है?
यह अन्य XML और XSLT फ़ाइलों
किसी भी विस्तार कार्यों या यहाँ तक कि ऐसा करने के लिए मापदंडों के लिए कोई ज़रूरत नहीं पता लगाने के लिए की आवश्यकता है!
किसी भी रिश्तेदार एक <xsl:import>
या <xsl:include>
शिक्षा का href
विशेषता में प्रयोग किया जाता URL को नवीनतम XSLT स्टाइलशीट का URL के आधार पर हल कर रहे हैं - यह केवल एक यूआरएल है, जो vlearly के रूप में कहा गया है की जरूरत है उपरोक्त प्रश्न में सच है। यह एक्सएसएलटी स्टाइलशीट आयात/निर्यात करने में बहुत सुविधाजनक है।
document()
समारोह भी उसी तरह में एक रिश्तेदार URL का समाधान होगा, इस प्रकार anrelative यूआरएल का उपयोग कर किसी भी अतिरिक्त XML दस्तावेज सुलभ बनाने।
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="xs xdt f"
>
<!--
This module contains the FXSL versions of the "standard" XPath functions
These are intended as convenience functions, so that they can be passed
as parameters to other functions (e.g. to f:zipWith())
or curried and passed as parameters (e.g. to f:map())
-->
<xsl:import href="func-curry.xsl"/>
<xsl:import href="func-compose-flist.xsl"/>
<xsl:import href="func-standardArithmeticXpathFunctions.xsl"/>
<xsl:import href="func-standardBooleanXpathFunctions.xsl"/>
<xsl:import href="func-standardStringXpathFunctions.xsl"/>
<xsl:import href="func-standardNodesXpathFunctions.xsl"/>
<xsl:import href="func-standardSequencesXpathFunctions.xsl"/>
<xsl:import href="func-standardAggregateXpathFunctions.xsl"/>
<xsl:import href="func-standardDateTimeXpathFunctions.xsl"/>
<xsl:import href="func-standardXSLTXpathFunctions.xsl"/>
<xsl:import href="func-standardAxisXpathFunctions.xsl"/>
</xsl:stylesheet>
स्रोत
2009-02-13 17:35:09
यह सुनिश्चित नहीं है कि यह क्यों मतदान किया गया था। यह वास्तव में काम करता है। – Tomalak
इसके लिए खेद है। मैंने इसे गैर मानक विस्तार का उपयोग करने के लिए वोट दिया, लेकिन मेरा जवाब जोड़ने के बाद, मुझे एहसास हुआ कि मैंने वही बात सुझाई है। मुझे लगता है कि ऐसा करने के लिए कोई 'मानक' तरीका नहीं है। (पैराम का उपयोग करने के अलावा) –
आपकी तर्क समझाने के लिए धन्यवाद, बहुत सराहना की। :-) – Tomalak