xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Retrieving top-level attribute value in XSLT 2.0


Subject: Re: [xsl] Retrieving top-level attribute value in XSLT 2.0
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 31 Aug 2006 22:16:34 +0100

> Okay, I've now tried that. There is no change: the date is not sent
> into my output document.

what exactly did you try? the advice was correct

/*/@from

or adding 
xmlns:t='urn:TMSWebServices' to your xsl:stylesheet  and using
/t:xtvt/@from
should both work.

I suspect that you confused yourself by calling
(this is the root element of the file...):
             ^^^^^^^^
the top level elemnt the root element, although that terminoligy is
sometimes used, it's best not to use it in xslt/xpath as xpath (1) a
root node is always the _parent_ of the top level element, not the
element itself. So there is never a "root element".

David


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor