Mam taki xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?mso-application progid="Word.Document"?> <w:wordDocument xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xml:space="preserve" w:embeddedObjPresent="no"> <o:DocumentProperties> <o:Title/> <o:Subject/> <o:Keywords/> <o:Description/> <o:Category/> <o:Author>adam </o:Author> <o:LastAuthor>adam </o:LastAuthor> <o:Manager/> <o:Company/> <o:HyperlinkBase/> <o:Revision>1</o:Revision> <o:TotalTime>2</o:TotalTime> <o:LastPrinted/> <o:Created>2012-04-17T11:37:52.58Z</o:Created> <o:LastSaved>2012-04-17T11:40:01.87Z</o:LastSaved> <o:Pages>1</o:Pages> <o:Words>4</o:Words> <o:Characters>21</o:Characters> <o:Paragraphs>1</o:Paragraphs> </o:DocumentProperties> <o:CustomDocumentProperties> <o:Editor dt:dt="string">OpenOffice.org/3.2$Win32 OpenOffice.org_project/320m18$Build-9502</o:Editor> <o:Language dt:dt="string"/> </o:CustomDocumentProperties> <w:fonts> <w:defaultFonts w:ascii="" w:h-ansi="" w:fareast="" w:cs=""/> </w:fonts> <w:lists> <w:listDef w:listDefId="0"> <w:lvl w:ilvl="0"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%1"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="1"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%2"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="2"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%3"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="3"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%4"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="4"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%5"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="5"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%6"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="6"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%7"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="7"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%8"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> <w:lvl w:ilvl="8"> <w:start w:val="1"/> <w:nfc w:val="255"/> <w:lvlText w:val="%9"/> <w:lvlJc w:val="left"/> <w:suff w:val="Nothing"/> </w:lvl> </w:listDef> <w:list w:ilfo="1"> <w:ilst w:val="0"/> </w:list> </w:lists> <w:styles> <w:style w:styleId="default-paragraph-style" w:type="paragraph" w:default="on"> <w:name w:val="default-paragraph-style"/> <w:pPr> <w:adjustRightInd w:val="off"/> <w:spacing/> <w:ind/> <w:widowControl w:val="off"/> <w:pBdr/> <w:ind/> </w:pPr> <w:rPr> <w:rFonts w:ascii="Times New Roman" w:h-ansi="Times New Roman" w:fareast="SimSun" w:cs="Mangal"/> <w:sz w:val="24"/> <w:lang w:val="pl-PL"/> </w:rPr> </w:style> <w:style w:styleId="default-table-style" w:type="table" w:default="on"> <w:name w:val="default-table-style"/> <w:tblPr> <w:tblInd w:w="0" w:type="auto"/> </w:tblPr> </w:style> <w:style w:styleId="Standard" w:type="paragraph"> <w:basedOn w:val="default-paragraph-style"/> <w:name w:val="Standard"/> </w:style> <w:style w:styleId="Header" w:type="paragraph"> <w:basedOn w:val="Standard"/> <w:name w:val="Header"/> <w:next w:val="Text_20_body"/> <w:pPr> <w:adjustRightInd w:val="off"/> <w:spacing w:before="239.841" w:after="120.204"/> <w:ind/> <w:widowControl w:val="off"/> <w:pBdr/> <w:ind/> </w:pPr> <w:rPr> <w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:fareast="SimSun" w:cs="Mangal"/> <w:sz w:val="28"/> </w:rPr> </w:style> <w:style w:styleId="Text_20_body" w:type="paragraph"> <w:basedOn w:val="Standard"/> <w:name w:val="Text_20_body"/> <w:pPr> <w:adjustRightInd w:val="off"/> <w:spacing w:before="0" w:after="120.204"/> <w:ind/> <w:widowControl w:val="off"/> <w:pBdr/> <w:ind/> </w:pPr> </w:style> <w:style w:styleId="List" w:type="paragraph"> <w:basedOn w:val="Text_20_body"/> <w:name w:val="List"/> <w:rPr> <w:rFonts w:cs="Mangal1"/> </w:rPr> </w:style> <w:style w:styleId="Caption" w:type="paragraph"> <w:basedOn w:val="Standard"/> <w:name w:val="Caption"/> <w:pPr> <w:adjustRightInd w:val="off"/> <w:spacing w:before="120.204" w:after="120.204"/> <w:ind/> <w:widowControl w:val="off"/> <w:supressLineNumbers/> <w:pBdr/> <w:ind/> </w:pPr> <w:rPr> <w:rFonts w:cs="Mangal1"/> <w:sz w:val="24"/> <w:i/> </w:rPr> </w:style> <w:style w:styleId="Index" w:type="paragraph"> <w:basedOn w:val="Standard"/> <w:name w:val="Index"/> <w:pPr> <w:adjustRightInd w:val="off"/> <w:spacing/> <w:ind/> <w:widowControl w:val="off"/> <w:supressLineNumbers/> <w:pBdr/> <w:ind/> </w:pPr> <w:rPr> <w:rFonts w:cs="Mangal1"/> </w:rPr> </w:style> <w:style w:type="character" w:styleId="Hyperlink"> <w:name w:val="Hyperlink"/> <w:rsid w:val="006A55B0"/> <w:rPr> <w:color w:val="000080"/> <w:u w:val="single"/> </w:rPr> </w:style> <w:style w:type="character" w:styleId="FollowedHyperlink"> <w:name w:val="FollowedHyperlink"/> <w:rsid w:val="006A55B0"/> <w:rPr> <w:color w:val="800000"/> <w:u w:val="single"/> </w:rPr> </w:style> <w:style w:type="character" w:styleId="CommentReference"> <w:name w:val="annotation reference"/> <w:basedOn w:val="DefaultParagraphFont"/> <w:semiHidden/> <w:rsid w:val="007770B7"/> <w:rPr> <w:sz w:val="16"/> <w:sz-cs w:val="16"/> </w:rPr> </w:style> <w:style w:type="paragraph" w:styleId="CommentText"> </w:style> <w:style w:type="paragraph" w:styleId="CommentSubject"> <w:name w:val="annotation subject"/> <w:basedOn w:val="CommentText"/> <w:next w:val="CommentText"/> <w:semiHidden/> <w:rsid w:val="007770B7"/> <w:pPr> <w:pStyle w:val="CommentSubject"/> </w:pPr> <w:rPr> <w:b/> <w:b-cs/> </w:rPr> </w:style> </w:styles> <w:docPr> <w:displayBackgroundShape/> <w:view w:val="print"/> <w:zoom w:percent=""/> <w:defaultTabStop w:val="709.317"/> <w:docVars/> </w:docPr> <w:body> <w:p> <w:pPr> <w:pStyle w:val="Standard"/> </w:pPr> <w:r> <w:t>To jest tekst testowy</w:t> </w:r> </w:p> <w:sectPr> <w:type w:val="next-page"/> <w:pgSz w:w="11907.5672" w:h="16839.9003" w:orient="portrait"/> <w:pgMar w:top="1134" w:bottom="1134" w:left="1134" w:gutter="0" w:right="1134"/> <w:pgBorders w:offset-from="text"/> </w:sectPr> </w:body> </w:wordDocument>
i taki xslt
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office"> <xsl:output method="html" encoding="UTF-8"/> <xsl:template match="/"> <html> <body> <xsl:apply-templates/> </body> </html> </xsl:template> <xsl:template match="o:DocumentProperties"> <table border="1"> <tr> <td><b>Imie</b></td><td><b>Nazwisko</b></td><td><b>Data</b></td> <tr> <td><xsl:value-of select="o:Author"/></td> <td><xsl:value-of select="o:LastAuthor"/></td> <td><xsl:value-of select="o:LastSaved"/></td> </tr> </tr> </table> </xsl:template > <xsl:template match="w:sectPr"> <xsl:value-of select="o:t"/> </xsl:template> </xsl:stylesheet>
otrzymuję coś takiego
ta linijka mi coś miesz jak poprawnie zmienić xslt aby : zawatrość była tylko "To jest tekst testowy"