[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

remembering output

Subject: remembering output
From: paul.chubb@xxxxxxxxxx
Date: Wed, 1 Feb 2006 16:06:12 +1100
fo text indent
Hi,
      if this is a dumb question please forgive me:-{)=

I have an xml word processing document format that splits stylistic
information into two sets of embeded styles one for paragraph and one for
font:

<pardef id='3' leftmargin='1.0424in' rightmargin='2.5924in'
keepwithnext='true' keeptogether='true'/>
<par def='3'>
       <run>
            <font style='bold' name='Arial' pitch='variable'
truetype='true' familyid='20'/>
                  IRMC/2006/nn
      </run>
</par>

that I am trying to convert to another xml word processing document format
that creates styles including both paragraph and font information in
another location.

<style:style style:name="P1" style:family="paragraph"
style:parent-style-name="Standard">
     <style:paragraph-properties fo:margin-left="2cm" fo:margin-right="2cm"
fo:text-indent="0cm" style:auto-text-indent="false"/>
     <style:text-properties style:font-name="Tunga" fo:font-size="13pt"
fo:font-weight="bold"/>
</style:style>

<text:p text:style-name="P1">quickbrownfox</text:p>

The two formats inquestion are Domino XL (DXL) and OpenDocument Format
(ODF).

I have to do something like the following:

Pass 1:

1) scan the text of the dxl file for <par>

2) check to see if the referenced paragraph style and the child font
definition have been emitted before

3) If they haven't emit an appropriate odf style

Pass 2:

1) for each paragraph in the dxl file get the paragraph style and the font
style and find the correct odf style created in pass 1

2) emit a <text:p tag with the correct style name around the text

Questions:

1) How do I identify a specific odf style either to check if it had been
emited in pass 1 or to generate the <text:p> tag in pass 2.

2) Is there a better way to do this? As a newbie to xslt I have spent a day
looking for an answer with no real luck.

Many thanks in advance

Paul



------------------------------------------------------------------------------------------------
Free publications and statistics available on www.abs.gov.au

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.