Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] remembering output

From: paul.chubb@----------
To:
Date: 2/1/2006 5:23:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent