XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
John CalderbankSubject: Applying XSLT to Word DOCX/XML
Author: John Calderbank
Date: 15 Dec 2022 10:12 PM
Is it possible to apply XSLT to the document.xml file within a Word DOCX file without actually decompressing the DOCX? When I browse from the "Source XML URL" field within Scenario Properties, I find that I am only able to select the DOCX file without being able to open it and select the document.xml file which is located within the "word" folder within the DOCX.

I am hoping to avoid having to decompress the DOCX file outside of Stylus Studio.

Let me know if more detail is required to be able to answer my question.

Thank you.

Posttop
Ivan PedruzziSubject: Applying XSLT to Word DOCX/XML
Author: Ivan Pedruzzi
Date: 16 Dec 2022 01:31 AM
Hello John,

You can use the jar: url scheme to access files store inside Microsoft Office formats which are ZIP compatible.

Attached to this message you can find two small examples in XSLT 2.0 and XQuery.

Both examples extract the text from the first paragraph of a small Word document.

I hope you are not restricted to XSLT 1.0 which makes things far more laborious.

let us know if you have troubles in interpreting the code

If you are looking for a way for automating your transformation, have a look at our XML Pipeline Server www.xmlpipelineserver.com

Hope this helps
Ivan Pedruzzi
Stylus Studio Team


Documentms-word-demo.zip

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.