You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Peet Sneekes <pe...@mediamatic.nl> on 2000/03/10 09:59:49 UTC

Re: Xalan parsers more critical?

Hi Myriam,

First of all, I like to say, it works for the biggist part (see last mail),
but there are still a few questions.

I think my fault is to try to validate my XSL's. Validation should (I think)
only be done if you defined a DTD, or if you want very precise information
to third parties (like my designers) if something goes wrong. Which brings
me to another point and that is the way I include my secondairy stylesheets.
Without validation it's fine, but I think I should find a neater way to do
such things . . .

Hmm, I think I don't make any sense now (another 16 hours yesterday), but
hopefully you can get my drift. The thing I want to know is: can I include
the XSL-definition(DTD) in my custom DTD (like in top of my index.xsl)? This
way I can activate the validation again, without it has to get cranky on my
custom xsl:stylesheet DTD.

Maybe you can make some intesting remarks about this?

I answered also some of your questions below.
> Hi Peet,

> I just tried running your stylesheet, I can start with a couple things:
> 1- the namespace error is because your are declaring one namespace to be
an
> alias of another, but I don't see either one being declared. The
namespaces
> have to be declared before you can use them in xsl:namespace-alias.
Yeah, I noticed . . . I fixed this . . . (see index.xsl)


> 2- entity  font-attributes also does not seem to be defined.
> 3- try commenting out  in XSLProcessor.generateDocument()  and
> XSLTXalanSourceImpl.getStylesheetRoot() the line that sets
> setShouldExpandEntityRefs for now anyway (it should expand things by
> default)
Okay . . .

> Maybe we used to let these things through in 1.0.2 but I don't think that
> was correct. Can you start fixing these things and see how far you get? I
> thought I'd try running the stylesheet from the command line first to make
> sure that it at least runs fine and then if it still doesn't work, we can
> look at your program to see what it's doing. Let me know what happens.




> "Peet Sneekes" <pe...@mediamatic.nl> on 03/09/2000 02:52:16 PM
>
> Please respond to "Peet Sneekes" <pe...@mediamatic.nl>
>
> To:   "Myriam Midy" <My...@lotus.com>, "Scott Boag"
>       <Sc...@lotus.com>
> cc:   "Thomas Velthoven" <Th...@mediamatic.nl>
> Subject:  Xalan parsers more critical?
>
> Scott and Myriam,
>
> Sorry to bother you again, but I've got another chalange. This time it's a
> matter of compatibility I think and a little version shifting problems.
>
> First things first: Here come the specs:
> -    xalan 0.20.0
> -    xerces 1.0.2
> -    jdk 1.1.8
> -    xsl files compatible with XSL 1.0 (As far I can judge)
>
> Pre: Things started to function different after version: xalan 0.19.2 (so
> 0.19.2. functions fine).
> With 0.19.5 and 0.20.0 I get the strangest error's from my processor (see
> error.txt) while parsing and processing of xsl:stylesheets.
> As far as I know, my XSL is XSL 1.0 complient (you would think so, if it
> does work with 0.19.2, right?), but still these errors seem like I screw
up
> in a realy basic thing somewhere.
>
> Anyway I'm sure you can solve this in no-time, beeing the experts and all
> ;-)
>
> Class PeetSneekes {
>   String Does      ="Java Programming";
>   String Email       mailto:="Peet@mediamatic.nl;
>   String Company ="Mediamatic Interactive Publishing";
>   String Phone     ="+31-20-6266262"
> }
>
> PS: I didn't post this on the Xalan-mailing group because all the files
> included.
> (See attached file: index.xsl)(See attached file: dependencies.ent)(See
> attached file: framework.xsl)(See attached file: font_attributes.xsl)(See
> attached file: MmXalanResolver.java)(See attached file:
> XsltXalanSourceImpl.java)(See attached file: XmlXslProcessor_Apache.java)
> (See attached file: XslProcessor.java)(See attached file: error.txt)
>
>