« Home « Kết quả tìm kiếm

A Guide to XML Import_ QuarkXTensions Software


Tóm tắt Xem thử

- In the event of a conflict between agreements and these provisions the relevant agreements shall control..
- The Placeholders Palette 12.
- <title>Stars in the Sky</title>.
- Note that each part of the book’s description — the title, the author name, and the publisher name — is enclosed within a pair of bracketed <tags>.
- In effect, these tags say, “The information between these two points is of this type.”.
- A DTD is used as a guideline for creating a particular type of XML file..
- If an XML file follows the rules set by a DTD, it is said to be a valid XML file..
- Every element in an XML file has a path that specifies where it is in the structure of the XML document.
- For example, in the following fragment of XML, the path of the bold <author>.
- <author>..
- The DTD from a “booklist” XML file, displayed in the Placeholders palette..
- For example, if you dragged the <title>.
- A placeholder representing the <title>.
- corresponding to the <title>.
- To find out, click the Show Markers button in the Placeholders palette..
- By looking at the markers in the following screen shot, for example, you can determine that the path of the <title>.
- <title>:.
- Placeholders for the <title>, <author>, and <publisher>.
- First, you’ll insert hard returns after the <title>, <author>, and <publisher>.
- Formatted placeholders for the <title>, <author>, and <publisher>.
- element, neither the <publisher>.
- If you put the return after the <publisher>.
- Now that you’ve formatted your placeholders, putting an actual book name into the text box is as easy as clicking a button on the Placeholders palette and pointing to a well-formed XML file that contains matching <title>, <author>, and <publisher>.
- each element in the document is also required to have a corresponding end tag.
- You can think of placeholders as search parameters that tell XML Import to grab specific kinds of content from an XML file and put that content in a text box in a specific order..
- In the example you’ve dealt with so far, the set of placeholders tells XML Import to look for all occurrences of <title>, <author>, and <publisher>.
- The <book>.
- The example also tells XML Import the order in which to display the <title>,.
- <title>.
- Rearranged placeholders for the <author>.
- and <title>.
- element types, with the <publisher>.
- Markers are displayed in the picture above to emphasize the fact that you can rearrange placeholders only within the branch where they belong.
- For example, you can put the <author>.
- placeholder anywhere between the <book>.
- markers, but you can’t put it between the <booklist>.
- marker and the <book>.
- In the above example, you dragged the <book>.
- element type, which contains the <author>.
- If you had dragged the <author>.
- Let’s consider a marker based on a DTD that looks like this in the Placeholders palette:.
- A sample DTD, viewed in the Placeholders palette..
- Let’s say that when you create a placeholder for the <item>.
- The sets of “A” and “B” markers, joined in the middle by a vertical line, tell us that to match one of these placeholders, an element’s path must begin with either <root>.
- and <B>.
- would not match, because the path to the <A>.
- The Select XML or XMT File Containing DTD button displays the Select XML or XMT File Containing DTD dialog box, which lets you select an XML file or avenue.quark template file.
- Click the Show Markers button if you want to see the full tree structure of the placeholders in the active QuarkXPress document..
- The Select XML File button displays the Select XML File dialog box, which lets you select an XML file for use with the active QuarkXPress document’s placeholders..
- When you click the Toggle Placeholders/Content button , content from the first XML file in the folder is placed in the active QuarkXPress document, as indicated by any placeholders you have created..
- The Previous XML File button fills placeholders with content from the previous XML file in the selected folder..
- The Next XML File button fills placeholders with content from the next XML file in the selected folder..
- The Toggle Placeholders/Content button changes depending on whether placeholders or XML content are displayed in the active QuarkXPress document..
- If placeholders are displayed, the button fills them with the appropriate content from the selected XML file..
- The Convert Placeholders to Text button permanently replaces the placeholders in the active document with text from the XML file identified in the File Name field..
- The File Name field displays the name of the selected XML file.
- If no XML file is selected, this field is blank..
- The DTD Tree list displays the structure of the selected DTD.
- If an element in the DTD Tree list is bold, that means it can contain text and may be dragged to a text box or text path to be used as a placeholder..
- A placeholder is a token that can be replaced by matching content from an XML file.
- The Select XML or XMT File Containing DTD dialog box lets you specify an XML file or avenue.quark template that contains or references a DTD..
- 3 Select an XML file or avenue.quark template that uses or references the DTD you want.
- The structure of the DTD, with the root element indicated by the DOCTYPE statement, displays in the DTD Tree list.
- The DTD Tree list in the Placeholders palette displays a DTD and lets you create placeholders..
- 4 With the Content tool E , select a text box or text path in the active QuarkXPress document..
- This text box contains a placeholder for the <title>.
- With the Content tool E , select the placeholder and then format it using the commands in the Style menu (or their equivalent keyboard commands or buttons)..
- The <body>.
- DTD displayed in the Placeholders palette.
- If you create a placeholder from the <body>.
- These nested placeholder tags indicate that the <body>.
- element contains its own hard return, all the <paragraph>.
- elements in the <body>.
- To solve this sort of problem, you can insert a paragraph return before or after the <paragraph>.
- The hard return after the <paragraph>.
- A bullet and a space before the name of the <paragraph>.
- Text between the <body>.
- marker and the opening bracket of the <paragraph>.
- Once you’ve created your placeholders, XML Import makes it easy to replace them with content from an XML file.
- All the tasks in this section assume that you have already created a QuarkXPress document containing placeholders, and that you have at least one XML file that includes elements that match the placeholders..
- An XML file must be well formed to be used with the XML Import QuarkXTensions software.
- As long as at least one element name and path in the XML file matches at least one element type and path in the DTD, the XML file will work..
- To place content from one XML file into the active QuarkXPress document:.
- 2 Click the Select XML File button .
- The Select XML File dialog box displays..
- The Select XML File dialog box lets you select an XML file containing content that matches placeholders in the active QuarkXPress document..
- 3 Select the XML file you want to use and then click Open.
- The name of the XML file displays in the File Name field..
- Content from the XML file is substituted for the appropriate placeholders in the active QuarkXPress document.
- You may need to place the content of a series of XML documents into the active QuarkXPress document, one XML file at a time.
- To place the content of several XML files in the active QuarkXPress document:.
- The Select XML Folder dialog box lets you indicate a folder containing a series of XML documents with content that you want to place in the active QuarkXPress document..
- The name of the first XML file in the folder displays in the File Name field.
- If there is more than one XML file in the folder, the Next XML File button becomes available..
- The content of the indicated XML file is substituted for the placeholders in the active QuarkXPress document..
- 5 To see the contents of the next XML file in the folder, click the Next XML File button.
- 6 To see the contents of the previous XML file in the folder, click the Previous XML File button.
- To permanently replace placeholders with content in the active QuarkXPress document:.
- 3 Use the the Select XML File button or the Select XML Folder button to select the XML file containing the content you want to use.
- The text from the XML file becomes a permanent part of the active document

Xem thử không khả dụng, vui lòng xem tại trang nguồn
hoặc xem Tóm tắt