@prefix rdf: . @prefix xsd: . @prefix itsrdf: . @prefix nif: . a nif:Word ; nif:anchorOf "XSLT" ; nif:beginIndex "211"^^xsd:nonNegativeInteger ; nif:endIndex "215"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Paragraph ; nif:beginIndex "303"^^xsd:nonNegativeInteger ; nif:endIndex "387"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . a nif:Paragraph ; nif:beginIndex "765"^^xsd:nonNegativeInteger ; nif:endIndex "802"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . nif:beginIndex "0"^^xsd:nonNegativeInteger ; nif:endIndex "2695"^^xsd:nonNegativeInteger ; nif:firstSection , ; nif:hasSection , , , ; nif:isString "SXML is an alternative syntax for writing XML data (more precisely, XML Infosets) as S-expressions, to facilitate working with XML data in Lisp and Scheme. An associated suite of tools implements XPath, SAX and XSLT for SXML in Scheme and are available in the GNU Guile implementation of that language. Textual correspondence between SXML and XML for a sample XML snippet is shown below: Compared to other alternative representations for XML and its associated languages, SXML has the benefit of being directly parsable by existing Scheme implementations. The associated tools and documentation were praised in many respects by David Mertz in his IBM developerWorks column, though he also criticized the preliminary nature of its documentation and system.\n\nExample\nTake the following simple XHTML page: An example page

Hi, there!

This is just an >>example<< to show XHTML & SXML.

