Dual Syntax for XML Languages | SpringerLink
Skip to main content

Dual Syntax for XML Languages

  • Conference paper
Database Programming Languages (DBPL 2005)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 3774))

Included in the following conference series:

Abstract

XML is successful as a machine processable data interchange format, but it is often too verbose for human use. For this reason, many XML languages permit an alternative more legible non-XML syntax. XSLT stylesheets are often used to convert from the XML syntax to the alternative syntax; however, such transformations are not reversible since no general tool exists to automatically parse the alternative syntax back into XML.

We present XSugar, which makes it possible to manage dual syntax for XML languages. An XSugar specification is built around a context-free grammar that unifies the two syntaxes of a language. Given such a specification, the XSugar tool can translate from alternative syntax to XML and vice versa. Moreover, the tool statically checks that the transformations are reversible and that all XML documents generated from the alternative syntax are valid according to a given XML schema.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
JPY 3498
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
JPY 5719
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
JPY 7149
Price includes VAT (Japan)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. Abramov, S., Glück, R.: Principles of inverse computation and the universal resolving algorithm. In: The essence of computation: complexity, analysis, transformation, pp. 269–295. Springer, Heidelberg (2002)

    Google Scholar 

  2. Ambastha, N., Hashmi, T.: Xqueeze (2005), http://xqueeze.sourceforge.net/

  3. Boyer, J.: Canonical XML Version 1.0. W3C Recommendation (March 2001), http://www.w3.org/TR/xml-c14n

  4. Brabrand, C., Møller, A.: Analyzing ambiguity of context-free grammars (2005) (In preparation)

    Google Scholar 

  5. Brabrand, C., Møller, A., Schwartzbach, M.I.: Static validation of dynamically generated HTML. In: Proc. ACM SIGPLAN-SIGSOFT Workshop on Program Analysis for Software Tools and Engineering, PASTE 2001, June 2001, pp. 221–231 (2001)

    Google Scholar 

  6. Christensen, A.S., Møller, A., Schwartzbach, M.I.: Extending Java for high-level Web service construction. ACM Transactions on Programming Languages and Systems 25(6), 814–875 (2003)

    Article  Google Scholar 

  7. Clark, J.: RELAX NG compact syntax. OASIS (November 2002), http://relaxng.org/compact.html

  8. Clark, J., Murata, M.: RELAX NG specification. OASIS (December 2001), http://www.oasis-open.org/committees/relax-ng/

  9. Clear Methods, Inc. ConciseXML (2005), http://www.concisexml.org/

  10. Fisher, K., et al.: PADS: Processing Arbitrary Data Streams (2005), http://www.padsproj.org/

  11. Gundersen, V.B., Hendrikse, Z.W.: BibTeXML (2005), http://bibtexml.sourceforge.net/

  12. Kirkegaard, C., Møller, A., Schwartzbach, M.I.: Static analysis of XML transformations in Java. IEEE Transactions on Software Engineering 30(3), 181–192 (2004)

    Article  Google Scholar 

  13. McGrath, S.: XML processing with Python. Prentice-Hall, Englewood Cliffs (2000)

    Google Scholar 

  14. Møller, A.: Document Structure Description 2.0 (December 2002); BRICS, Department of Computer Science, University of Aarhus, Notes Series NS-02-7, Available from http://www.brics.dk/DSD/

  15. Mu, S.-C., Hu, Z., Takeichi, M.: Bidirectionalising HaXML (2005)

    Google Scholar 

  16. Parker, D.: Presenting XML (2005), http://presentingxml.sourceforge.net/

  17. Unidex Inc. XFlat (2005), http://www.unidex.com/xflat.htm

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Brabrand, C., Møller, A., Schwartzbach, M.I. (2005). Dual Syntax for XML Languages. In: Bierman, G., Koch, C. (eds) Database Programming Languages. DBPL 2005. Lecture Notes in Computer Science, vol 3774. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11601524_2

Download citation

  • DOI: https://doi.org/10.1007/11601524_2

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-30951-2

  • Online ISBN: 978-3-540-31445-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics