This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XML to HTML


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.

Cheers,
Wendell

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@mulberrytech.com
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
======================================================================


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]