You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tim Cavanagh <ti...@tafe.sa.edu.au> on 2002/08/30 02:53:31 UTC

FOP again.. And html

Hi,

Sorry if this is the wrong place to ask this question..

I am using fop to serialize pdf from xml docs.

Is it possible to substitute or remove html tags that are mixed in with
plain text within an XML element. These tags are only simple ones like
<b>xsx</b> and OL's, UL's. Can this be done with fo or xslt?

-- 

Regards

Tim Cavanagh
DMIT Technical Coordinator
MindMedia
Douglas Mawson Institute of Technology
1 Mundy St
Port Adelaide 
SA 5015
 
Phone +618 83032669
Fax   +618 83032667

"What can be done with fewer assumptions is done in vain with more"
William of Ockham


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: FOP again.. And html

Posted by Tim Cavanagh <ti...@tafe.sa.edu.au>.
Jeff,

Yup they are part of the tree - - Excellent!

Thanks for the help that¹s easy to fix.
Sometimes I cant see the trees for the forest =)


Regards

Tim


On 30/8/02 3:44 PM, "Jeff Turner" <je...@apache.org> wrote:

> On Fri, Aug 30, 2002 at 10:23:31AM +0930, Tim Cavanagh wrote:
>> Hi,
>> 
>> Sorry if this is the wrong place to ask this question..
>> 
>> I am using fop to serialize pdf from xml docs.
>> 
>> Is it possible to substitute or remove html tags that are mixed in with
>> plain text within an XML element.  These tags are only simple ones like
>> <b>xsx</b> and OL's, UL's. Can this be done with fo or xslt?
> 
> Are the tags part of the XML tree, eg:
> <description>
> A <b>short</b> description
> </description>
> 
> If so, just copy through the content:
> 
> <xsl:template match="b|ol|ul">
> <xsl:value-of select="."/>
> </xsl:template>
> 
> 
> --Jeff
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: FOP again.. And html

Posted by Jeff Turner <je...@apache.org>.
On Fri, Aug 30, 2002 at 10:23:31AM +0930, Tim Cavanagh wrote:
> Hi,
> 
> Sorry if this is the wrong place to ask this question..
> 
> I am using fop to serialize pdf from xml docs.
> 
> Is it possible to substitute or remove html tags that are mixed in with
> plain text within an XML element.  These tags are only simple ones like
> <b>xsx</b> and OL's, UL's. Can this be done with fo or xslt?

Are the tags part of the XML tree, eg:
<description>
  A <b>short</b> description
</description>

If so, just copy through the content:

<xsl:template match="b|ol|ul">
  <xsl:value-of select="."/>
</xsl:template>


--Jeff

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>