xsl-list
[Top] [All Lists]

Re: [xsl] Alternative to XSLTHL?

2010-05-11 14:21:42
 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(_at_)fgeorges(_dot_)org> wrote:
Jacek Iwanski wrote:

 Hi,

1. What is XSLTHL ?

  A single JAR file with syntax highlighting module to be
invoked with Saxon, Xalan, etc.

  http://sourceforge.net/projects/xslthl/

2. What has to be parsed? Grammar + example.

  The grammmar is DITA, but all code to parse lies within
<codeblock> element.

 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.

 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)".

 Regards,

--
Florent Georges
http://fgeorges.org/




























--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>