Re: [xsl] XML to HTML

Subject: Re: [xsl] XML to HTML
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 21 Sep 2001 19:30:30 -0400
Or set up a key: that will also work pretty well ... you don't have to tweak the DTD, and don't have to assure that your identifier follows the rules of XML ID attributes.


At 03:57 PM 9/21/01, Joerg wrote:
Hi Greg,
...If you have a big file, this will take a lot of time. If all <media_item>s
are on the same level, you can change it to

<xsl:value-of select="/root/any_other_nodes/media_item[...]..."/>

Still better is using a DTD and set your identifier-attribute (or shorter
id) to ID:

<!ATTLIST media_item identifier ID #REQUIRED>

And using now the id()-function will speed up the transformation:

<xsl:value-of select="id(media_ref/@media_alias)/access_name"/>

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
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

XSL-List info and archive:

Current Thread