xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Vandyck <arn...@ressource-toi.org>
Subject Re: XSLT Extensions
Date Wed, 09 May 2001 15:46:07 GMT
On Wed, 9 May 2001, jason heddings wrote:

> Hello!
> 
> I have two questions regarding XSL Extensions in Xalan...
> 
> I have created my own extension element (xmlns=foo -- of course).  That
> element has an instruction called "bar" and takes some attributes:
> <foo:bar att1="val1" ... />
> 
> That all works great, but here's my question:  I want to be able to
> process all the children in the element --
> <foo:bar att1="val1">
>   <xsl:value-of select="." />
> </foo:bar>

isn't it <xsl:apply-templates/> instead of xsl:value-of
 
> But rather than send the output to the result tree, I want to hold onto
> it and allow foo:bar to process it.  I've tried using a
> ByteArrayOutputStream along with a StreamResult to get what I thought
> would be an appropriate ContentHandler, but nothing is sent to the
> ByteArrayOutputStream when I call executeChildTemplates.
> 
> My second question is:
> 
> I have an extension that returns a String.  If that string contains HTML
> (or any reserved XML characters), they are escaped before going to the
> result tree.  I'd like to send it straight to the output like
> <xsl:value-of ... disable-output-escaping="yes" /> does.

<![CDATA[ &amp; &nbsp; ]]>
?
 
> So that's a lot of me babbling...  Anyone who can make sense of it and
> solve my problem has my upmost respect :)  Sorry, no real prizes...
> 
> --jah
> 
> 
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       \\\|///                 Jason Heddings             ((
>      \\ ~ ~ //                303.272.5166 (x75166)    C|~~|
>      (/ @ @ /)                Jason.Heddings@Sun.COM    `__'
>  ~~oOOo~(_)~oOOo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
> 
> 

Arnaud Vandyck <http://www.ressource-toi.org/>

"(7 mai 2001) 0.3.3  Chapitre 1 presque parfait."
- http://bibliocosme.com/actualite.html




---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message