[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Speed and memory problems when transforming links

Subject: Re: Speed and memory problems when transforming links
From: Andreas Voegele <voegelas@xxxxxxxxxxxxxxxxxxxxx>
Date: 06 Feb 2002 20:37:23 +0100
 Re: Speed and memory problems when transforming links
Michael Kay writes:

> I'll fix this, but meanwhile, try:
> 
>      <xsl:for-each select="link">
>        <xsl:variable name="frag" select="substring-after(@href, '#')"/>
>        <xsl:for-each select="document(substring-before(@href, '#'))">
>           <xsl:for-each select="id($frag)">
>              ...
> 
> This will also be more portable: the XSLT 1.0 spec leaves it up to
> the implementation how to interpret fragment identifiers in the URI
> reference.  (Which is why not many people use the facility, which is
> why you've found a bug that's present in both products, by the looks
> of it!)

Many thanks for your answer.

Actually, we planned to use our own URIResolver and a subset of
XPointer in the fragment identifier, e.g.

phone.xml#xpointer(id('phn_0')/range-to(id('phn_5')))

But I've never liked this idea anyway :]

-- 
Andreas

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.