How to display/edit attributes inline

Nick Mangine <[email protected]> Wed, 26 May 2004 10:15:23 -0400
Newsgroups gmane.editors.bitflux.general
Organization NCSU Libraries
Message-ID <[email protected]>
I am looking into the feasibility of using BXE as an editor for EAD
(http://www.loc.gov/ead/).  This is a fairly complex XML Schema used for
Archival Description.  I've run into two problems and they both involve
attributes and how to display them:

1. Given the following tag:

<container id="MC233.7" type="box">7</container>

I need to display "Box MC233.7".  As you can see, the text within the
tag is not important, it's the attributes that need to be displayed and
edited.


2. A common technique within this schema is to place display information
within the attributes.  For example, the following two tags need to be
displayed bold and underlined respectively:

<title render="bold">Title of Book</title>
<title render="underline">Another Title</title>

I don't see a way to do either of these things using CSS.  So my next
thought was to use xsl to transform them to:

<container>
  <type>box</type>
  <id>MC233.7</id>
  7
</container>

and:

<title>
  <renderBold>
    Title of Book
  </renderBold>
</title>
<title>
  <renderUnderline>
    Another Title
  </renderUnderline>
</title>

I remember seeing something about "transformxml.xsl".  Could I do this
transformation there?  Is that the best solution?  Is there a way to do
this without mucking up the XML schema?  Because that defeats the
purpose of an XML editor.

Thanks for your help.

-- 
Nick Mangine                  Computing Consultant
NC State University Libraries
Distance Learning /
Special Collections           [email protected]
Campus Box 7111               Phone: 919/513-3651
Raleigh, NC 27695             Fax:   919/515-7854
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users