[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: Refinement: [xsl] creating namespaces in a generated script
Subject: Re: Refinement: [xsl] creating namespaces in a generated script From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 18 Sep 2002 11:50:45 +0100 |
] staroffice/content.xml (which does not include namespace declarations for ] ns1, ns2, ns): ] ] <text:p text:style-name="Standard"> ] <text:variable-set text:name="__Adressen_jeweilsInZeile" ] text:value-type="string"> ] /ns1:elem1/ns1:elem2/ns2:elem3/ns2:elem3</text:variable-set> ] </text:p> If the file does not have namespace declarations then it does not conform to the namespace spec and it can not be used as input to XSLT at all. XSLT only works on Namespace conforming documents. If you can not edit the file you can make a wrapper file that looks like <!DOCUMENT foo [ <!ENTITY content SYSTEM "content.xml"> ]> <foo xmlns:ns1="http//foo.bar.ns1" xmlns:ns2="http//foo.bar.ns2" > &content; </foo> Then use this file as input to your XSLT transform. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Refinement: [xsl] creating namespac, Fries, Markus, fiscu | Thread | RE: Refinement: [xsl] creating name, Jarno . Elovirta |
RE: Refinement: [xsl] creating name, Jarno . Elovirta | Date | AW: Refinement: [xsl] creating name, Fries, Markus, fiscu |
Month |
Keywords