<b> and <br/>

All,
  I modified the xsl to give us <b> and <br/> support - no changes to the 
dtd required.  Its a bit odd but what you have to do is use the phrase 
element.  Near as I can tell, <phrase> is pretty much like a <span> and it 
will convert the phrase's "role" attribute in the span's "class" 
attribute.  So:
        <phrase role="myClass">...</phrase>
gets converted to:
        <span class="myClass">....</phrase>

I added some special logic to the xsl processing of phrase to do two 
things:
1 - if there are no children of the "phrase" element then it assumes all 
you were looking for is a line-break - and it'll insert a <br/>
2 - if you use the special role value of "bold" then instead of inserting 
a <span> it'll insert a <b> instead.

So,
        <phrase/>                               becomes <br/>
        <phrase role="bold">hello</phrase>      becomes <b>hello</b>

Not thrilled with how hard it is to create a <b> but I didn't want to muck 
with the dtd.

thanks
-Doug
______________________________________________________
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com

Received on Wednesday, 28 January 2009 15:47:11 UTC