Upayavira dijo:
> Antonio Gallardo wrote:
>
>>Hi:
>>
>>The Joerg answer is OK.
>>I just added some additional info about the topic.
>>
>>
> Thanks for this Antonio. It all helps to make me a slightly less
> ignorant Englishman ;-)
>
> But my question is: "I have a file that contains entity references. I
> want to replace it with direct characters, e.g. in UTF-8. How do I do
> this?" That is, this question really has nothing to do with Cocoon
> specifically. I want to change the format of my source files.

While making the other test I found a simple solution to you, using Cocoon:

If We have a simple xml file as:

<?xml version="1.0"?>
<root>
<p>&#225; This is a test</p>
<p>&amp; This is an ampersand</p>
</root>

Passing it trough a simple:

<map:match pattern="*.test">
  <map:generate type="file" src="{1}.xml"/>
  <map:serialize type="xml"/>
</map:match>

You got in Mozilla:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <p>� This is a test</p>
  <p>&amp; This is an ampersand</p>
</root>

Is posible to use the Cocoon CLI? AFAIK, you are a CLI guru! ;-)

WDYT?

Best Regards,

Antonio Gallardo





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to