Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2006, 10:51 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT-Infoset in EBNF

Hi,

I am looking for a description of the XSLT infoset in EBNF (all syntax elements of the language XSLT; e.g. element, attribute, comment, function and so on). It should be declared in a seperated file for reading by machine, so that it is not necessary to type every definition by myself. Where can I find it?

Alternative it is possible to have the description of the XSLT-Infoset in an XML Schema, also seperated in one file. And: Does anybody know if there is a xslt-document, which transforms the EBNF into XML Schema and vice versa?

Thank you very much for your help. I need these information for my diploma thesis (development of a language-oriented XSLT-Editor).

belgaia


 
Old May 17th, 2006, 02:14 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I believe there is a schema for XSLT version 2.0 but it is not complete, I'm not sure which way, whether it doesn't allow some obscure valid cases or lets through some failing ones.


http://www.w3.org/2005/02/schema-for-xslt20.xsd

I doubt if there's a DTD available but as I found the above with a four word google search you never know.

I also doubt if it's possible to turn EBNF to XML schema and vice versa in all cases as there are elements that are not present both languages.

--

Joe (Microsoft MVP - XML)
 
Old May 17th, 2006, 03:39 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You might find that xml-dev is a better place for this question. Or try contacting Richard Tobin directly.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old May 17th, 2006, 03:55 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I think Joe read the question better than I did. I went off at a tangent because of the word "infoset".

Yes, there is a schema published for XSLT. Of course, it doesn't perform complete validation - for example it doesn't check that the content of a select attribute is a valid XPath expression, or that variable references relate to a declared variable. But it's probably good enough for syntax-directed editing.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old May 18th, 2006, 11:05 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
at first, thank you very much for your support and help. But unfortunately I described my problem not clear enough.

I am not looking for a summarize of every XSLT-element (like in the above xsd-file)
Quote:
quote:Originally posted by joefawcett
http://www.w3.org/2005/02/schema-for-xslt20.xsd
. I am looking for rules to build the syntax-elements of the language itself (element, attribute, comment; all itself and the same like in XML plus XSLT-specific syntax-elements like function). I am looking for a description or the rules to build that by machine. For example there is a simple description of the syntax of an XSLT-element by words:

- starttag starts with < and ends with >
- can have attributes
- needs an endtag that begins with </
...

And know I am looking for that description transformed in EBNF or XML-Schema. I have information that the XML-Specification is written partly in the EBNF-notation for describing the XML-Information Set (Infoset). I have found such a description as RDF-Schema, but not in EBNF or XML-Schema and not for XSLT.

For a description of what I want to do: My Editor shows the user the possible syntax-elements of the language XSLT. One can be choosen to write into the file. If the user chooses for example the syntax-element “element”, the following line (exactly as shown) is written into the file:

<xsl:element-name attribute-name=”text”></xsl:element-name>

After that the user can overwrite the “element-name”, “attribute-name” and “text” with concrete names and text. The same should be for every syntax-element of the language.

Can you help me again with this added information?

Thank you very much and sorry for the bad description of my problem.

belgaia










Similar Threads
Thread Thread Starter Forum Replies Last Post
General XSLT Questions in the XSLT Forum jminatel BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 0 March 31st, 2008 07:50 PM
Can XSLT read DTD/schema and Generate XSLT.. ROCXY XSLT 1 November 6th, 2006 09:39 AM
dynamic xslt -> xslt creation namespace problem jkmyoung XSLT 2 July 15th, 2006 12:42 AM
xslt with an xslt outputfile alleycat XSLT 4 February 20th, 2006 09:56 AM
Looking for EBNF Grammar for T-SQL BenFidge SQL Server 2000 1 November 7th, 2003 09:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.