[xsl] Re: RE: hard core xlt ;-)

Subject: [xsl] Re: RE: hard core xlt ;-)
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 26 Jul 2001 11:07:16 -0700 (PDT)
Dylan Walsh wrote:

> From:	Elise D. [SMTP:tyris_azriel@xxxxxxxx]
> Sent:	Thursday, July 26, 2001 4:14 PM
> To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:	RE: [xsl] hard core xlt ;-)
> 
> >well, i like the way you think about what is hard or
> >not. i tryed for a first time to make "generic" xsl,
> >meaning i never use the name of a tag, but only for a
> >defined hierarchy/structure of the xml.
> >
> >so if i've well understood the way it should be done,
> >i should detect the type of the node, detect what it
> >contains .... is it right ?
> >
> >well, if you ever have a small example of doing this,
> >it would be great :-)
> 
> The following probably has bugs, and it was written a long time ago. I'd
> probably do a lot of things differently today, but I don't see any point
> updating this when there is atleast one working implementation out
> there.
> 
> Microsoft have something similar in IE5, but that is MSXSL rather than
> true XSLT. Their one is a lot slicker than mine. There are things you
> cannot do in XSLT, but you can in MSXSL, in particular you cannot "see"
> the XML declaration with XSLT. Microsoft may have updated that
> transformation to proper XSLT for MSXML3, others on the list would know
> more about that than me.

I converted the IE default stylesheet (defaultss.xsl) and modified it further to
become the base for the XPath Visualiser -- this was done more than a year ago.

Here's another example of generic processing -- this should not be mistaken for
"generic templates". Generic templates are something that not everyone will write,
but many people may use, even not having to know what exactly generic templates are.

The code presented at the following link will produce the absolute XPath expression
for any node in an xml document.

http://www.dpawson.co.uk/xsl/sect2/N6077.html#d176e20

Cheers,
Dimitre Novatchev.

P.S. As we all know, the above URL is not stable and may change at any moment.




__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread