xsl-list
[Top] [All Lists]

[xsl] Search text and write the code

2007-09-05 22:44:41
Hi,

This is key mistake.

i need output is

<item><label><b>1.1</b></label> <para><b>Grundbegriffe</b><xref
pointer="p0002">2</xref></para></item>

Is it possible or not?

Thanks
Byomokesh


Date: Wed, 05 Sep 2007 11:47:36 -0400
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: cknell(_at_)onebox(_dot_)com
Subject: RE: [xsl] Search text and write the code
Message-ID: <B0006091396(_at_)securemail(_dot_)onebox(_dot_)com>

The output you are asking for is not legal XML (see below), so I am
not clear on what to advise.

XML requires that all elements be properly nested. The output you
have specified:

<item>
<b>
  <label>1.1</label>
    <para>Grundbegriffe
</b>
<xref pointer="p0002">2</xref>
    </para>
</item>

has the <b> element overlapping the <para> element.

In XML, you can't have "<b><para></b></para>", and that's what you've
specified as your desired output.

--
Charles Knell
cknell(_at_)onebox(_dot_)com - email

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>