Altova Mailing List Archives


RE: [xsl] xsl:copy-of O.K. on RTF, but nothing on element content (?)

From: "William Reilly" <wreilly@----------->
To:
Date: 5/5/2003 5:29:00 PM
Many thanks, Mike, for helping confirm some assumptions.
 
Yes, XSLT 2 ought to help re: RTF & Etc.
(Your mentioning of looking out for xsl:key and recursion gives me more food for thought...)
 
Thanks again for your responses.
Best,
William Reilly
wreilly@xxxxxxxxxxx
Boston, Massachusetts U.S.A.
=============================================
 
Date: Mon, 5 May 2003 10:56:58 -0500
From: "Mike Haarman" <mhaarman@xxxxxxxxxxxxxxxxxx>
Subject: Re: [xsl] xsl:copy-of O.K. on RTF, but nothing on <EMPTY/> element content (?)

- ----- Original Message -----
From: "William Reilly" <wreilly@xxxxxxxxxxx>

> is there a string-based 'test' that would catch the (admittedly unusual)
>
> condition of EECO-NW? ("Empty Element Content Only - NO Whitespace") e.g. <markup><img src="pic.gif"/></markup>
>
> I think the answer is No.

I think you're right.

> have no content of string values, this is why no string test will find
> anything there.
> (And I guess you would only get at the attribute values if you
> explicitly
> ask for them (XPath ?) ?)

Yup.

> >> is it reasonable to assert that one can do without the use of
> 'xsl:for-each select=', and can achieve everything one needs within
> the 'select=' attribute of 'xsl:variable' and 'xsl:apply-templates' ?

The question is more nuanced than that, but it is true that the moment I find
myself nesting xsl:for-each I begin to wonder if I might be approaching the
problem incorrectly and I look out for an opportunity to exploit recursion or
key().

> If this assertion is (reasonably) the case, then I guess I can
> (reasonably)
> expect to be able to avoid creating variables by way of RTF, and can
> make
> them instead the preferred way of 'xsl:variable select=' statements.
> Yes?
>

FWIW, XSL 2 proposes to eliminate the notion of an RTF altogether, IINM.

hth,

Mike



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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.