Search found 6 matches

by eivindan
Mon Dec 01, 2008 5:07 pm
Forum: XSLT and FOP
Topic: Combining results from multiple elements
Replies: 0
Views: 3128

Combining results from multiple elements

Hi I'm working on a solution for converting Office Open XML into tagged text. The XML contains paragraphs with a single style, and "runs" that can contain multiple style elements, such as Bold, Italic, Underline etc. If the run contains only a single style element, I can easily tag the wan...
by eivindan
Thu Nov 13, 2008 4:15 pm
Forum: XSLT and FOP
Topic: Select multiple child nodes
Replies: 1
Views: 3099

Select multiple child nodes

I'm fairly new to XSLT, and struggeling with something that I think should be really simple. Given the following XML, how can you select the last w:r-element only? (I want to tag the last text with "BoldItalic". ) <w:p> <w:r> <w:rPr> <w:i/> </rPr> <w:t>Some italic text, </w:t> </w:r> <w:r>...
by eivindan
Thu Nov 13, 2008 2:07 pm
Forum: XSLT and FOP
Topic: Escaping characters in text output
Replies: 2
Views: 3083

Re: Escaping characters in text output

Just a followup with my solution, that also supports regexp search and replace. <xsl:template name="filter_strings"> <xsl:param name="input_text" /> <xsl:param name="search" select="document('ITT_SEARCH_REPLACE.xml')/*/string_replacement/search" /> <xsl:variab...
by eivindan
Fri Oct 17, 2008 3:50 pm
Forum: XSLT and FOP
Topic: Escaping characters in text output
Replies: 2
Views: 3083

Escaping characters in text output

Hi, I'm trying to convert a convert a Office XML-file into a tagged text file. The text file uses a special syntax, similar to a flat XML-file (but it's not valid XML). That means that characters such as < and > have to be escaped in the output. "<w:t>Some <tagged> text</w:t>" is now conve...
by eivindan
Tue Sep 30, 2008 10:34 am
Forum: XSLT and FOP
Topic: Newbie: XSLT variables?
Replies: 2
Views: 2710

Re: Newbie: XSLT variables?

Thank you!! That works just the way I wanted. :)
by eivindan
Mon Sep 29, 2008 2:58 pm
Forum: XSLT and FOP
Topic: Newbie: XSLT variables?
Replies: 2
Views: 2710

Newbie: XSLT variables?

Hi, I'm new to XSLT and have a problem with using data from a template in another one. The input (word 2007): <w:p> <w:pPr> <w:pStyle w:val="MyStyle"/> </w:pPr> <w:r> <w:rPr> <w:b/> </w:rPr> <w:t>Some bold text</w:t> </w:r> </w:p> Output should be (indesign tagged text): <pstyle:MyStyle><c...