ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michael Guravage" <guravage@operamail.com>
Subject: ConTeXt and XML: entities and attributes
Date: Fri, 27 Aug 2004 17:49:02 +0100	[thread overview]
Message-ID: <20040827164902.9BFEB3AA515@ws5-8.us4.outblaze.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]

I have two questions, both concerning typesetting XML with conTeXt. The first questioin is about how ConTeXt handles entity declarations and reference. The following bit of XML declares and references four parameter entities. 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE TEI.2 PUBLIC "-//TEI P4//ELEMENTS TEI Lite XML ver. 1//EN"
                       "http://www.tei-c.org/Lite/DTD/teixlite.dtd"[
<!ENTITY % ISOlat1 SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-lat1.ent'> %ISOlat1;
<!ENTITY % ISOlat2 SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-lat2.ent'> %ISOlat2;
<!ENTITY % ISOnum SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-num.ent'> %ISOnum;
<!ENTITY % ISOpub SYSTEM 'http://www.tei-c.org/Entity_Sets/Unicode/iso-pub.ent'> %ISOpub;
<!ENTITY moe SYSTEM 'moe.xml'>
]>

ConTeXt does not typeset the declarations, but does typeset the references, i.e. the first line in the typeset result is:

%ISOlat1;%ISOlat2;%ISOnum;%ISOpub;

Has anyone seen this before, and has anyone an opinion how it should be fixed?

My second question concerns tag attributes. The following bit of XML code contains two catRef tags, each with two attributes:

<profileDesc>
  <textClass>
    <catRef scheme="period" target="early"/>
    <catRef scheme="Stooges" target="Moe Larry Curly"/>
  </textClass>
</profileDesc>

Can someone please suggest how I can process these and grab scheme and target attributes so that the final typeset result looks something like this: 

Period: early
Stooges: Moe, Larry, Curly

Thanks in advance for your help.

Cheers,

Michael Guravage
guravage@operamail.com

PS: The attatched file contains an example.

[-- Attachment #2: stooges.zip --]
[-- Type: application/x-zip-compressed, Size: 10083 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

                 reply	other threads:[~2004-08-27 16:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040827164902.9BFEB3AA515@ws5-8.us4.outblaze.com \
    --to=guravage@operamail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).