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

Re: Testing implicit XHTML hierarchy

Subject: Re: Testing implicit XHTML hierarchy
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Thu, 5 Jul 2007 00:27:35 +0200
Re:  Testing implicit XHTML hierarchy
note that its a very cursory reading though. I am up all night doing a
little project for a friend and undoubtedly not at my most attentive
right now.

cheers,
Bryan Rasmussen

On 7/5/07, bryan rasmussen <rasmussen.bryan@xxxxxxxxx> wrote:
thus if I remove the h1 error

<html xmlns="http://www.w3.org/1999/xhtml" ><head></head>
<body>
<div>
<h1>h</h1>
</div>
<h2>h</h2>
<h2>h</h2>
<h5>h</h5>
<div>
<h2>h</h2>
<div>
<h5>h</h5>
<h4>h</h4></div><h5>h</h5>
<h2>h</h2></div>
</body>
</html>

I get no errors using Saxon8 from a month or so ago.

I guess these are errors by the h2 rules you put out? for example that
there is an h2 with the next header following is an h5.

This problem is, by my initial reading of the code, likely to be found
in the rest of the heading matches.

Cheers,
Bryan Rasmussen

On 7/5/07, bryan rasmussen <rasmussen.bryan@xxxxxxxxx> wrote:
> Well, the following:
>
> <html xmlns="http://www.w3.org/1999/xhtml" ><head></head>
> <body>
> <div>
> <div><div><div><h2>h</h2></div></div></div>
> <h1>h</h1>
> </div>
> <h2>h</h2>
> <h2>h</h2>
> <h5>h</h5>
> <div>
> <h2>h</h2>
> <div>
> <h5>h</h5>
> <h4>h</h4></div><h5>h</h5>
> <h2>h</h2></div>
> </body>
> </html>
>
> raises one error.
>
> One of the strengths often cited for Schematron among people who use
> it is the ability to control error output to give all error responses.
> If I understand what you were saying earlier there is more than one
> error here right?
>
> In Schematron I would basically have it as a rule for each heading.
>
> And then an assert along the lines of what I said.
> But I guess discussing that too much would make this a Schematron
> thread and thus not proper for the xsl-list
>
>
> Cheers,
> Bryan Rasmussen
>
>
>
> On 7/4/07, Jesper Tverskov <jesper@xxxxxxxxxxx> wrote:
> > On 7/4/07, bryan rasmussen <rasmussen.bryan@xxxxxxxxx> wrote:
> > > is the idea though that there can be the following:
> > >
> > > h1
> > >  h2
> > >  h3
> > > h1
> > >  h2
> > >  h2
> >
> > No there can only be one h1 and it must start the implicit hierarchy
> > (that is nested sections without having them), just like we can only
> > have one top element in XML.
> >
> > My own tests indicate that my XPath expressions are working, I am only
> > asking for better ways to do the same thing if they exist or if I have
> > overlooked something.
> >
> > Cheers,
> > Jesper

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.