[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: retaining entity declarations while converting fro

Subject: Re: retaining entity declarations while converting from one xml format to another
From: a kusa <akusa8@xxxxxxxxx>
Date: Thu, 17 Dec 2009 08:34:12 -0600
Re:  retaining entity declarations while converting fro
Thanks Andrew. Your blog talks particularly about LexEvXML Reader.
 which has what I am looking for which is retianing the entity
declarations during xslt.

But when I click on the 'Download' I get only the LExEv.jar.The
command line example asks to  pass the LexEvXMLReader.jar. Is there a
separate jar file or do I use the same jar? Please advise.

On Thu, Dec 17, 2009 at 4:20 AM, Andrew Welch <andrew.j.welch@xxxxxxxxx>
> Sorry I can't remember what you were trying to do, but to use lexev in
> kernow then go into the "kernow options" and enable it, then have a
> look at some of the examples on here
> http://andrewjwelch.com/lexev/#samples
> An easy thing to do is run your input through an identity transform
> with lexev enabled, and then have a look at the output to see the
> markup that has been added.
> 2009/12/17 a kusa <akusa8@xxxxxxxxx>:
>> Hello everybody:
>> Thank you for all your help. Michael, yes, I do want entity references
>> to be copied as is.
>> I downloaded Kernow. But can you please tell me how I can use it to
>> achieve my output?
>> On Wed, Dec 16, 2009 at 3:44 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>>>> Please look at the saxon extension function saxon:doctype.
>>>> http://saxon.sourceforge.net/saxon6.5.5/extensions.html#saxon:doctype
>>>> which provides the mechanism to create the entities. In your
>>>> case you have to re-generate the entities in XML file.
>>> I suspect that he wants entity refe:
>> rences to be copied, rather than entity
>>> declarations. The saxon:doctype extension allows you to construct a DTD
>>> (internal subset) containing entity declarations, and you can construct
>>> references to those entities using character maps or
>>> disable-output-escaping. But to get access to entity declarations and
>>> references in the source XML, you need to stop the XML parser expanding
>>> them, which you can do using Andrew Welch's LexEv.
>>> Regards,
>>> Michael Kay
>>> http://www.saxonica.com/
>>> http://twitter.com/michaelhkay
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.