This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > April 2005 > Re: newbie question on xslt in mozilla.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: newbie question on xslt in mozilla.
Mats

2005-04-07, 7:22 am

<xsl:value-of select="name()" />

hmm.. this should be the right thread... ?

//M

"Anko Lamb" <mewphobia@iprimus.com.au> wrote in message
news:cf9pv4$9g21@ripley.netscape.com...
> Hi,
> First of all, does anyone else have troubles with xslt in firefox? I can't
> find an appropriate bug in bugzilla, but I can't seem to get it working at
> all.
>
> but on to my real problem;
>
> Basically I have a file like this;
> ---------------------------------
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="cowdata.xsl"?>
> <window>
> <Title>My Article</Title>
> <Authors>
> <Author>Mr. 1</Author>
> <Author>Mr. 2</Author> <Author>Mr. 3</Author>
> <Author>Mr. 4</Author> </Authors>
> <test1>
> <test2>hi man</test2>
> </test1>
> </window>
> ---------------------------------
> and I want to transform it to
> ---------------------------------
> <?xml version="1.0"?>
> <?xml-stylesheet href="cow.css" type="text/css"?>
>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Node Names List</title>
> </head>
> <body>
> <blockquote>window
> <blockquote>Title
>
> </blockquote>
> <blockquote>Authors
> <blockquote>Author</blockquote>
> <blockquote>Author</blockquote>
> <blockquote>Author</blockquote>
> <blockquote>Author</blockquote>
> </blockquote>
> <blockquote>test1
> <blockquote>test2</blockquote>
> </blockquote>
> </blockquote>
> </body>
> </html>
> ---------------------------------
> It should be pretty simple - I can list all the node text elements easily,
> but I can't find a way to move the nodeNames into the text.
> Any ideas or suggestions would be greatly appreciated!
> I'm using XSLT Processor VersionVendor: TransformiixVendor URL:
> http://www.mozilla.org/projects/xslt/
>
> Anko



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews