- From: Doug Davis <dug@us.ibm.com>
- Date: Wed, 28 Jan 2009 10:46:29 -0500
- To: public-ws-resource-access-editors@w3.org
- Message-ID: <OF99DA27C8.E0D3A798-ON8525754C.00561FB2-8525754C.0056A97D@us.ibm.com>
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