[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: Using key() from outside the default namespace

Subject: AW: Using key() from outside the default namespace
From: Markus Abt <abt@xxxxxxxx>
Date: Mon, 4 Aug 2003 21:05:28 +0200
xsl default namespace example
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.

Markus Abt
Comet Computer GmbH

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.