> It should work. You have to be more specific
> (relevant parts of stylesheet and data and the
> error message would help) to figure out what's
> wrong.

> Petr

> Marc Logemann wrote:
>>
>> Hi,
>>
>> i have problems with the translate Xpath-expression. When i
>> use it on a tagname i get an error during process.
>>
>> Example: (Stylesheet)
>>
>> <xsl:value-of select="translate(tagname, 'A', 'a')">
>>
>> where tagname is a node in the current node set.
>>

I will provide some error message soon, i must activate error_logging
in my php script.

The reason for my question is, (i hope i can ask this).
When i have an xml where i have something like this:
<content>
this is the text

and this is the second paragraph
</context>

All i wanted to have is that during transformation i get real paragraphs in
html. So i wanted to replace all Newlines (\n) to html paragraphs (<p>).

I read hours about how to do this. Most examples i see, is that people
write xmls like
<content>
<para>
this is the text
</para>
<para>
and this is the second paragraph
</para>
</content>

but i dont know if this would be logically ok. I mean, i dont want to seperate some 
blocks of my
content in xml only because of the representation issues after on.

perhaps i am totally wrong with this oppinion, any ideas would be very appreciated, 
and sorry
if i bother you with a question that is not primarily concerned to sablotron.




Marc Logemann
Programmer/Analyst

Reply via email to