Lineseparator in XML file to split long XSL to parts

X

xnluser

I would like to but XSL clauses to XML file and retrieve XSL clauses
with keys.
How can I separate XSL clause into different XSL rows? I mean something
like below.

This in XML

<add key="Key1" value="<xsl:value-of select="/VARIABLE/>"
<xsl:choose>
<xsl:when test="ORDER_NUMBER == ''>

<value>Y</value>
</xsl:when>
<xsl:eek:therwise>
<value>N</value>
</xsl:eek:therwise> <!-- what to put here???
-->
</xsl:choose> "/>

Cheers
 
D

Dimitre Novatchev

Why would someone need to re-invent xsl:include???


Cheers,
Dimitre Novatchev
 
X

xnluser

I'm not re-invent xsl.
The question is:
How to put long XSL-command to XML to DIFFRENT rows?

In C you can write something like

#define something = "döaslkdasö" \
"djalkjddlasdj" \
"asdölasköla" \

NOT writing a long clause like:
#define something = "döaslkdasö djalkjddlasdj asdölasköla"

So, how to do that it XML file containing LONG XSL-clauses?

Anyone know this?


Dimitre Novatchev kirjoitti:
 
M

Martin Honnen

The question is:
How to put long XSL-command to XML to DIFFRENT rows?

Neiter the XML specification nor the XSLT specification defines any rows.

So, how to do that it XML file containing LONG XSL-clauses?

Well whether you format your XSLT elements as e.g.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
or put everything on one line is up to you, attributes of an element do
not all to be defined on the same line as the start tag of the element is.

But your original post tried to put XSLT instructions into an attribute
value of another XML documents, that's why Dimitre had the impression
your are trying to implement your own mechanism of what xsl:include offers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,255
Members
46,852
Latest member
CarlaDowle

Latest Threads

Top