Export as XML? Stylesheets?
I'm trying to decide about switching from Office to iWork. I'm the buyer for an all-Mac newspaper/website. Can anyone tell me if Pages can export files as XML? Also, does it incorporate user styles? This is important for production workflow. I would like to be XML from editing through layout and straight on to the web.
If Pages currently doesn't offer these options, does anyone know if there are plans to support these features in the future?
No one here knows anything about future enhancements.
No xml export, although part of a Pages document is xml.
User styles are there, but not everyone feels comfortable with the way they are implemented. Why not try them yourself?
http://www.apple.com/iwork/trial/
Similar Messages
-
Create on runtime a xml stylesheet
hello,
is it possible in abap to create on runtime a xml stylesheet?
kind regards
sebastianHi Sebastian,
Check out the code below. May be of some help to you.
Here a successful implementation of Function module "SAP_CONVERT_TO_XML_FORMAT" for users of SAP 46c. It converts an internal table to an xml-table and downloads it.
This code needs 3 variables: FILENAME, XML-document-Name DOC_NAME(freetext) and the internal table (TAB) which you want to convert to XML.
TYPES: TRUXS.
TYPES : BEGIN OF TRUXS_XML_LINE,
DATA(256) TYPE X,
END OF TRUXS_XML_LINE.
TYPES: TYPE_XMLTAB TYPE TABLE OF TRUXS_XML_LINE.
DATA: XMLTAB TYPE TYPE_XMLTAB, BIN_SIZE TYPE I.
data: xml_tab type table of truxs_xml_line,
Xml_tab2 type
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ''
I_LINE_HEADER = ''
I_FILENAME = FILENAME
I_APPL_KEEP = ''
I_XML_DOC_NAME = DOC_NAME
IMPORTING
PE_BIN_FILESIZE = BIN_SIZE
TABLES
I_TAB_SAP_DATA = TAB
CHANGING
I_TAB_CONVERTED_DATA = XMLTAB
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = BIN_SIZE
CODEPAGE = ' '
FILENAME = FILENAME
FILETYPE = 'BIN'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = XMLTAB
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>SECOND PROGRAM:</b>
REPORT abc.
DATA
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
DATA : BEGIN OF itab OCCURS 0,
a(100) TYPE c,
END OF itab.
DATA: xml_out TYPE string .
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
DATA: xmlupl TYPE string .
FIRST PHASE
Fetch Data
SELECT * FROM t001 INTO TABLE t001.
XML
CALL TRANSFORMATION ('ID')
SOURCE tab = t001[]
RESULT XML xml_out.
CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
EXPORTING
TEXT = xml_out
IMPORTING
LENGTH =
TABLES
FTEXT_TAB = itab.
Download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filetype = 'BIN'
filename = 'd:\xx.xml'
TABLES
data_tab = itab.
SECOND PHASE
BREAK-POINT.
REFRESH t001.
CLEAR t001.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'D:\XX.XML'
filetype = 'BIN'
TABLES
data_tab = upl.
LOOP AT upl.
CONCATENATE xmlupl upl-f INTO xmlupl.
ENDLOOP.
XML
CALL TRANSFORMATION ('ID')
SOURCE XML xmlupl
RESULT tab = t001[]
Reward points if this helps.
Manish -
Can I Include an xml-stylesheet Link in a Java Web-Service?
The ability to easily create a SOAP-based web-service from a Java class using JDev's built in "Java Web Service" wizard is great.
From an "Ajax enablement" perspective, I see tremendous value in having the ability to specify an XSL url in the call to that web-service, so that the server will insert an <?xml-stylesheet .../> link to the specified URL prior to the SOAP message that it returns. That way, different callers to the web-service could render the same SOAP response differently (via an XSL transformation performed on the client-side via the XSL they've specified).
Is there already an undocumented way to do this with an Oracle "Java Web Service" that I am not aware of? If not, adding that capability would be trivial for Oracle, and it would add tremendous value to developers using Oracle's "Java Web Service" capability.Hi Chris,
I take it you are using the RESTful API method to GET the data. In that case you shoul be able to perform a http POST from your js code in order to update the controls.
This could be done as form components are updated, or after a submit button is pressed (I'm sure you are familiar with this part).
Please see here for more information: http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/build_web_service/
I hope this helps. -
I create several file name entities in an external DTD.
It used to work sometimes back but I don't remember now when it begun to fail.
typical document for eg., is given below:
<!DOCTYPE PURANA SYSTEM "purana.dtd" [ <!ENTITY CHAPTER_1 SYSTEM "./chapter_1.xml"> ]>
<?xml-stylesheet type="text/xsl" href="purana.xsl"?> <PURANA>
<TITLE>
</TITLE>
&CHAPTER_1;
</PURANA>)
the abbreviation used to work by loading the file using XSL script,
but now it does not even work when the entity is defined within the XML document itself.Too difficult???
Please helped me.
Thank you, Theo -
Structure inDesign document and export as XML for use in the web
Hello everyone,
I just recently started using inDesign and I am fascinated by its possibilities! I use it for a project where a finished inDesign layout that is used for a printed publication is now supposed to be transformed for implementing it on a web site. My job is to export the inDesign document as an XML file. After massive reading the last weeks I'm quite familiar with the structuring and tagging in inDesign. Though there's some issues I do not understand. Your precious advice would be of highest meaning to me
The programmer who will later use my XML output for the web-transformation needs the document structured in different levels like "Root > Chapter > Subchapter > Text passage / table". I already structured the document with tags like title, text passage, table, infobox,... but the structure is just linear, putting one item following to another.
How can I structure the document with reoccuring tags that enable me to identify the exact position of an item in the document's structure? So that I can say for example "text passage X" is located in chapter 4, subchapter 1. This has to be done because the document is supposed to be updated later on. So maybe a chapter gets modified and has to be replaced, but this replacement is supposed to be displayed.
I hope my problem becomes clear! That's my biggest issue for now. So for any help I'd be very thankful!Our print publications are created in InDesign CS5 for Mac then the text is exported to RTF files then sent to an outside company to be converted to our XML specifications for use by our website developers. I would like to create a workflow in which our XML tags are included in the InDesign layouts and then export the XML from the layouts.
Some more detail about what kind of formatting is necessary might be helpful.
I know that IDML files contain the entire layout in XML format. Is it a good idea to extract what we need from IDML, using the already-assigned tags?
Well, if you want to export the whole document, it's the only reasonable approach.
We use a workflow system such that each story is a seperate InCopy document, stored in ICML format (Basically a subset of IDML). Our web automation uses XSLT to convert each story into HTML for use on our web site; it also matches it up with external metadata so it knows what is a headline and what is not, etc.. It is not exactly hassle free, and every once in a while someone uses a new InDesign feature that breaks things (e.g., our XSLT has no support for paragraph numbering, so numbered paragraphs show up without their numbers).
You could do the same thing with with IDML, you'd just have to pick out each story, but that's small potatoes compared to all the XSL work you're going to have to do.
On the other hand, there may be better approaches if you're not going to export the whole document. For instance, you could use scripting to export each story as an RTF file, and then you could convert the RTF files into HTML using other tools. -
PBDOM : Exporting to XML file gives a single line
I've been starting developing with PowerBuilder 12.5 a few weeks ago. I had to write some XML files, so I got familiar with the PBDOM library.
I can build a lot of different things, it's very nice, but one thing still bothers me :
In the output file, the whole XML is written on a single line.
I use the SaveDocument function.
For example, here is some code :
PBDOM_Document doc
PBDOM_Element noderoot, node1, node11, node12
doc = CREATE PBDOM_Document
doc.NewDocument("NodeRoot")
noderoot = doc.GetRootElement()
node1 = CREATE PBDOM_Element
node1.SetName("Node1")
noderoot.AddContent(node1)
node1.SetAttribute("Attr", "AttrValue")
node11 = CREATE PBDOM_Element
node11.SetName("Node11")
node11.AddContent("Here is a value")
node1.AddContent(node11)
node12 = CREATE PBDOM_ELEMENT
node12.SetName("Node12")
node12.AddContent("Here is another value")
node1.AddContent(node12)
doc.SaveDocument("myDoc.xml")
Here is the result when I open it with notepad++
<NodeRoot><Node1 Attr="AttrValue"><Node11>Here is a value</Node11><Node12>Here is another value</Node12></Node1></NodeRoot>
Whereas I wanted :
<NodeRoot> <Node1 Attr="AttrValue"> <Node11>Here is a value</Node11> <Node12>Here is another value</Node12> </Node1> </NodeRoot>
With the notepad++ XML tools plugin, I can use the "pretty print" function to get this nice representation. But I would like my file to be formatted this way from the beginning. I noticed that the "line ending" was set to UNIX format (indicator on bottom right of the window), but I'm working on Windows. When I use the menu to convert it to Windows format (CR+LF), it changes this indicator, but the code stays on one single line.
Is there a way to tell PBDOM to export the XML file with a nice output ?
Thank you !
Notes :
- Opening the XML file with Internet Explorer or Google Chrome gives me a nice vizualisation, with indentation, line breaks...
- Adding a <?xml version="1.0" encoding="ISO-8859-1" ?> does not help (I've been doing it while exporting some more complex files, but I still get the output on one line...)Here is a very simple powerbuilder example. It uses MSXML instead of PBDOM. See my comments for hints how to use it with PBDOM.
oleobject lole_dom, lole_root, lole_element1, lole_element11, lole_element12
oleobject lole_Writer, lole_saxreader
string ls_result
// build DOM (you don't need this if you use PBDOM)
lole_dom = create oleobject
lole_dom.ConnectToNewObject ("Msxml2.DOMDocument")
lole_root = lole_dom.CreateElement ("NodeRoot")
lole_dom.documentElement = lole_root
lole_element1 = lole_dom.CreateElement("Node1")
lole_root.AppendChild(lole_element1)
lole_element1.SetAttribute("Attr", "AttrValue")
lole_element11 = lole_dom.CreateElement("Node11")
lole_element11.AppendChild (lole_dom.CreateTextNode("Here is a value"))
lole_element1.AppendChild(lole_element11)
lole_element12 = lole_dom.CreateElement("Node12")
lole_element12.AppendChild (lole_dom.CreateTextNode("Here is another value"))
lole_element1.AppendChild(lole_element12)
// this saves the DOM without formatting
//lole_dom.save ("d:\testxml.xml")
// this part is for formating
lole_Writer = create oleobject
lole_saxreader = create oleobject
lole_Writer.ConnectToNewObject ("MSXML2.MXXMLWriter")
lole_saxreader.ConnectToNewObject ("MSXML2.SAXXMLReader")
lole_Writer.omitXMLDeclaration = True
lole_Writer.indent = True
lole_saxreader.contentHandler = lole_Writer
// instead of DOM you can also put a XML string to parser: lole_saxreader.parse ("<node>...</node>")
// so you can also use the PBDOM output directly
lole_saxreader.parse (lole_dom)
// here is your formatted output
ls_Result = lole_Writer.output
MessageBox ("", ls_result)
lole_writer.Disconnectobject( )
lole_saxreader.Disconnectobject( )
lole_dom.Disconnectobject( )
DESTROY lole_writer
DESTROY lole_saxreader
DESTROY lole_dom -
How can I add ?xml-stylesheet to an XML file?
Hi guys,
I have a java code that writes out an XML file. I want to specify the name of a stylesheet in the XML file. How can I do that?
This is the source code I have:
//---------- Create XML File ------------------
private void createXMLFile(Document doc) throws Exception
try
TransformerFactory tF = TransformerFactory.newInstance();
Transformer tr = tF.newTransformer();
FileOutputStream outXml = new FileOutputStream(xmlFile, false);
tr.transform(new DOMSource(doc), new StreamResult(outXml));
outXml.close();
catch (java.io.FileNotFoundException exc)
throw new Exception(exc.getMessage());
catch( TransformerConfigurationException exc )
throw new Exception(exc.getMessage());
catch( TransformerException exc )
throw new Exception(exc.getMessage());
Thank you
MuratThe solution from dvohra09 will output a file outXml that uses the format rules from stylesheet.
But how can I write out the following 2 lines to outXml? contextHandler.startDocument() will only write out the first line, but not the second line...
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="mytest.xsl"?>
Thanks for all pointers!
Philip -
hi,
I am getting the following error while exporting to xml
please can neone help
thanks in advance
ORA-06502: PL/SQL: numeric or value error: character to number conversion errorThere is an error because a character is trying to be converted to a number?
Check your inserts and data types are correct. -
Need help for Export to XML Functionality
Hi All ,
I have developed a report in Apex2.2 to export the data into XML format .
I have used "export to XML" functionality and "HTF.escape_sc" function to escape special characters.The query is as follows..
select
HTF.escape_sc(replace (e.EVENT_NAME,'''','&'||'apos;')) AS EVENT_NAME ,
HTF.escape_sc(replace (e.VENUE_NAME,'''','&'||'apos;')) AS VENUE_NAME ,
HTF.escape_sc(replace (e.VENUE_ADDR,'''','&'||'apos;')) AS VENUE_ADDR ,
HTF.escape_sc(replace (e.DESCRIPTION,'''','&'||'apos;')) AS DESCRIPTION ,
HTF.escape_sc(replace (e.TRACKING_URL,'''','&'||'apos;')) AS TRACKING_URL ,
HTF.escape_sc(replace (d.primary_product,'''','&'||'apos;')) AS primary_product
from events e ,d_01 d
where
d.event_id = to_char(e.event_id)
and e.publish = 'external'
and e.searchable = 'Y'
The output result in XML in APEX2.2 is absolutely fine , but when i moved the application to apex.oracle.com the XML report instead of '&' it is displaying "%26amp" .
Is there any problem with APEX3.3 .
Appreciate your quick response.
Thanks
JyotiJyoti,
Replacing special characters from where? Report? Replacing by what?
The code for the package is open. You may use the part in the package body:
FOR i IN 1 .. CEIL (v_xml_l / 4000)
LOOP
v_xml_cut := SUBSTR (v_xml, v_count, 4000);
HTP.prn (v_xml_cut);
v_count := v_count + 4000;
END LOOP;
...and do something like
HTP.prn (REPLACE(v_xml_cut, '&', '&lt;'));
...Denes Kubicek -
Hi all!
I'm a Newbie in BC4J, but I have to create an apllication with this technology.
My problem is, that one table should be exported to XML. I know that the standard Apllication, created by a wizard got this feature, but I didn't found the sourcecode.
Is there anybody, who knows how to implement an XML-Export?
Thanx
Peter ZerwesGet the ViewObject reference that you want to export, e.g, in an AM say there's Dept/Emp VOs setup as masterdetail,
you may then get the DeptVO and call one of the writeXML() apis on it.
See javadoc for oracle.jbo.ViewObject and oracle.jbo.XMLInterface.writeXML(). -
HowTo Set the xml-stylesheet processing instruction node?
Hi,
Can anyone tell me via PLSQL XMLDOM object what method or attribute to set or howto specify the xml-stylesheet value at the time of generation of the xml document?
eg
<?xml version = '1.0'?>
<?xml-stylesheet type="text/xsl" href="reporthtml.xsl"?>
<Report>
<Title>ABC Report</Title>
</Report>
Currently my XML just comes out as
<?xml version = '1.0'?>
<Report>
<Title>ABC Report</Title>
</Report>
and I want to add the stylesheet reference....
<?xml-stylesheet type="text/xsl" href="reporthtml.xsl"?>
Any help is appreciated...A COTS product builds the XML and inserts the respective xsl (xml:stylesheet) file name to be used for transforming the xml. I am trying to interrupt this xml and make some updations on an element and finally send the updated xml to the stream.
For the above process, I parse the input XML using DOMParser and update the elements (some internal elements). While I view the final XML that would be passed to the stream, I found the <?xml-stylesheet... PI is missing.
I somehow managed using a temp fix by doing the below. I manually pulled the PI using document.getFirstChild().getNodeValue() and reconstructed the PI and inserted it to the outgoing XML. This needs to be done every time. This might run into problems when more than one PI is used in the XML.
If the parsed XML could get the PI along with it the above problem could be resolved.
Is there any property that could be set on the parser (prior to parsing) to resolve the issue?. -
Automatically Exporting to XML when open a file
Hello,
I'm trying to set up my new machine to export the XML of a file when I open it by dragging the files onto the Ps icon (Mac). It used to automoatically happen on my old work machine, and it's super helpful. I'm pulling my hair out trying to find the setting for something like this. Does anyone know what I'm talking about? Thanks in advance.Thanks!
Sorry, I'm sort of a dummy with this stuff and have never used bridge. how do I do that?
I'm specifically opening .png files and using the xml code to get the coordinates of the images for placement after I trim them. -
Export large xml file in PL/SQL
How to export large or big xml (XMLTYPE) into file system.
I have tried with...
1. UTL_FILE.PUT -- it has a limitation of 32767 chars
2. DBMS_XSLPROCESSOR.CLOB2FILE supports little more than UTL_FILE but not in MB's
i'm looking for options to export a xml file which is more than 5mb
any suggestions?user12020576 wrote:
I have tried with...
1. UTL_FILE.PUT -- it has a limitation of 32767 chars
It might have but this is not a problem, if you programmatically break it up in pieces.
Have a look at https://forums.oracle.com/message/9748097#9748097
The method demonstrates how to dump/write a CSV in binary format to disk.
I used it to dump/write files way bigger than 10++ MB in size... -
Framemaker 9.0p196 crashes while exporting to xml
Hello,
This occurs both with XP Pro SP3 and Win7 iSP 1 . On a XP Pro SP3 without domain connection the crash does not occur. According to the event log caused ntdll.dll the crash.
Addendum: The XML is created correctly. this happens to all book projects, new and old. Does anyone have an idea?You could try checking your version of ntdll.dll (a Windows protected system file) for corruption using the "sfc /scannow" command. This replaces corrupted protected system files with the correct MS ones. Also, you could then check if there are any issues with the DirectX graphics (the drivers could be affecting the FM behaviourr) on your system using the DXDIAG utility.
However, as it seems to happen on two systems, the corruption doesn't seem that likely of a culprit. Are you using FM with the structure or unstructured interface, i.e. is your workflow creating the XML using the Save As XML from unstrucured files or are you exporting the XML from a structured application? -
Export to XML is grayed out.
Hello. I am trying to export an XML from FCPX for an editor to use in Avid. My problem is that I highlight all the clips in the timeline and then I go to the top menu and try choose File / Export XML and Export XML is grayed out, so I may not choose it.
Is there any reason why this feature may be grayed out. I am using the trial version of FCPX but nowhere does it say there are any limitations.
Thank you very much for your time.
_Deyson OrizThank Tom, I was hoping for 1 step procedure. I hope an app comes out soon to make it easier.
Have an awesome day! -
Why can't merged clips be exported to XML?
I merged my files from a double system shoot (with a Red camera and separate audio) - only to find that you can't then color correct outside of Premiere. I will grant I should have read the bottom of the merged file page which clearly states that you can't export an XML file with merged files but WHY?????????????? How do merged files benefit you if in the end you can't export to DaVinci for color correction? And from what I have found there are no work arounds. I tried to replace with original source video but the timecode of the merged file no longer matches that of the original source audio so I can't without resyncing and re-editing the whole thing - and our sound mixer has already done a significant amount of work on an OMF of the current project. And of course once I import that OMF and sync it to the video - I can't change the video because then I could have significant issues with the audio. I currently work in CS5.5 and would happily pay for an upgrade to Cloud if it solved this problem but from everything I have read it does not... it seems like a huge issue. I would rather not have the merged files function than have it lead me astray in this fashion.
If anyone has found a solution let me know. Otherwise I was going to have the original source files color corrected by our colorist and link those to the project (luckily there aren't really internal clip issues and it's a short so it's only 28 clips total)?
Any solutions greatly appreciated
===============================
Title changed by moderator to make it descriptive of the issue/question--but mostly eliminate the all-caps. Shouting doesn't helpAh yes -- well very holistic approach I suppose... but considering my question "how to export a project with merged clips to an XML file?" - this doesn't actually answer that question. It is a work around. But one that requires me to find and hire another colorist (and let's be honest a large portion of the post-production community works with Resolve) and I don't think I am being unreasonable for expecting Adobe to have considered the possibility of this work flow (editing a project in Premiere and then moving to a commonly used platform such as Davinci Resolve to color correct). Or yes I could learn SpeedGrade but if I had the time to color correct the project myself we wouldn't be hiring someone else to get the project completed in a timely manner... so yeah it's a work around that doesn't really work. I am hoping having the original source video color corrected will make it all work - and I will NEVER used the Merged Clip feature in Premiere ever again. And wish there was some way for me to warn others against falling victim to its charms as well.
Maybe you are looking for
-
How do I change my iCloud account info so my husband and I can link calendars?
How do I get my iTouch to link calendars with my husband's iPhone? My iCloud account info automatically lists my Apple ID, but his phone lists his Apple ID from work. Do they need to be the same, and if so, how do we do that when the field is greye
-
Migrating planning Application EPMA to classic
Hi Everyone, I've already googled this question, but did not find any important information. So, can anyone help me on that ? I've been requested to convert a Hyperion Planning app from EPMA structure to a Planning Classic. I've alr
-
Help with changing my apple ID?!
How do I put apps that are downloaded on one account and put it on the other so they update through the new one?
-
Wifi bars, but no Internet connection.
After two weeks of using the new Ipod Touch 4g, the wifi suddenly stopped connecting to the internet. All other computers and my xbox has working internet except my Ipod Touch. It says that the Ipod is connected to my network and shows bars, but when
-
I have been using lightroom for my website f64architecture.com for the past 2 years & have been very happy with it. However I now want to split my site into 2 areas, 1) My business images & 2) my fine art/personal images. When visitors open my s