You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Yiannis Mavroukakis <yi...@jaguarfreight.com> on 2005/11/22 18:18:13 UTC

DVSL issue

Hello everyone,

I've got a question with regards to DVSL's transform() method..I've got
an XML file I'm transforming
using DVSL, and for some reason which I haven't been able to figure out
yet, transform() strips down
all &amp; entities to & (this then blows up when fed into another xml
parser)..Other declared entities
are left untouched...Any ideas why?

Thank you,

Yiannis

Note:__________________________________________________________________
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
________________________________________________________________________
This e-mail has been scanned for all known viruses.

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: DVSL issue

Posted by Robert Koberg <ro...@koberg.com>.
Yiannis Mavroukakis wrote:
> Hello everyone,
> 
> I've got a question with regards to DVSL's transform() method..I've got
> an XML file I'm transforming
> using DVSL, and for some reason which I haven't been able to figure out
> yet, transform() strips down
> all &amp; entities to & (this then blows up when fed into another xml
> parser)..Other declared entities
> are left untouched...Any ideas why?
> 

It sounds like you are outputting HTML rather than XML.

I don't know DVSL other than a brief read of the user's guide. In XSL it 
is always a good idea to specify an /xsl:stylesheet/xsl:output/@method. 
This way the processor does not have to guess what output method to use. 
Unless output is specified, a processor that sees an HTML root element 
should output to the HTML method (and resolve entities), otherwise it 
will output to XML.

best,
-Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org