[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2008-04-10 09:42 -0500, Eliot Kimber wrote:
Doesn't the following address this for you implicitly:
Granted looking up the ancestry is slow, but using XSLT 2 you could stuff tunnel parameters with cues and then check tunnelled values to know what ancestry has been encountered ... that speeds things up tremendously.
I hope this helps, or at least gives a direction to look in.
. . . . . . . . . . . Ken
Re: [xsl] How To Map From Hierarchy to Wrapped Text Sequences?
Subject: Re: [xsl] How To Map From Hierarchy to Wrapped Text Sequences? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 10 Apr 2008 17:15:11 +0200 |
At 2008-04-10 09:42 -0500, Eliot Kimber wrote:
<p>Some text <i>italic text <b>now bold italic</b> back to italic</i> more text</p>
In the INCX representation of this, each text string with distinct formatting is separately wrapped as a "text run", making the above into:
<txsr><pcnt>Some text </pcnt></txsr> <txsr><pcnt>italic text </pcnt></txsr> <txsr><pcnt>now bold italic</pcnt></txsr> <txsr><pcnt> back to italic</pcnt></txsr> <txsr><pcnt> more text& #x0a;</pcnt></txsr>
(INCX details omitted for simplicity)
An INCX file is essentially just a long sequence of txsr elements.
Doesn't the following address this for you implicitly:
<xsl:template match="text()"> <txsr> <!--check ancestry for attributes--> <pcnt> <!--check ancestry for attributes--> <xsl:value-of select="."/> </pcnt> </txsr> </xsl:template>
Granted looking up the ancestry is slow, but using XSLT 2 you could stuff tunnel parameters with cues and then check tunnelled values to know what ancestry has been encountered ... that speeds things up tremendously.
I hope this helps, or at least gives a direction to look in.
. . . . . . . . . . . Ken
-- Upcoming: UBL Apr.22,24; genericode code lists Apr.23; Rome,Italy World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How To Map From Hierarchy to , Eliot Kimber | Thread | Re: [xsl] How To Map From Hierarchy, Eliot Kimber |
RE: [xsl] XSLT Programmer's Referen, G. Ken Holman | Date | Re: [xsl] How To Map From Hierarchy, Eliot Kimber |
Month |