xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jason heddings <Jason.Heddi...@Sun.COM>
Subject XSLT Extensions
Date Wed, 09 May 2001 14:08:41 GMT

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="." />

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.

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...


      \\\|///                 Jason Heddings             ((
     \\ ~ ~ //                303.272.5166 (x75166)    C|~~|
     (/ @ @ /)                Jason.Heddings@Sun.COM    `__'

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

View raw message