# Issue with xsl (xslfo)

**URL:** <https://forum.kirupa.com/t/issue-with-xsl-xslfo/265429>\
**Category:** web dev\
**Created:** [July 8, 2008, 8:00pm UTC](https://forum.kirupa.com/t/issue-with-xsl-xslfo/265429 "2008-07-08T20:00:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hey\_suburbia](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hey\_suburbia](https://forum.kirupa.com/u/hey_suburbia)\
**Post date:** [July 8, 2008, 8:00pm UTC](https://forum.kirupa.com/t/issue-with-xsl-xslfo/265429/1 "2008-07-08T20:00:15Z")

</div>

I have this and it works great:

```auto
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>

<xsl:template match="/">
<xsl:for-each select="bios/bio">
	<div id="bios">
		<div style="float:left; padding-right:12px;"><img src="bios/im/{image}"/></div>
    	<h4><xsl:value-of select="name"></xsl:value-of></h4>
        <br />
    	<h5><xsl:value-of select="title"></xsl:value-of></h5>
    	<br /><br />
        <div style="text-align:justify"><xsl:value-of select="description"/></div>
        <br /><br />
        <span class="bio_comment"><xsl:apply-templates select="comment"/></span>
	</div>
    <br /><br /><br />
    
</xsl:for-each>
</xsl:template>

<xsl:template match="br"><br/></xsl:template>

</xsl:stylesheet>

```

My problem is that I want to include xslfo as well. I tried using an include to a seperate .xsl file I tried embedding it within the transform .xsl. I’m thinking I have it, but I may be putting it in the wrong place…

BTW, here is my xslfo:

```auto
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="p">
  <fo:block><xsl:apply-templates/></fo:block>
</xsl:template>

<xsl:template match="i">
  <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
</xsl:template>

<xsl:template match="b">
  <fo:inline font-style="bold"><xsl:apply-templates/></fo:inline>
</xsl:template>

</fo:root>

```

Very simply put, I need to have BOLD and ITALIC work using \<b\> \<i\> in the XML.

Thanks for any input

---

<div class="post-metadata">

**Author:** ![hey\_suburbia](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hey\_suburbia](https://forum.kirupa.com/u/hey_suburbia)\
**Post date:** [July 8, 2008, 8:45pm UTC](https://forum.kirupa.com/t/issue-with-xsl-xslfo/265429/2 "2008-07-08T20:45:03Z")

</div>

I got it all in one document, I’m not getting errors, but I’m also not getting BOLD or ITALIC…

```auto
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" encoding="utf-8"/>

<xsl:template match="b">
    <fo:inline font-style="bold">
      <xsl:apply-templates />
    </fo:inline>
  </xsl:template>
  <xsl:template match="i">
    <fo:inline font-style="italic">
      <xsl:apply-templates />
    </fo:inline>
</xsl:template>

<xsl:template match="/">
<xsl:for-each select="bios/bio">
	<div id="bios">
		<div style="float:left; padding-right:12px;"><img src="bios/im/{image}"/></div>
    	<h4><xsl:value-of select="name"></xsl:value-of></h4>
        <br />
    	<h5><xsl:value-of select="title"></xsl:value-of></h5>
    	<br /><br />
        <div style="text-align:justify"><xsl:value-of select="description"/></div>
        <br /><br />
        <span class="bio_comment"><xsl:apply-templates select="comment"/></span>
	</div>
    <br /><br /><br />
    
</xsl:for-each>
</xsl:template>

<xsl:template match="br"><br/></xsl:template>

</xsl:stylesheet>

```

I put \<i\>\</i\> tags in my xml and so no change… Any ideas why?

---

<div class="post-metadata">

**Author:** ![Easyforpp](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@Easyforpp](https://forum.kirupa.com/u/Easyforpp)\
**Post date:** [July 14, 2008, 3:21pm UTC](https://forum.kirupa.com/t/issue-with-xsl-xslfo/265429/3 "2008-07-14T15:21:39Z")

</div>

bump!!haha--------------------------------our wow gold site:_buy [wow gold, cheap [url=http://www.wowgoldcc.cn/wowgoldworld.htm]wow gold, free [url=http://www.wowgoldcc.cn/Newplayers.htm]wow gold](http://www.wowgoldcc.cn),_
