[Home] [By Thread] [By Date] [Recent Entries]
At 2009-11-10 19:56 -0800, Mark Wilson wrote:
I think I just figured it out: Yes, that is certainly suitable, but check out my earlier post showing how to do this with an attribute value template. I see above you have included the quote, and that is good as I explained. Note that since you are in #PCDATA in your stylesheet, you don't need to escape it, and the following would have worked just as well (and not needing you to change what you have): <fo:basic-link color="blue">
<xsl:attribute name="external-destination">
<xsl:text/>uri("<xsl:value-of select="Heading/@file"/>")<xsl:text/>
</xsl:attribute>
<xsl:value-of select="Heading"/>
</fo:basic-link>I think this works because uri("...") is not actually a function. It certainly isn't at XSLT time. It is a syntactic convention at XSL-FO time ... I don't think anything is actually "called" though. As you don't have it in a select= and you don't have it in an attribute value template "{}", it is just text with parentheses in it from XSLT's perspective. I hope this helps. . . . . . . . . . . . Ken -- Upcoming: hands-on XSLT, XQuery and XSL-FO Washington DC Nov 2009 Interested in other classes? http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



