From owner-freebsd-doc Tue Apr 23 12:46:33 2002 Delivered-To: freebsd-doc@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 4CEC437B404; Tue, 23 Apr 2002 12:46:24 -0700 (PDT) Received: from ark.cris.net (root@ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id WAA64148; Tue, 23 Apr 2002 22:46:18 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id g3NJkIw00552; Tue, 23 Apr 2002 22:46:18 +0300 (EEST) Date: Tue, 23 Apr 2002 22:46:18 +0300 From: Alexey Zelkin To: Nik Clayton Cc: Murray Stokely , doc@freebsd.org Subject: Re: html in xml Message-ID: <20020423224618.A99442@ark.cris.net> References: <20020420205539.A29136@ark.cris.net> <20020422091454.GF16322@freebsdmall.com> <20020423082441.R30474@canyon.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020423082441.R30474@canyon.nothing-going-on.org>; from nik@freebsd.org on Tue, Apr 23, 2002 at 08:24:41AM +0100 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, On Tue, Apr 23, 2002 at 08:24:41AM +0100, Nik Clayton wrote: > > > ... > > > this is a link > > > ... > > > > > > and xsltproc is converting it to simple text, f.e. > > > > What does the 'a' template look like in your XSLT stylesheet? If it > > is not defined, then the processor will just ignore this element (as > > it should). If you would like to do something with that content, then > > you'll need to write a XSLT template. What XSLT stylesheet are you > > using? This is a stylesheet question, and you shouldn't wrap this > > text in CDATA. > > You can just steal from > www/en/news/newsflash.xsl. > > Although, thinking about it, I suspect we should be using namespaces for > this -- this is what I get when I write prototypes while only > understanding a small portion of the spec. > > Then your XML would look something like this: > > > ... > > ... > > ... > > > > > where "http://.../" is the URI for the HTML spec. I have reviewed w3c's XSLT docs and available examples and decided that following construction better fit my requirements: It copies whole node content to result tree ASIS. BTW, another few questions: 1. is there any way to set variable with name defined at runtime ? Something like: 2. is there any way to change variable values ? XSLT specification says that's not possible, but what about xsltproc implementation ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message