[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] FO to format unstructured XML containing "tabs"
Thank you very much, Ken and Andreas, for your helpful advice. I've decided to take your advice, Ken, and just try to focus on the "what FO output do I want" part of the problem...but this is proving harder than I expected. Here's the xml again, for reference: <p tabs="0.2 1.2 2.2"> some text, maybe formatted <b>maybe not</b>, and then: <tab/>item<tab/>item2<tab/>item3<br/> <tab/>item4<tab/>item5 </p> And here's some FO that *almost* does what I want. <?xml version="1.0" encoding="utf-8"?><!--kyle.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt"> <layout-master-set> <simple-page-master master-name="frame" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body"/> </simple-page-master> </layout-master-set> <page-sequence master-reference="frame"> <flow flow-name="frame-body"> <block> some text, maybe formatted <inline font-weight="bold">maybe not</inline>, and then: <block/> <inline> <leader leader-pattern="space" leader-length=".2in"/><inline>item</inline> <leader leader-pattern="space" leader-length="1in"/><inline>item2</inline> <leader leader-pattern="space" leader-length="1in"/><inline>item3</inline> </inline> <block/> <inline> <leader leader-pattern="space" leader-length=".2in"/><inline>item4</inline> <leader leader-pattern="space" leader-length="1in"/><inline>item5 goes on until it reaches the end of the line and finally wraps around, which is OK</inline> </inline> </block> </flow> </page-sequence> </root> The only thing it doesn't do right is, there's no consistency where the tabs are "set" to. I get: item item2 item3 item4 item5 goes on until it reaches the end of the line and finally wraps around, which is OK When what I really want is: item item2 item3 item4 item5 goes on until it reaches the end of the line and finally wraps around, which is OK I'll keep experimenting. Thanks again. KP XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|