After translating it to SXML, the same page now looks like this: (*TOP* (@ (*NAMESPACES* (x \"http://www.w3.org/1999/xhtml\"))) (x:html (@ (xml:lang \"en\") (lang \"en\")) (x:head (x:title \"An example page\")) (x:body (x:h1 (@ (id \"greeting\")) \"Hi, there\") (x:p \"This is just an >>example<< to show XHTML & SXML.\")))) Each element's tag pair is replaced by a set of parentheses. The tag's name is not repeated at the end, it is simply the first symbol in the list. The element's contents follow, which are either elements themselves or strings. There is no special syntax required for XML attributes. In SXML they are simply represented as just another node, which has the special name of @. This can't cause a name clash with an actual \"@\" tag, because @ is not allowed as a tag name in XML. This is a common pattern in SXML: anytime a tag is used to indicate a special status or something that is not possible in XML, a name is used that does not constitute a valid XML identifier. We can also see that there's no need to \"escape\" otherwise meaningful characters like & and > as & and > entities. All string content is automatically escaped because it is considered to be pure content, and has no tags or entities in it. This also means it is much easier to insert autogenerated content and that there is no danger that we might forget to escape user input when we display it to other users (which could lead to all kinds of cross-site scripting attacks or other development annoyances).\n\nCitations\n\n\nExternal links\n\n* SXML Tools Tutorial by Dmitry Lizorkin \n* Main SSAX/SXML page" ; nif:lastSection , ; nif:predLang ; nif:sourceUrl . a nif:Paragraph ; nif:beginIndex "2629"^^xsd:nonNegativeInteger ; nif:endIndex "2695"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString . nif:beginIndex "0"^^xsd:nonNegativeInteger ; nif:endIndex "755"^^xsd:nonNegativeInteger ; nif:firstParagraph ; nif:hasParagraph , , ; nif:lastParagraph ; nif:referenceContext ; nif:superString ; "0"^^ . a nif:Paragraph ; nif:beginIndex "2088"^^xsd:nonNegativeInteger ; nif:endIndex "2600"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString . nif:anchorOf "XML" ; nif:beginIndex "42"^^xsd:nonNegativeInteger ; nif:endIndex "45"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Paragraph ; nif:beginIndex "1422"^^xsd:nonNegativeInteger ; nif:endIndex "2087"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . a nif:Phrase ; nif:anchorOf "IBM developerWorks" ; nif:beginIndex "647"^^xsd:nonNegativeInteger ; nif:endIndex "665"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Phrase ; nif:anchorOf "XML Infosets" ; nif:beginIndex "68"^^xsd:nonNegativeInteger ; nif:endIndex "80"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Phrase ; nif:anchorOf "SXML Tools Tutorial by Dmitry Lizorkin" ; nif:beginIndex "2632"^^xsd:nonNegativeInteger ; nif:endIndex "2671"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Phrase ; nif:anchorOf "cross-site scripting" ; nif:beginIndex "2538"^^xsd:nonNegativeInteger ; nif:endIndex "2558"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Section ; nif:beginIndex "757"^^xsd:nonNegativeInteger ; nif:endIndex "2600"^^xsd:nonNegativeInteger ; nif:hasParagraph , , , , , ; nif:lastParagraph ; nif:nextSection ; nif:referenceContext ; nif:superString ; "1"^^ . a nif:Paragraph ; nif:beginIndex "1150"^^xsd:nonNegativeInteger ; nif:endIndex "1421"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . a nif:Paragraph ; nif:beginIndex "803"^^xsd:nonNegativeInteger ; nif:endIndex "1084"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . a nif:Word ; nif:anchorOf "XHTML" ; nif:beginIndex "791"^^xsd:nonNegativeInteger ; nif:endIndex "796"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Paragraph ; nif:beginIndex "1085"^^xsd:nonNegativeInteger ; nif:endIndex "1149"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . a nif:Word ; nif:anchorOf "Lisp" ; nif:beginIndex "139"^^xsd:nonNegativeInteger ; nif:endIndex "143"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Title ; nif:anchorOf "Example" ; nif:beginIndex "757"^^xsd:nonNegativeInteger ; nif:endIndex "764"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString . a nif:Phrase ; nif:anchorOf "Main SSAX/SXML page" ; nif:beginIndex "2675"^^xsd:nonNegativeInteger ; nif:endIndex "2695"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Title ; nif:anchorOf "External links" ; nif:beginIndex "2614"^^xsd:nonNegativeInteger ; nif:endIndex "2628"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString . a nif:Title ; nif:anchorOf "Citations" ; nif:beginIndex "2602"^^xsd:nonNegativeInteger ; nif:endIndex "2611"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString . a nif:Section ; nif:beginIndex "2614"^^xsd:nonNegativeInteger ; nif:endIndex "2695"^^xsd:nonNegativeInteger ; nif:hasParagraph ; nif:lastParagraph ; nif:previousSection ; nif:referenceContext ; nif:superString ; "3"^^ . a nif:Paragraph ; nif:beginIndex "388"^^xsd:nonNegativeInteger ; nif:endIndex "755"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString . a nif:Word ; nif:anchorOf "XPath" ; nif:beginIndex "196"^^xsd:nonNegativeInteger ; nif:endIndex "201"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Word ; nif:anchorOf "Scheme" ; nif:beginIndex "148"^^xsd:nonNegativeInteger ; nif:endIndex "154"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Section ; nif:beginIndex "2602"^^xsd:nonNegativeInteger ; nif:endIndex "2612"^^xsd:nonNegativeInteger ; nif:nextSection ; nif:previousSection ; nif:referenceContext ; nif:superString ; "2"^^ . a nif:Phrase ; nif:anchorOf "GNU Guile" ; nif:beginIndex "260"^^xsd:nonNegativeInteger ; nif:endIndex "269"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Word ; nif:anchorOf "S-expressions" ; nif:beginIndex "85"^^xsd:nonNegativeInteger ; nif:endIndex "98"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef . a nif:Paragraph ; nif:beginIndex "0"^^xsd:nonNegativeInteger ; nif:endIndex "302"^^xsd:nonNegativeInteger ; nif:nextParagraph ; nif:referenceContext ; nif:superString . a nif:Word ; nif:anchorOf "SAX" ; nif:beginIndex "203"^^xsd:nonNegativeInteger ; nif:endIndex "206"^^xsd:nonNegativeInteger ; nif:referenceContext ; nif:superString ; itsrdf:taIdentRef .