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

Re: Alternative to XSLTHL?

Subject: Re: Alternative to XSLTHL?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 11 May 2010 12:15:54 -0700
Re:  Alternative to XSLTHL?
>  So in the case of Jacek, it seems the answer to your response
> (Dimitre) is "the grammar is PHP, and I want to be able to parse
> a PHP exerpt while formating a DITA document by using XSLT (to
> add some info to the PHP code to provide syntax highliting in
> HTML)".


Why does this sound so weird, or am I the only one thinking so?

While this could be accomplished in XSLT, any other compiler-compiler
system in any other language could be used, too.

I've never imagined (and I don't find myself excited) to parse PHP in XSLT.

On the other side, generating PHP code (and any other PL code) with
XSLT seems more interesting.


--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play






On Tue, May 11, 2010 at 10:26 AM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> Jacek Iwanski wrote:
>
> B Hi,
>
>> > 1. What is XSLTHL ?
>
>> B  A single JAR file with syntax highlighting module to be
>> invoked with Saxon, Xalan, etc.
>
>> B  http://sourceforge.net/projects/xslthl/
>
>> > 2. What has to be parsed? Grammar + example.
>
>> B  The grammmar is DITA, but all code to parse lies within
>> <codeblock> element.
>
> B More precisely, the grammar is the grammar of any supported
> language <http://sourceforge.net/apps/mediawiki/xslthl/>, for
> instance if you embed JavaScript or PHP into DITA or DocBook.
> If I am right, XSLTHL is used as an option in the DocBook XSLT
> stylesheets.
>
> B So in the case of Jacek, it seems the answer to your response
> (Dimitre) is "the grammar is PHP, and I want to be able to parse
> a PHP exerpt while formating a DITA document by using XSLT (to
> add some info to the PHP code to provide syntax highliting in
> HTML)".
>
> B Regards,
>
> --
> Florent Georges
> http://fgeorges.org/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.