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

Re: Re: xhtml via xslt failure

Subject: Re: Re: xhtml via xslt failure
From: e-letter <inpost@xxxxxxxxx>
Date: Tue, 17 Dec 2013 22:30:23 +0000
Re:  Re: xhtml via xslt failure
> Learner: the tests for preceding or following sibling 'author'
> elements will only work within the context of children of 'book'
> elements, such as the 'author' elements. Evaluated in the context of
> the 'book', you never have 'author' element siblings at all (by
> design), so these tests always return false.

The xml file is:

<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by XMLSpyB., taken from http://www.w3schools.com-->
<?xml-stylesheet type='text/xsl" href="xstylesheetexample.xslt" ?>
	<book category="WEB">
		<title lang="en">XQuery Kick Start</title>
		<author>James McGovern</author>
		<author>Per Bothner</author>
		<author>Kurt Cagle</author>
		<author>James Linn</author>
		<author>Vaidyanathan Nagarajan</author>
	<book category="WEB">
		<title lang="en">Learning XML</title>
		<author>Erik T. Ray</author>

Perhaps my description was erroneous, but my understanding of the
structure of this xml file is that the element 'author' for "Per..."
is an expression "following-sibling" for the preceding element
'author' for "James...". Is it wrong to conclude that the elements
'author' are classified as sibling elements for the book title "xquery
kick start"?

> I hope that helps.

Thanks, application of the example produces:

			James Linn
			Vaidyanathan Nagarajan</p>

The stage is see whether xslt offers css-type capability to apply
formatting based upon certain conditions, in this case changing the
block-level line breaks to in-line span-level formatting for >1
sibling elements. Excuse me for more reading!

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.