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

Which latest and greatest XML Standards Should I Use ForXML-Grammar-Fort

  • From: Shlomi Fish <shlomif@shlomifish.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Tue, 13 Nov 2012 20:45:50 +0200

Which latest and greatest XML Standards Should I Use ForXML-Grammar-Fort
Hi all,

I have defined an XML grammar titled XML-Grammar-Fortune (see
http://web-cpan.shlomifish.org/modules/XML-Grammar-Fortune/ ), which I use to
mark up UNIX-like fortune cookies and quotations (see
http://www.shlomifish.org/humour/fortunes/ for examples and resultant XHTML and
plain text outputs), and which is based on XML.

Now, I have considered modernising the grammar somewhat and possibly
incorporate the following elements:

1. Using xml:id instead of a plain "id=""" attribute as well as xml:lang and
other xml: standard attributes.

2. Making a judicious use of XML namespaces. Right now the <screenplay>-typed
tags were done in a hackish way by copy-pasting the RELAX NGs and XSLTs contents
http://www.shlomifish.org/open-source/projects/XML-Grammar/Fiction/ , but they
may be better doable using namespaces. One thing that worries me is whether
I'll need to do sometihng like xmlns="[LONG URL HERE]" everytime I want to use
them.

3. I have defined well-formed plaintext grammars for XML-Grammar-Fiction and
XML-Grammar-Screenplay (see the above link), which gets translated to the
custom XML grammars (and from there to other XMLs using XSLT), and I wonder
whether I can do the same for XML-Grammar-Fortune. Is there a good tool for
doing something like that with ease?

4. Should I use XSLT 2.0 and/or XPath 2.0? Right now I prefer to use Perl 5
with the XML::LibXSLT CPAN module that is in turn based on libxslt from the
GNOME project, and from what I know, the only full open-source XSLT 2.0
implementation is Saxon, which is written in Java. There's
https://metacpan.org/module/Inline::Java but it may not work well (have not
tried).

5. Perhaps create XSLT stylesheets to translate the fortune cookies to TEI
and/or XSL-FO.

=============

Does anyone have any other ideas or can comment on what I said here? Am I
missing anything?

Regards,

	Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

Chuck Norris doesn’t make mistakes. (Su‐Shee) He corrects God. (Shlomi Fish)

Please reply to list if it's a mailing list post - http://shlom.in/reply .


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.