OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xml-dev] xsl and xml and javascript. argh!!!!!!!

here's the problem im having:

im trying to use and xsl document to transform data in an XML document into
HTML. Simple enough. However, im also using the XSL document (with
Javascript) to format the HTMl page i.e. Text size, color ect, by taking
values from another XMl document. a sort of xml coniguration file. The code
for the three files is below:

<?xml version="1.0" ?>

<?xml version="1.0"?>
<xsl:Stylesheet version = "1.0"
<xsl:output method="html"/>

<xsl:template mach="/">
	<title> Fromatted data through xsl, 2 xml documents and Javascript
	<body onload = "init()" id="body">

	<SCRIPT LANGUAGE="javascript">
			function init() 
				testXML.async = false;

			function formatUI(testXML)
				i = 0;
				itemElement =
				document.bgColor =
				document.fgColor =
	<xsl:apply-templates select="//Person"/>


	<XML ID="testXML">


<xsl:template match ="Person">
	<H1> <xsl:value-of select = "Name"/> </H1>
	<b>  <xsl:value-of select = "Job" /> </b>
	<p> <xsl:value-of select = "Details"/> </p>


<?xml version="1.0" standalone = "yes"?>
<?xml-stylesheet type="text/xsl" href="UIConfigStyle.xsl" ?>
		<Name> Kenny Birney </Name>
		<Job> Programmer </Job>
		<Details> This data has been transformed into HTML through
xsl and formatted through JavaScript and xml </Details>

Thanks for your help

Kenny Birney.