This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Styling xml values into xml namespace tags
- To: xsl-list at mulberrytech dot com
- Subject: Re: Styling xml values into xml namespace tags
- From: Miloslav Nic <nicmila at idoox dot com>
- Date: Wed, 08 Nov 2000 10:25:39 +0100
- References: <3A090BBA.E6B2306D@socialchange.net.au>
- Reply-To: xsl-list at mulberrytech dot com
http://zvon.org/xxl/XSLTreference/OutputExamples/example_6_22_frame.html
http://zvon.org/xxl/XSLTreference/OutputExamples/example_6_23_frame.html
Trem Stamp wrote:
>
> Hi,
>
> I'd like to know if, when styling an xml into another xml format, it is
> possible to use a value from the first to generate a node in the second
> in the format of a valid namespace (ie. defined at the top of the xml).
>
> For example if I want to use the type attribute as part of the namespace
> in the output xml (assuming it was referenced in the second xml as a
> valid namespace ie xmlns:Book="http://www.examples.eg">):
>
> If the first xml looked similar to.
>
> //
>
> <entry Id="111766" type="Book">
> <title>The Hobbit</title>
> <description>Fantasy</description>
> </entry>
>
> //
>
> Could it be output as:
>
> <label:Book>
> <name>The Hobbit</name>
> <description>Fantasy</description>
> </label:Book>
>
> I've had a look around but can't find an example of this type of thing.
>
> Thanks,
>
> Trem
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
******************************************
<firstName> Miloslav </firstName>
<surname> Nic </surname>
<mail> nicmila@idoox.com </mail>
<support> http://www.zvon.org </support>
<zvonMailingList>
http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list