Thread XML / Perl (8 answers)
Opened by Gast at 2004-04-15 17:32

Steffi
 2004-04-20 13:56
#81599 #81599
User since
2004-04-20
3 Artikel
BenutzerIn
[default_avatar]
Also ich habe eine XML-Datei, aus der die Titelseite, das Inhaltsverzeichnis, das Index usw in den Output PDF Datei rauskommen soll + ich habe mehrere XML-Blockdateien, die den Inhalt der Output  PDF Datei bestimmen. DIe sehen so aus:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by bakerman (test) -->
<?xmlspysps K:\SimProject\Simulink.sps?>
<?xmlspyxslfo genfo.xsl?>
<SimulinkBlock xmlns="http://www.xmlspy.com/schemas/orgchart" xmlns:ipo="http://www.altova.com/IPO"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.xmlspy.com/schemas/orgchart
simulink.xsd">
<Name>Direct Look-Up Table (n-D)</Name>
<Purpose>Index into an N-dimensional table to retrieve a scalar, vector or 2-D matrix.</Purpose>
<Library>Functions &amp; Tables</Library>
<Desc>
<image>DirectLookupTable.bmp</image>
<para>The Direct Look-Up Table (n-D) block uses its block inputs as zero-based indices into an n-D table. The number of inputs varies with the shape of the output desired. The output can be a scalar, a vector, or a 2-D matrix. The look-up table uses zero-based indexing, so integer data types can fully address their range. For example, a table dimension using the uint8 data type can address all 256 elements.</para>
<para>You define a set of output values as the <bold>Table data </bold>parameter. You specify what the output shape is: a scalar, a vector or a 2-D matrix. The first input specifies the zero-based index to the first dimension higher than the number of dimensions in the output, the second input specifies the index to the next table dimension, and so on, as shown by this figure:</para>
</Desc>
<DataTypeSupport>
<para>The Direct Look-Up Table (n-D) block accepts mixed-type signals of type double, single, int8, uint8, int16, uint16, int32 and, uint32. The output type can differ from the input type and can be any of the types listed for input; the output type is inherited from the data type of the Table data
parameter. In the case that the table <bold>comes </bold>into the block on an input port, the output port type is inherited from the table input port. Inputs for indexing must be real; table data can be complex.</para>
</DataTypeSupport>
<BDB>Text<image>String</image><Parameter>
<Name>Number of table dimensions</Name>
<para>The number of dimensions that the Table data parameter must have. This
determines the number of independent variables for the table and hence the
number of inputs to the block The number of dimensions that the Table data
parameter must have. This determines the number of independent variables
for the table and hence the number of inputs to the block (see descriptions for
&“Explicit Number of dimensions&” and &“Use one (vector) input port instead of N
ports,&” below).</para>
</Parameter><Parameter>
<Name>String</Name>
<para>Text<bold>Text</bold><bold>Text</bold><bold>Text</bold><bold>Text</bold><bold>Text</bold></para>
</Parameter></BDB>
<Characteristics>Text<SampleTime>Continuous or discrete</SampleTime></Characteristics>
</SimulinkBlock>


Also ich miss diese XML-Blockdateien alphabetisch sortiert in der XML-Datei (mit Titelseite, Inhaltverzeichnis usw) einfügen, damit ich in Endeffekt nur eine XML-File habe, aus der dann eine PDF mit Titelseite, Inhaltverzeichnis, Inhalte usw. entstehen kann.
Ich hab begonnen mir die Module XML::Parser, XML:: Writer. XML::Tree Builder usw anzuschauen, aber eine Hilfe wäre trotzdem supernett, da ich ganz neu in Perl bin.
Danke im voraus!

Gruss: Steffi\n\n

<!--EDIT|renee|1082455359-->

View full thread XML / Perl