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

Re: Could not select the text() of both parent & child

Subject: Re: Could not select the text() of both parent & child nodes simultaneously
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 16 Jun 2010 09:47:03 +0100
Re:  Could not select the text() of both parent & child
On 16/06/2010 09:30, Jack Bush wrote:
Hi David,

I am very new to XML development, not to mention about XSLT and hesitates to move to version 2.0 for 3 reasons:

( i ) 1.0 is sufficient for what I need to do but there is bound to be better ways to do it in 2.0.

Saxon 9 never executes XSLT 1, It only executes XSLT 2. If you give it an XSLt 1 stylesheet it tries to emulate XSLT 1, but that is not the same thing. Furthermore the stylesheet you posted was inconsistent as it claimed at the top to be XSLT 1 but it used XSLT2 constructs which would generate an error if used with an XSLT 1 processor.



( ii ) XPath& XSLT 2.0 comes at a cost for recent release of Saxon licensing models.

No it does not. The system you are using is free, open source, and implements XSLT 2. The last version of saxon to implement xslt 1 was saxon 6.5.


( iii ) Believes that a schema/DTD is required by the stylesheet. Not familiar with how to set it up yet.
I'm not sure what you mean by this, but probably it is a misunderstanding.


Back to the original question, what is the XPath statement in XSLT to get the content of both<a> (team) and<p> (goals) at the sametime?



As I said in my first reply, the source that you posted is clearly not the source you used (as it is not XML) so I can not guess what code you need to process your original source. The source you posted would generate a fatal XML parse error before the XSLT engine started.
If you post a well formed XML source and say what you want it to be converted to, then I'm sure someone will tell you the code you need.


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.