AW: Using key() from outside the default namespace
Hello Peter, I have no idea what you are talking about. Guess, I'm not alone. XML namespaces have nothing to do with different input documents. Your example fragments don't use namespaces, either (except for the xsl:-namespace, and the implicit default namespace). There is no "main namespace", and for-each doesn't place the "context into a different namespace". I also don't know what "new instances of the output document" are, there is exactly one output document in (standard) XSLT 1.0. Btw., the variable $pub-doc-path you use in some part of your mail is not declared, so we can't know what it's value is. Please try to construct a complete (if ever possible, small) example of what you are trying to do. Regards, Markus __________________________ Markus Abt Comet Computer GmbH http://www.comet.de ---------- Von: Peter Flynn Gesendet: Montag, 4. August 2003 19:46 An: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Betreff: Using key() from outside the default namespace I'm experimenting with portable ways of specifying bibliographic reference formatting in XML so that it can be applied to documents in any DTD or Schema. The objective is to avoid having to hard-code complex XSL[T] for every output variant, when it's far faster and easier to specify and maintain the layout using a generic document type designed for the purpose. I'm having trouble using key() to get information from the main document namespace while processing within the namespace of an auxiliary document. How do I get a key() which indexes nodes in the main namespace to work if I need to invoke it from within a for-each which places the context in a different namespace, without triggering a new instance of the output document? [...] 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