[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
How to parse an element with content and child-elements
Subject: How to parse an element with content and child-elements
From: "Kai Ritterbusch" <kai@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Mar 2000 16:21:05 +0100
|
Hi,
I want to parse XML-elements wich contain text AND
other elements (Example). the stylesheet should print the
value
of the element (Example: content), and if it passes
a child element it should format this with new rules. it is important that the
child element stays at his place in the text.
Im sure this is possible, but i have no idea how to
realize :(
My Example:
DTD:
<!ELEMENT content ( #PCDATA | other-content )
>
XML-File:
<xml-file>
<content>
blablabla bla bla bla
bla
<other-content>blub etc etc etc</other-content>
bla bla bla
</content>
</xml-file>
I want to format this XML code into
HTML:
<p>
blablabla bla bla bla bla
<br/>
<font
color="red">blub etc etc etc</font>
<br/>
bla bla bla
</p>
thanks for any help
Kai Ritterbusch
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|