James Strachan wrote:
> Hi Laurent
>
> Your patch is a good idea - I've thought of doing something similar. I'm
> tempted to go one further - lets use XSLT patterns. What are XSLT patterns?
> Well essentially they are like XPath expressions, they are used in XSLT in
> the <xsl:template match="pattern"> tag.
>
> Using your example for a moment...
>
> From: "Developer Laurent Caillette" <[EMAIL PROTECTED]>
> > <h1>
> > <p>
> > stuff 1
> > </p>
> > <h2>
> > <p>
> > stuff 2
> > </p>
> > </h2>
> > </h1>
>
> So a pattern could be "p" which would match all <p> elements. Or a pattern
> could be "h1/p" which would match all <p> elements which are children of a
> <h1> element. Or it could be /h1/h2/p which could match using absolute
> paths. We can also add filters like this "p[@style='bold']" and so on.
>
This also seems to correlate nicely with CSS style and useage.
I like that because, when processing the kind of documents being described,
I often have to coordinate the translations with the CSS.
R.Parr
Temporal Arts
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev