Subject: [xsl] ODT transform, automatic styles problem From: lac <e107lac@xxxxxxxxx> Date: Fri, 13 Feb 2009 16:11:22 +0100 |
Hi List! I need a little help for ODT transform with XSLT 1.0.I have problem with automatic generated styles. I dont matching elements by style:parent-style-name For example: part of XML (here is the full source http://lac.wsb.hu/content.xml) <office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" ..... ..... <office:automatic-styles> <style:style style:name="P2" style:family="paragraph" style:parent-style-name="Body"> ...... ...... </style:style> </office:automatic-styles> <office:body> <office:text text:use-soft-page-breaks="true"> .... ... ... <text:section text:style-name="Sect1" text:name="Section"> <text:p text:style-name="Body"> Lorem ipsum do....... </text:p> <text:p text:style-name="P2"> Lorem ipsum do....... </text:p> </text:section> </office:body> </office:document-content> XSL <xsl:template match="text:p[@text:style-name = 'Body']| XPATH for getting current text:p which style name = //style:style/@style-name and @style:parent-style-name = Body "> <xsl:element name="p"> <xsl:value-of select='.'/> </xsl:element> </xsl:template> I hope you understand my problem. Thank you, and sorry for my English Lac
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Microsoft, Yahoo, and Google , M. David Peterson | Thread | [xsl] regex in XSLT 2.0: problems w, Manuel Souto Pico |
[xsl] Microsoft, Yahoo, and Google , M. David Peterson | Date | [xsl] regex in XSLT 2.0: problems w, Manuel Souto Pico |
Month |