Re: [xslt] Passing xml expressions as parameters.



On Wed, Jul 07, 2004 at 10:45:38AM -0400, Bob Stobie wrote:
> Basically, is this a feature?  If so, is there anything I can do to disable
> this?

  You are generating XML. That XML has text with <, > in it. As a result the
XML serializer output them as &lt; and &gt;. This has nothing to do with
XSLT it's just the normal XML serialization rules.

[...]
> The parameter I pass in is
> 
> 		<abcd>ABCD</abcd>
[..]
> >From Perl, printing out the result of the translation I get
> 
> 		<?xml version="1.0"?>
> 		<state sequence="0"><info/><action
> name="start"/><result><shellArgs/></result><notify/></state>
> 		&lt;abcd&gt;ABCD&lt;/abcd&gt;
> 
> Any suggestions would be much appreciated.

  Except changing your stylesheet to disable output escaping of 
those fragment in the output, I don't see how to get what you want.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]