473,239 Members | 1,482 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,239 software developers and data experts.

Nesting XSLT template and/or For-each to accomplish 3 levels


Hi All,

I used an article on XSLT and XML and creating a TOC written on the MSDN
CodeCorner.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm

However, it did'nt quite answer all my questions.
How would one create a 3 level TOC when each item level / node was
differently named (They used Template match and for-each, but the template
match worked as on a 3 level structure they usedf the same named xml tags to
work with the the recursive properties of template matching,

TIA

--
Neal Rogers
University of Cape Town
Mar 23 '06 #1
6 1773
As the URL you posted doesn't work in my machine, could you put in some code
to illustrate your problem?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...

Hi All,

I used an article on XSLT and XML and creating a TOC written on the MSDN
CodeCorner.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm

However, it did'nt quite answer all my questions.
How would one create a 3 level TOC when each item level / node was
differently named (They used Template match and for-each, but the template
match worked as on a 3 level structure they usedf the same named xml tags
to
work with the the recursive properties of template matching,

TIA

--
Neal Rogers
University of Cape Town

Mar 23 '06 #2
Hi

Have not got the code on me at the mo, on laptop back at home.
However, in the interim, I did find it on the MSDN Help
(ex VStudio.Net) Contents help
in
/WebDevelopment/HTML and Dynamic HTML/Columns/CodeCorner
called DXML: Taking a TOC from XML to DHTML
(where / depicts chapters or nodes in the help (contents) tree

Will however have code on the morrow (we're some 5 hours earlier than
Eastern Seaboard Time), ie end of day here.

thanks
Neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
As the URL you posted doesn't work in my machine, could you put in some code
to illustrate your problem?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...

Hi All,

I used an article on XSLT and XML and creating a TOC written on the MSDN
CodeCorner.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm

However, it did'nt quite answer all my questions.
How would one create a 3 level TOC when each item level / node was
differently named (They used Template match and for-each, but the template
match worked as on a 3 level structure they usedf the same named xml tags
to
work with the the recursive properties of template matching,

TIA

--
Neal Rogers
University of Cape Town


Mar 23 '06 #3
Morning

Heres the code snippet Current XML, XML iro my question and the XSLT
currently employed.

TIA
--
Neal Rogers
University of Cape Town
"Neal" wrote:
Hi

Have not got the code on me at the mo, on laptop back at home.
However, in the interim, I did find it on the MSDN Help
(ex VStudio.Net) Contents help
in
/WebDevelopment/HTML and Dynamic HTML/Columns/CodeCorner
called DXML: Taking a TOC from XML to DHTML
(where / depicts chapters or nodes in the help (contents) tree

Will however have code on the morrow (we're some 5 hours earlier than
Eastern Seaboard Time), ie end of day here.

thanks
Neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
As the URL you posted doesn't work in my machine, could you put in some code
to illustrate your problem?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...

Hi All,

I used an article on XSLT and XML and creating a TOC written on the MSDN
CodeCorner.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm

However, it did'nt quite answer all my questions.
How would one create a 3 level TOC when each item level / node was
differently named (They used Template match and for-each, but the template
match worked as on a 3 level structure they usedf the same named xml tags
to
work with the the recursive properties of template matching,

TIA

--
Neal Rogers
University of Cape Town


Mar 24 '06 #4
Morning

Heres the code,
XMl(current) and proposed/questioned and the XSLT which transforms it
currently.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
<?xml:stylesheet type="text/xsl" href="listN.xsl"?>
<CategoriesList TYPE="Web Dev References">

<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryID>1</CategoryID>

<Categories>
<CategoryDescr>OnRoad</CategoryDescr>
<CategoriesID>1</CategoriesID>
<SubCategories>
<SubCategoryId>1</SubCategoryId>
<SubCatDescr>2ndHand</SubCatDescr>
<URL>MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
<SubCatId>1</SubCatId>
</SubCategories>
<SubCategories>
<SubCategoryId>2</SubCategoryId>
<SubCatDescr>New</SubCatDescr>
<URL>MainAds.aspx?Vehicles?OnRoad?New</URL>
<SubCatId>1</SubCatId>
</SubCategories>
</Categories>

<Categories>
<CategoryDescr>OffRoad</CategoryDescr>
<CategoriesID>2</CategoriesID>
<SubCategories>
<SubCategoryId>1</SubCategoryId>
<SubCatDescr>2ndHand</SubCatDescr>
<URL>MainAds.aspx?Vehicles?OffRoad?2ndHand</URL>
<SubCatId>1</SubCatId>
</SubCategories>
<SubCategories>
<SubCategoryId>2</SubCategoryId>
<SubCatDescr>New</SubCatDescr>
<URL>MainAds.aspx?Vehicles?OffRoad?New</URL>
<SubCatId>1</SubCatId>
</SubCategories>
</Categories>

</Categories>
</CategoriesList>

However had this been instead, Categories, SubCategories and SUbSubCategories
where either SubCategories or SUBSUBCategories could have a URL to an aspx
page with their respective parameters
ie,

<CategoriesList TYPE="Web Dev References">

<Categories>
<CategoryDescr>Vehicles</CategoryDescr>
<CategoryID>1</CategoryID>

<SUBCategories>
<SUBCategoryDescr>OnRoad</SUBCategoryDescr>
<SUBCategoriesID>1</SUBCategoriesID>
<SUBSubCategories>
<SUBSubCategoryId>1</SUBSubCategoryId>
<SUBSubCatDescr>2ndHand</SUBSubCatDescr>
<URL> MainAds.aspx?Vehicles?OnRoad?2ndHand</URL>
<SUBSubCatId>1</SUBSubCatId>
</SUBSubCategories>
..........
.........
.........
</SUBCategories>

<SUBCategories>
<SUBCategoryDescr>OnRoad</SUBCategoryDescr>
<SUBCategoriesID>1</SUBCategoriesID>

<URL> MainAds.aspx?Books?Fiction</URL>
</SUBCategories>

listN.xsl

<HTML>
<HEAD>
<TITLE>List <xsl:value-of select="CategoriesList/@TYPE" /></TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript"
SRC="listN.js"></SCRIPT>
</HEAD>
<BODY>
<BUTTON ONCLICK="ShowAll('UL')">Show All</BUTTON>
<BUTTON ONCLICK="HideAll('UL')">Hide All</BUTTON>

<H1>List <xsl:value-of select="CategoriesList/@TYPE" /></H1>
<UL><xsl:apply-templates select="CategoriesList/Categories" /></UL>
<UL><xsl:apply-templates select="CategoriesList/Categories/SubCategories"
/></UL>

<!--- <P><BUTTON ONCLICK="window.alert(document.body.innerHTML);">V iew
HTML</BUTTON></P> -->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids"><xsl:value-of select="CategoryDescr" />
<UL>
<xsl:for-each select="SubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubCatDescr" />
</A>
</LI>
</xsl:for-each>
<xsl:if test="Categories"><xsl:apply-templates /></xsl:if>

</UL>
</LI>
</xsl:template>

<!---
<xsl:template match="SubSubCategories">
<UL>
<xsl:for-each select="SubSubCatDescr">
<LI><xsl:apply-templates /></LI>
</xsl:for-each>
</UL>
</xsl:template>
-->

</xsl:stylesheet>
TIA

--
Neal Rogers
University of Cape Town
"Neal" wrote:
Hi

Have not got the code on me at the mo, on laptop back at home.
However, in the interim, I did find it on the MSDN Help
(ex VStudio.Net) Contents help
in
/WebDevelopment/HTML and Dynamic HTML/Columns/CodeCorner
called DXML: Taking a TOC from XML to DHTML
(where / depicts chapters or nodes in the help (contents) tree

Will however have code on the morrow (we're some 5 hours earlier than
Eastern Seaboard Time), ie end of day here.

thanks
Neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
As the URL you posted doesn't work in my machine, could you put in some code
to illustrate your problem?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Neal" <Ne**@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...

Hi All,

I used an article on XSLT and XML and creating a TOC written on the MSDN
CodeCorner.
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm

However, it did'nt quite answer all my questions.
How would one create a 3 level TOC when each item level / node was
differently named (They used Template match and for-each, but the template
match worked as on a 3 level structure they usedf the same named xml tags
to
work with the the recursive properties of template matching,

TIA

--
Neal Rogers
University of Cape Town


Mar 24 '06 #5
Hi Neal,

I find it easy to think of XSL as an "XML Programming Language" of sorts.
That is, it has sequence, selection, and iteration, just as any prgramming
technology does. A Template is similar to a function, with the exception
that along with simply calling it, you can automate the calling of it, by
using <xsl:apply-templates /> without any arguments, in which the process of
the application of Templates begins at the current node and works downward
recursively from there. A Template name or Select condition is the
"signature" of the Template, and any node which matches the signature of the
Template will execute the Template for that node.

In this case, you have a top-level "Categories" node, which contains several
nodes with data about a given Category, and several "SubCategories" nodes,
in a similar structure to the "Categories" node.

If I understand you correctly, you want to extend this to include several
"SubSubCategories" nodes under each "SubCategories" node, to indicate a
further level of nesting.

So, let's analyze the first Template:

This Template is called at the top level by <xsl:apply-templates
select="CategoriesList/Categories" />

That indicates that all nodes under the "CategoriesList" node, with node
names matching "Categories" should be processed by the matching Template (or
"function," as it were).

<xsl:template match="Categories">
<LI CLASS="clsHasKids"><xsl:value-of select="CategoryDescr" />
<UL>
<xsl:for-each select="SubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubCatDescr" />
</A>
</LI>
</xsl:for-each>
<xsl:if test="Categories"><xsl:apply-templates /></xsl:if>

</UL>
</LI>
</xsl:template>

What this Template does with SubCategories nodes is handles with
<xsl:for-each select="SubCategories">

Each node within that node contains instructions for adding HTML List Items
to the page, for the various nodes under each "SubCategories" node.

At the end of the Template is this instruction: <xsl:if
test="Categories"><xsl:apply-templates /></xsl:if>

This allows Categories to be contained within other Categories. In other
words, it allows for an infinite recursion of Categories within Categories
within Categories, if desired. By testing each node under a given
"Categories" node, and calling "apply-templates" with no parameters, it will
apply any template that has a name of "Categories" to any node under a given
"Categories" node, which, of course, is the current Template. It is like a
recursive function.

Now, it is important to remember that this is a demonstration or example,
and not supposed to represent any real-life situation. After all, it hardly
makes sense for there to be a node called "SubCategories" when any Category
can, in essence, be a sub-category of any other Category. But it does
illustrate several XSL concepts, including several applications of
Templates, and recursion.

I'm a bit confused about this line, though:

<UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories"/>

It really does nothing, as all the SubCategories are processed under each
"Categories" node. By the time it reaches this line, the entire XML document
has been processed. It has the effect of adding

<UL></UL>

to the page.

Now, again, for the purpose of self-education, I suppose, you want to add
another level below the "SubCategories" level, with a different name
"SubSubCategories." This is where we talk about the various ways to skin an
XSL cat.

One can use loops or Templates in various situations. I suppose the real
question is, which is most efficient for the particular task? The example
uses both, Templates at the top level, and a loop at the bottom level, which
eliminates the need for another Template. I will follow the same example,
and change the inner loop in the Template to another Template call. The
other Template is much like the first, with a loop for "SUBSubCategories" as
this is now the bottom-most node in the tree:

<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>
List <xsl:value-of select="CategoriesList/@TYPE" />
</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
</HEAD>
<BODY>

<H1>
List <xsl:value-of select="CategoriesList/@TYPE" />
</H1>
<UL>
<xsl:apply-templates select="CategoriesList/Categories" />
</UL>
<UL>
<xsl:apply-templates select="CategoriesList/Categories/SubCategories"/>
</UL>

<!--- <P><BUTTON ONCLICK="window.alert(document.body.innerHTML);">V iew
HTML</BUTTON></P> -->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:apply-templates select="SubCategories"/>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>

<xsl:template match="SubCategories">
<UL>
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SUBSubCategories">
<UL>
<xsl:for-each select="SUBSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SUBSubCatDescr" />
</A>
</LI>
</xsl:for-each>
<xsl:if test="SubCategories">
<xsl:apply-templates />
</xsl:if>

</UL>
</xsl:if>
</LI>
</UL>
</xsl:template>

Let me know if you have any other questions.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

Hi

Have not got the code on me at the mo, on laptop back at home.
However, in the interim, I did find it on the MSDN Help
(ex VStudio.Net) Contents help
in
/WebDevelopment/HTML and Dynamic HTML/Columns/CodeCorner
called DXML: Taking a TOC from XML to DHTML
(where / depicts chapters or nodes in the help (contents) tree

Will however have code on the morrow (we're some 5 hours earlier than
Eastern Seaboard Time), ie end of day here.

thanks
Neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
> As the URL you posted doesn't work in my machine, could you put in some
> code
> to illustrate your problem?
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Show me your certification without works,
> and I'll show my certification
> *by* my works.
>
> "Neal" <Ne**@discussions.microsoft.com> wrote in message
> news:3F**********************************@microsof t.com...
> >
> > Hi All,
> >
> > I used an article on XSLT and XML and creating a TOC written on the
> > MSDN
> > CodeCorner.
> > ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm
> >
> > However, it did'nt quite answer all my questions.
> > How would one create a 3 level TOC when each item level / node was
> > differently named (They used Template match and for-each, but the
> > template
> > match worked as on a 3 level structure they usedf the same named xml
> > tags
> > to
> > work with the the recursive properties of template matching,
> >
> > TIA
> >
> > --
> > Neal Rogers
> > University of Cape Town
>
>
>

Mar 24 '06 #6
Awesome,
Appreciate the explanation.
Thanks
Neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:
Hi Neal,

I find it easy to think of XSL as an "XML Programming Language" of sorts.
That is, it has sequence, selection, and iteration, just as any prgramming
technology does. A Template is similar to a function, with the exception
that along with simply calling it, you can automate the calling of it, by
using <xsl:apply-templates /> without any arguments, in which the process of
the application of Templates begins at the current node and works downward
recursively from there. A Template name or Select condition is the
"signature" of the Template, and any node which matches the signature of the
Template will execute the Template for that node.

In this case, you have a top-level "Categories" node, which contains several
nodes with data about a given Category, and several "SubCategories" nodes,
in a similar structure to the "Categories" node.

If I understand you correctly, you want to extend this to include several
"SubSubCategories" nodes under each "SubCategories" node, to indicate a
further level of nesting.

So, let's analyze the first Template:

This Template is called at the top level by <xsl:apply-templates
select="CategoriesList/Categories" />

That indicates that all nodes under the "CategoriesList" node, with node
names matching "Categories" should be processed by the matching Template (or
"function," as it were).

<xsl:template match="Categories">
<LI CLASS="clsHasKids"><xsl:value-of select="CategoryDescr" />
<UL>
<xsl:for-each select="SubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SubCatDescr" />
</A>
</LI>
</xsl:for-each>
<xsl:if test="Categories"><xsl:apply-templates /></xsl:if>

</UL>
</LI>
</xsl:template>

What this Template does with SubCategories nodes is handles with
<xsl:for-each select="SubCategories">

Each node within that node contains instructions for adding HTML List Items
to the page, for the various nodes under each "SubCategories" node.

At the end of the Template is this instruction: <xsl:if
test="Categories"><xsl:apply-templates /></xsl:if>

This allows Categories to be contained within other Categories. In other
words, it allows for an infinite recursion of Categories within Categories
within Categories, if desired. By testing each node under a given
"Categories" node, and calling "apply-templates" with no parameters, it will
apply any template that has a name of "Categories" to any node under a given
"Categories" node, which, of course, is the current Template. It is like a
recursive function.

Now, it is important to remember that this is a demonstration or example,
and not supposed to represent any real-life situation. After all, it hardly
makes sense for there to be a node called "SubCategories" when any Category
can, in essence, be a sub-category of any other Category. But it does
illustrate several XSL concepts, including several applications of
Templates, and recursion.

I'm a bit confused about this line, though:

<UL><xsl:apply-templates
select="CategoriesList/Categories/SubCategories"/>

It really does nothing, as all the SubCategories are processed under each
"Categories" node. By the time it reaches this line, the entire XML document
has been processed. It has the effect of adding

<UL></UL>

to the page.

Now, again, for the purpose of self-education, I suppose, you want to add
another level below the "SubCategories" level, with a different name
"SubSubCategories." This is where we talk about the various ways to skin an
XSL cat.

One can use loops or Templates in various situations. I suppose the real
question is, which is most efficient for the particular task? The example
uses both, Templates at the top level, and a loop at the bottom level, which
eliminates the need for another Template. I will follow the same example,
and change the inner loop in the Template to another Template call. The
other Template is much like the first, with a loop for "SUBSubCategories" as
this is now the bottom-most node in the tree:

<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>
List <xsl:value-of select="CategoriesList/@TYPE" />
</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="list.css" />
</HEAD>
<BODY>

<H1>
List <xsl:value-of select="CategoriesList/@TYPE" />
</H1>
<UL>
<xsl:apply-templates select="CategoriesList/Categories" />
</UL>
<UL>
<xsl:apply-templates select="CategoriesList/Categories/SubCategories"/>
</UL>

<!--- <P><BUTTON ONCLICK="window.alert(document.body.innerHTML);">V iew
HTML</BUTTON></P> -->
</BODY>
</HTML>
</xsl:template>

<xsl:template match="Categories">
<LI CLASS="clsHasKids">
<xsl:value-of select="CategoryDescr" />
<xsl:apply-templates select="SubCategories"/>
</LI>
<xsl:if test="Categories">
<xsl:apply-templates />
</xsl:if>
</xsl:template>

<xsl:template match="SubCategories">
<UL>
<LI CLASS="clsHasKids">
<xsl:value-of select="SubCatDescr" />
<xsl:if test="SUBSubCategories">
<UL>
<xsl:for-each select="SUBSubCategories">
<LI>
<A TARGET="main">
<xsl:attribute name="HREF">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="SUBSubCatDescr" />
</A>
</LI>
</xsl:for-each>
<xsl:if test="SubCategories">
<xsl:apply-templates />
</xsl:if>

</UL>
</xsl:if>
</LI>
</UL>
</xsl:template>

Let me know if you have any other questions.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

Hi

Have not got the code on me at the mo, on laptop back at home.
However, in the interim, I did find it on the MSDN Help
(ex VStudio.Net) Contents help
in
/WebDevelopment/HTML and Dynamic HTML/Columns/CodeCorner
called DXML: Taking a TOC from XML to DHTML
(where / depicts chapters or nodes in the help (contents) tree

Will however have code on the morrow (we're some 5 hours earlier than
Eastern Seaboard Time), ie end of day here.

thanks
Neal
--
Neal Rogers
University of Cape Town
"Kevin Spencer" wrote:

> As the URL you posted doesn't work in my machine, could you put in some
> code
> to illustrate your problem?
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Show me your certification without works,
> and I'll show my certification
> *by* my works.
>
> "Neal" <Ne**@discussions.microsoft.com> wrote in message
> news:3F**********************************@microsof t.com...
> >
> > Hi All,
> >
> > I used an article on XSLT and XML and creating a TOC written on the
> > MSDN
> > CodeCorner.
> > ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm
> >
> > However, it did'nt quite answer all my questions.
> > How would one create a 3 level TOC when each item level / node was
> > differently named (They used Template match and for-each, but the
> > template
> > match worked as on a 3 level structure they usedf the same named xml
> > tags
> > to
> > work with the the recursive properties of template matching,
> >
> > TIA
> >
> > --
> > Neal Rogers
> > University of Cape Town
>
>
>


Mar 27 '06 #7

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

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
1
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
8
by: Maciej Wegorkiewicz | last post by:
Hi, I have small experience in XSLT processing and I have a problem which I cannot solve. Can you look at it? I have an input file containing info about bank accounts like this: (...) <acc...
12
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation...
4
by: Moogy | last post by:
I'm pulling my hair out here. First, I'm new to XML, so that doesn't help, but none of this makes any sense to me. All I'm trying to do is take a simple source XML file and translate it with an...
3
by: Philipp Schumann | last post by:
Hi, I have several nested layers of <node> element that are processed by an XSLT template. Is there any possibility to determine the depth of a node in the overall nesting hierarchy? For...
3
by: Ian Roddis | last post by:
Hello, I want to embed SQL type queries within an XML data record. The XML looks something like this: <DISPLAYPAGE> <FIELD NAME="SERVER" TYPE="DROPDOWN"> <OPTION>1<OPTION> <OPTION>2<OPTION>...
4
by: kl.vanw | last post by:
I would like to count the nesting level in template classes. How can I make the following work? #include <assert.h> template <class T> class A { public: A() { // what goes here?
3
by: Carles Company Soler | last post by:
Hello, I want to calculate the value of an attribute. For example <rect x="2+3" y="12"and be <rect x="5" y="12">. Is it possible using XSLT? Thanks!
8
by: Hercules Dev. | last post by:
Hi all, I'm new in xslt and xpath, so my question might be simple but i'm learning. I have an XML document and need to transform it into another XML, I use xslt and it works, but there is a...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.