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

Re: Still thinking to object oriented...

Subject: Re: Still thinking to object oriented...
From: "Jonas Bassl" <Jonas@xxxxxxxx>
Date: Thu, 9 Oct 2008 11:17:33 +0200
Re:  Still thinking to object oriented...
Hallo,

now since i was working with the solution i got from here, i am stuck
with the following problem:

<xsl:template match="/">
<xsl:value-of
  select="//*[descendant-or-self::*[contains(name(),'to_search')]]/name()"
  separator="&#10;"/>
</xsl:template>
</xsl:stylesheet>

This stylesheet only gives me the name of the node, but now i have the
requirement to get also attributes from these nodes. Can anyone help
me to change the XPath invocation for my needs. If i try to do it with
the node() function at the end, there are more nodes in the output
than just with the name() function. I know, that has something to do
with empty text nodes and things like that, but i don't know, how to
filter them or which function is appropriate for me to get the same
nodes as the name() function does, but with the attributes.
Thank you in advance.

Regards,
Jonas


2008/9/29 Jonas Bassl <Jonas@xxxxxxxx>:
> oh wow
> thats it
> thank you
>
> 2008/9/29 David Carlisle <davidc@xxxxxxxxx>:
>>
>>
>>> But can you please post your solution as a hole here,
>>
>> I did, you quoted it in full.
>>
>>
>> David
>>
>> ________________________________________________________________________
>> The Numerical Algorithms Group Ltd is a company registered in England
>> and Wales with company number 1249803. The registered office is:
>> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
>>
>> This e-mail has been scanned for all viruses by Star. The service is
>> powered by MessageLabs.
>> ________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.