Hi Daniel,
A nice geeky question for a Tuesday morning.
I agree with Sebastian's first point, that this
is a dangerous road to travel, inasmuch as XPath
is formal, and this, 'tain't, and appears to
warrant something (but what?) without delivering
it. (Not that I wouldn't be sorely tempted myself.)
But if it were XPath ... what's wrong with
@tei:cert? That's at least correct XPath even if
it's not how the attribute would be addressed
within an actual processing context.
Alternatively, tei:*/@cert is surely better than
anything else suggested so far; since the parent
of an attribute must be an element, the "node()" node test isn't required.
Also, if we're sticking to quasi-pseudo-XPath,
wouldn't "html:ul|html:ol" be better than
"html:ul/html:ol" as you first had it (or maybe that was a typo)?
Cheers,
Wendell
At 06:38 AM 2/7/2006, Sebastian wrote:
>Torsten Schaßan wrote:
>
>>thereafter "<att>cert</att>"?
>ah you spotted my deliberate mistake...
>
>>Would
>>
>>tei:node()/@cert
>>
>>be too confusing?
>
>is that valid XPath? can you have a namespace-prefix on node()?
>possibly
>
>node()[namespace-uri()='http://www.tei-c.org/ns/1.0']/@cert
======================================================================
Wendell Piez mailto:[log in to unmask]
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
|