cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Pfuhl <pfu...@yahoo.de>
Subject Re: PlainText Output
Date Thu, 05 Jul 2001 21:55:21 GMT
Hi 

I did this, but it won't work:

<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>


<xsl:template match="friend">
<xsl:text>
BEGIN:VCARD
VERSION:2.1
N:</xsl:text><xsl:value-of
select="/friend/name/last"/>;<xsl:value-of
select="/friend/name/first"/>
<xsl:text>REV:20010701T191407Z
END:VCARD</xsl:text>
</xsl:template>

</xsl:stylesheet>

what is wrong there ??

daniel 

 --- Mike Haarman <mike.haarman@merrillcorp.com>
schrieb: > 
> Include this as a top level element in your
> stylesheet.
> 
> <xsl:output method="text"/>
> 
> It will output the string value of all text nodes in
> the result tree.  You
> should set an encoding to avoid Xalan's complaints
> when it finds a
> character it cannot represent in the default.
> 
> Mike
> 
> 
> 
> 
> 
> Daniel Pfuhl <pfuhli@yahoo.de> on 07/05/2001
> 03:05:12 PM
> 
> Please respond to cocoon-users@xml.apache.org
> 
> To:   User CocoonList <cocoon-users@xml.apache.org>
> cc:
> Subject:  PlainText Output
> 
> 
> Hello
> 
> can someone tell me where to find some examples to
> learn how I can transform my xml and output this as
> plain text?
> 
> thanks in advance
> 
> daniel
> 
> =====
>
--------------------------------------------------------
> Daniel Pfuhl
> mailto:daniel@dphome.de
> 
>
__________________________________________________________________
> Do You Yahoo!?
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> 
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail:
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org>
> 
> 
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail:
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org>
>  



=====
--------------------------------------------------------
Daniel Pfuhl
mailto:daniel@dphome.de

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

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

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


Mime
View raw message