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

Re: A non self closed xsl:apply-templates element to

Subject: Re: A non self closed xsl:apply-templates element to create a text node for matching ...
From: iwanttokeepanon <iwanttokeepanon@xxxxxxxxx>
Date: Tue, 5 Dec 2006 19:43:22 -0600
Re:  A non self closed xsl:apply-templates element to
David Carlisle wrote:

various ways of combining those:

Thanks for the ideas!


Michael Kay wrote:

It's a bug in the XSLT processor you were using. You might call that an
accident, I don't.

Very true. My "cut down" example worked (by bug/accident), but when I put it into a larger stylesheet w/ namespaces, it started complaining about it (but processed it anyway ... wierd).

<xsl:template match="text()[ starts-with( ., '../Russia2006/' ) ] | @href[
starts-with( ., '../Russia2006/' ) ]">

me:


Thanks for all the help.  I just had an ahh haa moment.  I need to refactor
the XML and store the complete URL (easy enough).  The purpose was
to have relative URLs in the HTML and full URLs in Atom/RSS feeds.

Instead of "data complete" the URL for Atom/RSS, I can just remove the
website base URL and add ../another-app/index.html for my HTML
tranformation.  That'd be much easier.  And if I weren't so tired to
begin with I might have figured that out earlier.  Now, to go delete
a bunch of crappy XSL.

Thanks for all the help ...
--
Rodman

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.