> Hi all,
>
> 1) I have created a huge XML "data base" consisting of people with
> <name>Charlie</name> <address>High street></address> etc.
>
> I wanna use this xml-data base for various HTM-pages for me to surf to;
one
> could be to list all red-haireds on one htm-page, or all people with
income
> > 10,000. In other words many HTM-pages based upon the same data base,
i.e.
> ONE file "people.xml".
>
> I can create various xslt-files to achieve these "output"-htm-screens.
>
> But only ONE can be seen, since I have to code the name of the xslt-file
> inside the xml-code
> <?xml-stylesheet type ="text/xsl" href="redhaireds.xsl"?>
>
> How do I solve this??
Don't use the "xml-stylesheet" processing instruction.
Instead, use script as part of the html page. This script will create the
two DOM objects and load them with the source xml document and with the
stylesheet. Then it will execute a method, which actually performs the
transformation.
How this is done is vendor - specific and you must read the documentation
provided by the vendor of the specific XSLT processor you're using. For
example in the case of MSXML4 this is described in the MSXML4 SDK
documentation.
>
> 2) Within the tags in my XML-file
> <description> bla bla bla</description> I want to have HTML-functions
> visible within the text, e.g- one specific word will be bold (How do I
write
> <B> within the text ??) or a line break (How do I write <BR> ?)
<someText>Normal and <b>bold</b>text and <br /> a second line of
text</someText>
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL