473,322 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Lineseparator in XML file to split long XSL to parts

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:otherwise>
<value>N</value>
</xsl:otherwise> <!-- what to put here???
-->
</xsl:choose> "/>

Cheers

Feb 2 '06 #1
4 1661


xn*****@yahoo.se wrote:

<add key="Key1" value="<xsl:value-of select="/VARIABLE/>"

^^^^
You would need to escape '<' as &lt;

--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 2 '06 #2
Why would someone need to re-invent xsl:include???
Cheers,
Dimitre Novatchev
<xn*****@yahoo.se> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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:otherwise>
<value>N</value>
</xsl:otherwise> <!-- what to put here???
-->
</xsl:choose> "/>

Cheers

Feb 2 '06 #3
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:
Why would someone need to re-invent xsl:include???
Cheers,
Dimitre Novatchev
<xn*****@yahoo.se> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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:otherwise>
<value>N</value>
</xsl:otherwise> <!-- what to put here???
-->
</xsl:choose> "/>

Cheers


Feb 2 '06 #4


xn*****@yahoo.se wrote:

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.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Xah Lee | last post by:
Split File Fullpath Into Parts Xah Lee, 20051016 Often, we are given a file fullpath and we need to split it into the directory name and file name. The file name is often split into a core...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
0
by: xnluser | last post by:
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...
6
by: Jchick | last post by:
Can anyone give me a clue to build a VB.NET program to take a file name that looks like this: $_1234_99999999_7777777777_00000000_$_A.tif And make it into a CSV file to look like this: ...
7
by: Jchick | last post by:
Firstly, I am a noobie with some exposure to VB.net Secondly, I am tasked with trying to do the following: I have a CSV file that I'd like to have a vb.net program make a change to: Here is...
2
by: lastbuilders | last post by:
Hi, I am trying to split an address into serveral parts in an xsl stylesheet and was hopeing to get some pointers. The addresss are similiar to "testaddress, Templeogue, Dublin 16, Ireland...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
2
by: Shriphani | last post by:
Hello all, I am trying to create a script that looks at specific strings in a file like: msgid "I am a disco dancer." and compares the part in quotes to the keys in a dictionary, finds the...
6
by: Brian Roisentul | last post by:
Hi everyone, I've been investigating for a while about this, but with no luck yet. Does anybody know a way to do it? Many thanks, Brian
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.