XML Skeletons

I often need to write an XML file and can never quite remember the exact syntax. So here, as much for my own record as anything else, are some skeletons.

XML, with entities (in internal / embedded DTD) and a link to an XSLT stylesheet:

<?xml version="1.0" ?>
<!DOCTYPE dtd_for_root [
  <!ENTITY nbsp "& #160;">
  <!-- etc. -->


<?xml version="1.0" ?>
<xsl:template match="/">
  <!-- root template -->
<!-- etc. -->
<xsl:template match="*|text()"/>
<!-- ignore all else -->

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: