Re: All teidata.pointer attributes

Lou Burnard <[email protected]>
Newsgroups gmane.text.tei.general
Message-ID <[email protected]>
This information is not available from the document instance: you need 
to look at the ODD from which the schema that validates the document 
instances was generated.

If you're using a document that is valid against TEI all, this will list 
all the elements concerned:

<xsl:template xmlns:t="http://www.tei-c.org/ns/1.0" match="/">
    <xsl:for-each 
select="document('http://www.*tei*-c.org/release/*xml*/*tei*/odd/*p5subset*.*xml*l')//t:elementSpec[t:attList/t:attDef/t:datatype/t:dataRef/@key='teidata.pointer']">
        <xsl:message><xsl:value-of select='@ident'/></xsl:message>
    </xsl:for-each>


On 04/02/17 22:52, John P. McCaskey wrote:
> Running an XSL transform against a TEI document, I want to match all 
> TEI elements that contain at least one teidata.pointer attribute.
>
> I can’t match just on attribute name. In some elements @value is a 
> pointer, in others it’s text. Sometimes @class is a pointer, sometimes 
> not.
>
> Is there a master list of attributes that can be pointers and the 
> elements in which they are?
>
> (Even better if the list is in a form that makes it easy to use in an 
> XSL match. Double extra better if you can show me the very XSLT that 
> will copy the element and add an attribute “haspointer=’true’”!)
>
> Thanks!
> John
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.