But I see now this message : > > > > > > >
Invalid XPath expression > > Unexpected
end of statement > >
select="/bookstore/book[position() < 5 and
/bookstore[position() > 1 ]" > > > > > > >
So i try to find the books between the 1
and 5 position of the list. > > > > > > > >
Roelof > > > > > > > > > > > > > > > > > >
---------------------------------------- >
Date: Sat, 17 Dec 2011 09:24:14 -0500 >
From: voldrani(_at_)gmail(_dot_)com > To:
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
> Subject: Re: [xsl] Predicates question >
You have a couple of other syntax errors,
too. You forgot to close > your "". Try
this: > >
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
method="xml" version="1.0"
encoding="UTF-8" indent="yes"/> >
select="/bookstore/book[position()<3]" /> >
select="title"/> > > > > On Sat, Dec
17, 2011 at 8:58 AM, Wolfgang Laun wrote: >
A basic requirement for writing XML
(and XSLT is XML) is to represent > > all
'<' that are part of the data (element or
attribute or other) as > > < > > > >
Another characters in the same category is
'&', which must be written > > as &. when
it is a data character (and not part of a
character > > reference that begins with
'&'). > > > > (You may also find '>'
written as >.) > > > > There's also a
construct known as CDATA section, which is
a general > > "escape" mechanism for
element data. See /bookstore/book[2] for >
details ;-) > > > > -W > > > > On 17
December 2011 14:39, Roelof Wobben wrote: >
I have this small xml file
: > > > > > > > > > > > > > > > > > > > > >
Harry Potter > > > 29.99 > > > > > >
Learning XML > > > 39.95 > > >
And now
I want to show only a few books. > > > > >
According to this page :
http://www.w3schools.com/xpath/xpath_syntax.asp
I can use this xslt : > > > > > > > > > >
But if I try
this on xmlspy I get this message : > > > >
Character '<' is
grammatically unexpected > > > Reason: one
of the following is expected (see below) >
'"' > > > '&' > > > '&#' > > > '&#x' >
[^<&"] > > > Details > > > XML
production: Production 'AttValue' not
satisfied > > > > > > > > > > > > What part
did I misunderstood. > > > > > > > > > > >
Roelof > > > > > > > > >
--~------------------------------------------------------------------
> > > XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list >
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/ > >
or e-mail: > > > --~-- > > > > > > >
--~------------------------------------------------------------------
> > XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list >
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/ > >
or e-mail: > > --~-- > > > >
--~------------------------------------------------------------------
> XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list >
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/ >
or e-mail: > --~-- > > >
--~------------------------------------------------------------------
> > XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list >
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/ > >
or e-mail: > > --~-- > > > >
--~------------------------------------------------------------------
> XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list >
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/ >
or e-mail: > --~-- >