Subject: Re: [xsl] Style questions (2 questions) From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 23 Aug 2005 17:33:15 -0400 |
Question #1: I have several stylesheets using 'key' and 'generate-id', so I am familiar with their workings and quirks. My question is there a way to do anything EXCEPT equality compares w/ keys. I have used work arounds that sometimes make sense and sometimes feels like a hack (kind of like trying to code sane CSS in I.E. <g>).
I had a recent problem of transforming a string of words seperated by spaces back into a nested structure. E.g.
<post @tag="reference xml" href="..." /> <post @tag="reference xml xslt" href="..." /> <post @tag="reference html" href="..." /> <post @tag="linux" href="..." />
reference xml xslt html linux
each word is a folder w/ multiple bookmarks in them (ala. del.icio.us).
As I recursed into folders, it would have been nice to get all post(s) that started with the current @tag. With keys that would be fast, without keys and w/XPath alone it was quite slow.
Please, I'm not looking for a stylesheet or a solution; I have one. This is just a language question ... which, BTW, I'm 99% sure the answer is you cant.
Question #2: I have seen answers on the list where someone mentions XSL and XSLT seperately (and deliberately). I thought the former was just a shorter version of the latter. After all, isnt the main purpose of the language to do transformations? Is there a difference?
Given a class of arbitrarily structured XML documents or data files, designers use an XSL stylesheet to express their intentions about how that structured content should be presented; that is, how the source content should be styled, laid out, and paginated onto some presentation medium, such as a window in a Web browser or a hand-held device, or a set of physical pages in a catalog, report, pamphlet, or book.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Style questions (2 questi, JBryant | Thread | RE: [xsl] Style questions (2 questi, cknell |
Re: [xsl] Style questions (2 questi, JBryant | Date | Re: [xsl] Re: Transforming XHTML to, António Mota |
Month |