[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Print parent text
XSL Experts, I have section of xsl code that used to work, but now seems to be giving me problems. The only thing that has changed is the xmls where updated, however the format appears to be the same. What I'm trying to do is bold the text of a child tag, and then print out the rest of the text from the parent tag. The tags look like so: <crossreferecne> <para> <emphasis>This is to be bolded,</emphasis> and this is not! </para> </crossreferecne> They way I have the xsl setup is like so: <xsl:template match = "crossreferecne"> <fo:block> <xsl:text>Cross Referecne</xsl:text> <xsl:for-each select = "para"> <fo:block> <xsl:choose> <xsl:when test = "./emphasis"> <fo:inline font-weight = "bold"> <xsl:value-of select = "./emphasis"/> </fo:inline> <fo:inline> <xsl:value-of select = "./text()"/> </fo:inline> </xsl:when> <xsl:otherwise> <fo:inline> <xsl:value-of select = "./text()"/> </fo:inline> </xsl:otherwise> </xsl:choose> </fo:block> </xsl:for-each> </xsl:template> Currently when this code is run all I'm able to produce is the bold text. The none bold text is not shown at all. Any ideas on how to extract the para text would be greatly appreciated. As always, thanks in advance for any assistance. -Luke
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|