473,385 Members | 1,392 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,385 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 1663


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
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.