|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Output XML doc with XSL doc name in comment
Mike,
At 01:58 PM 5/8/2002, you wrote: > It isn't obvious that the XML it is processing has a name. Both the > source XML and the stylesheet might come from standard input > stream, or > from a stream of sax events or.... No ... David describes situations where, for example, your XML could be pipelined in from some other application, etc. That is, while (this year) the vast majority of XSLT processes may be invoked using file names as handles on XML documents in a file system, this doesn't always have to be the case, so the processor shouldn't assume it. It's no more a rule that input should always come from a file than that output should always be written to a file. Output could go straight into display, never have a file name. Maybe that display has some editing capability. Maybe you then hit a button and the new document you just wrote is transformed somehow. No file. Actually, XML/XSLT is OS-neutral, and some OSes don't even have "files" (so XML uses URIs, building on top of the SGML notion of "system identifiers"). And if so, then why not capture those ?.xsl names for the comment either at their location or globally? Again, SAXON has the name/path anyway. This is exactly why Mike K. usually says "pass it in as a parameter". This is easy enough to do with a shell script (which is what you're doing with your NoteTab thingie, isn't it?). Someone else who's used it can confirm this, but my guess is this'll give you, in Saxon, the filename of the stylesheet (if it has one). Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








