xslt - File separator character based on the operating system -


I want to process a file path but its operation depends on operating system. Right now I am deciding to use regular expressions that I should use '/' or '\'.

Is there any legitimate way to use file separator characters in the name of operating system or operating system?

Reference:

Creates an XML file with an OS based file path in a third-partial program ("[Linux letter]: \ ... \ ..." Or / ... / ... "format) and there is no access to the third party program.

< P> If you are talking about the XSLT document function to read in XML documents then its argument is the list of urls and nodes with URL or url, separated by the separator And slash is / , by doing so the document ('file: /// C: / DIR / Saber / DOC.XML') to all XSLT processors on Windows and < Code> document ('file: / root / dir / subdir / doc / xml') should work on LINUX. Similar relative URLs such as documents ('subdir1 / subdir2 / doc.xml') < / Code> is definitely going to work with an XSLT processor, which is the benefit of the URL.


Comments