xsl-list
[Top] [All Lists]

[xsl] REMOVE FROM MAILING LIST

2007-05-29 05:09:24
I've gone through the removal process and it does not work I get an email back 
stating that I am not a member of this list and yet it persists in sending me 
these emails.

Please remove my address from the list.


--------------------------------------------------------------------------------------------
Le présent courriel et toutes les pièces jointes peuvent contenir de 
l'information privée, exclusive, privilégiée ou confidentielle, sujette au 
droit d'auteur s'adressant uniquement au destinataire. Toute utilisation, copie 
ou distribution non autorisée du contenu de ce courriel est strictement 
interdite. Si vous n'êtes pas le destinataire de ce message et que vous l'avez 
reçu par erreur, veuillez le supprimer et en informer immédiatement 
l'expéditeur. 

This e-mail communication, including all attachments, may contain private, 
proprietary, privileged and/or confidential information and subject to 
copyright. It is intended only for the person to whom it is addressed. Any 
unauthorized use, copying or distribution of the contents of this e-mail is 
strictly prohibited. Please delete this e-mail and notify the sender 
immediately, if you are not the intended recipient, and have received it in 
error. 

-----Message d'origine-----
De : xsl-list-digest-help(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:xsl-list-digest-help(_at_)lists(_dot_)mulberrytech(_dot_)com] 
Envoyé : May 29, 2007 1:10 AM
À : xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Objet : xsl-list Digest 29 May 2007 05:10:00 -0000 Issue 1151

xsl-list Digest 29 May 2007 05:10:00 -0000 Issue 1151

Topics (messages 36920 through 36933):

call-template error
        36920 by: Vaduvoiu Tiberiu
        36923 by: Michael Kay
        36928 by: Dimitre Novatchev
        36929 by: M. David Peterson

Batch processing
        36921 by: J. S. Rawat
        36924 by: Michael Kay

Re: XSLT and XML in the same document
        36922 by: Julian Reschke
        36926 by: M. David Peterson
        36927 by: Julian Reschke
        36930 by: Andrew Welch
        36931 by: M. David Peterson
        36932 by: M. David Peterson
        36933 by: M. David Peterson

Re: Entities Conversion
        36925 by: Tony Graham

Administrivia:

To subscribe to the digest, e-mail:
        <xsl-list-digest-subscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>

To unsubscribe from the digest, e-mail:
        <xsl-list-digest-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>

To post to the list, e-mail:
        <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>


----------------------------------------------------------------------
Date: Mon, 28 May 2007 03:24:13 -0700 (PDT)
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Vaduvoiu Tiberiu <vaduvoiutibi(_at_)yahoo(_dot_)com>
Subject: call-template error
Message-ID: 
<442391(_dot_)9734(_dot_)qm(_at_)web51302(_dot_)mail(_dot_)re2(_dot_)yahoo(_dot_)com>

On my site I have a couple of categories/menus. Each time you're in a category 
it loads a different template(content)
I have a parameter $menu which has the value of the name of the menu you are at 
on the site. So until now I had something like this:

<xsl:if test="$menu= sport">
<xsl:call-template name="toolbox_sport"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= 'news">
<xsl:call-template name="toolbox_news"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= recent">
<xsl:call-template name="toolbox_recent"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= test">
<xsl:call-template name="toolbox_test"></xsl:call-template>
</xsl:if>

like this, it works. But then I though of making it more simple like this:

<xsl:call-template name="toolbox_$menu"></xsl:call-template> so basically it 
should only loads the template of the selected menu. Thing is it doesn't 
work..I get java.util.EmptyStackException:

I also tried creating a variable
<xsl:variable name="tool">toolbox_<xsl:value-of select="$menu"/></xsl:variable>
and then calling the template with the name="$tool"..also doesn't work. So why 
doesn't he load it?? 10x

       
____________________________________________________________________________________Take
 the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

------------------------------

Date: Mon, 28 May 2007 13:01:13 +0100
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
Subject: RE: [xsl] call-template error
Message-ID: <00ad01c7a11f$e37a4e10$6401a8c0(_at_)turtle>

The name of a template being called must be a fixed string, just as when you
call a function or method in languages like C or Java. Variables can only be
used in XPath expressions, and the name attribute of call-template is not an
XPath expression.

You can often achieve a dynamic call by using apply-templates to some
suitable node.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Vaduvoiu Tiberiu [mailto:vaduvoiutibi(_at_)yahoo(_dot_)com] 
Sent: 28 May 2007 11:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] call-template error

On my site I have a couple of categories/menus. Each time 
you're in a category it loads a different template(content) I 
have a parameter $menu which has the value of the name of the 
menu you are at on the site. So until now I had something like this:

<xsl:if test="$menu= sport">
<xsl:call-template name="toolbox_sport"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= 'news">
<xsl:call-template name="toolbox_news"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= recent">
<xsl:call-template name="toolbox_recent"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= test">
<xsl:call-template name="toolbox_test"></xsl:call-template>
</xsl:if>

like this, it works. But then I though of making it more 
simple like this:

<xsl:call-template name="toolbox_$menu"></xsl:call-template> 
so basically it should only loads the template of the 
selected menu. Thing is it doesn't work..I get 
java.util.EmptyStackException:

I also tried creating a variable
<xsl:variable name="tool">toolbox_<xsl:value-of 
select="$menu"/></xsl:variable> and then calling the template 
with the name="$tool"..also doesn't work. So why doesn't he 
load it?? 10x


       
______________________________________________________________
______________________Take the Internet to Go: Yahoo!Go puts 
the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


------------------------------

Date: Mon, 28 May 2007 08:17:48 -0700
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "Dimitre Novatchev" <dnovatchev(_at_)gmail(_dot_)com>
Subject: Re: [xsl] call-template error
Message-ID: 
<1563432b0705280817m554ca9a6hfae9d7bed2803ccf(_at_)mail(_dot_)gmail(_dot_)com>

In addition to the explanation of Dr. Kay, see:

       http://fxsl:sf.net

-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play

On 5/28/07, Vaduvoiu Tiberiu <vaduvoiutibi(_at_)yahoo(_dot_)com> wrote:
On my site I have a couple of categories/menus. Each time you're in a 
category it loads a different template(content)
I have a parameter $menu which has the value of the name of the menu you are 
at on the site. So until now I had something like this:

<xsl:if test="$menu= sport">
<xsl:call-template name="toolbox_sport"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= 'news">
<xsl:call-template name="toolbox_news"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= recent">
<xsl:call-template name="toolbox_recent"></xsl:call-template>
</xsl:if>
<xsl:if test="$menu= test">
<xsl:call-template name="toolbox_test"></xsl:call-template>
</xsl:if>

like this, it works. But then I though of making it more simple like this:

<xsl:call-template name="toolbox_$menu"></xsl:call-template> so basically it 
should only loads the template of the selected menu. Thing is it doesn't 
work..I get java.util.EmptyStackException:

I also tried creating a variable
<xsl:variable name="tool">toolbox_<xsl:value-of 
select="$menu"/></xsl:variable>
and then calling the template with the name="$tool"..also doesn't work. So 
why doesn't he load it?? 10x



____________________________________________________________________________________Take
 the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



------------------------------

Date: Mon, 28 May 2007 10:05:13 -0600
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "M. David Peterson" <m(_dot_)david(_at_)xmlhacker(_dot_)com>
Subject: Re: [xsl] call-template error
Message-ID: 
<op(_dot_)ts1oazfqgb2xtc(_at_)m-david-petersons-computer(_dot_)local>

On Mon, 28 May 2007 09:17:48 -0600, Dimitre Novatchev  
<dnovatchev(_at_)gmail(_dot_)com> wrote:

http://fxsl:sf.net

And if that doesn't work, try http://fxsl.sf.net/ ;-)

-- 
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |  
http://dev.aol.com/blog/3155

------------------------------

Date: Mon, 28 May 2007 16:08:08 +0530
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "J. S. Rawat" <jrawat(_at_)aptaracorp(_dot_)com>
Subject: Batch processing
Message-Id: 
<4(_dot_)3(_dot_)1(_dot_)20070528155300(_dot_)01a334a0(_at_)localhost>

Dear lists-
There are a list of files listed in XYZ.XML. Is there a way by which I can 
process these files by XSLT by saxon. Basically I want a batch processing. 
I want to put files into server alongwith XYZ.xml and need to pass one 
commandline to process all the XML. I am just confused with collection().

XYZ.XML
<dir>
<xmlFile>input.xml</xmlFile>
<xmlFile>input_meta.xml</xmlFile>
<xmlFile>sample.xml</xmlFile>
<xmlFile>x.xml</xmlFile>
</dir>

thanks
..JSR

------------------------------

Date: Mon, 28 May 2007 13:03:30 +0100
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
Subject: RE: [xsl] Batch processing
Message-ID: <00ae01c7a120$35952260$6401a8c0(_at_)turtle>

You don't need the collection() function for this, you can do it with
document(). With <dir> as your current node, do

<xsl:apply-templates select="document(xmlFile)" mode="m"/>

and it will cause each of these input documents to be processed.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: J. S. Rawat [mailto:jrawat(_at_)aptaracorp(_dot_)com] 
Sent: 28 May 2007 11:38
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Batch processing

Dear lists-
There are a list of files listed in XYZ.XML. Is there a way 
by which I can process these files by XSLT by saxon. 
Basically I want a batch processing. 
I want to put files into server alongwith XYZ.xml and need to 
pass one commandline to process all the XML. I am just 
confused with collection().

XYZ.XML
<dir>
<xmlFile>input.xml</xmlFile>
<xmlFile>input_meta.xml</xmlFile>
<xmlFile>sample.xml</xmlFile>
<xmlFile>x.xml</xmlFile>
</dir>

thanks
..JSR


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


------------------------------

Date: Mon, 28 May 2007 13:11:06 +0200
To:  xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Julian Reschke <julian(_dot_)reschke(_at_)gmx(_dot_)de>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: <465AB8CA(_dot_)9050106(_at_)gmx(_dot_)de>

David Carlisle wrote:
functionality via msxsl:node-set()[2].  Kind of a pain to work between the  
two of them inside of the same transformation file, but a simple check  

you can probably just use msxsl:script to define exslt:node set can't
you,and then just use the exslt version in the actual code.
I don't think I've tried that though (but I may have done, hard to
remember:-)

I just tried, and the first hurdle is that I can't define a function 
called "node-set" in JScript (it's not a legal identifier). But 
otherwise a cool idea :-)

Microsoft: please give us exslt:node-set in IE. Please.

Best regards, Julian

------------------------------

Date: Mon, 28 May 2007 08:45:25 -0600
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "M. David Peterson" <m(_dot_)david(_at_)xmlhacker(_dot_)com>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: 
<op(_dot_)ts1klzjugb2xtc(_at_)m-david-petersons-computer(_dot_)local>

On Mon, 28 May 2007 05:11:06 -0600, Julian Reschke 
<julian(_dot_)reschke(_at_)gmx(_dot_)de>  
wrote:

Microsoft: please give us exslt:node-set in IE. Please.

An interesting point in time to be asking MSFT for "favors."  via a  
comment from Mike Champion (formerly of MSFT XML Team, now a part of the  
WS-* team; He's the one that lobbied for and obtained support for XSLT  
2.0, so it's fair to assume that his advice on how to get MSFT's attention  
in this space is quite sound)

@http://www.oreillynet.com/xml/blog/2007/05/xml_silverlight_and.html#comment-590145

"I think Aaron is asking about what *subset* of the .NET XML features  
should be ported to the Silverlight environment :-)

But to get their attention for whatever subset or superset features you  
think is appropriate, it would be best to be more explicit about the types  
of applications you would build for the Silverlight platform and why some  
specific XML feature would be necessary to make it work well."

My own wish-list is in the body of the same linked post from above, and  
while full support for XSLT 2.0 inside of Silverlight would be *GREAT*, I  
don't think it's something we should get our hopes up too high about, as  
small and fast is of primary concern.  Instead, I believe that if the  
community were to put their heads together and come up with a reasoanable  
subset of EXSLT functions (potentially using the support provided by Fx  
3.0 as a foundation to begin working from?), we could probably get the  
right folks attention at MSFT to at very least consider providing support.

In the mean time, something to consider: The Mono project provides an  
implementation of System.Xml.Xsl licensed under the MIT license.  The MSFT  
XML MVP's have support for EXSLT inside of their BSD-licensed Mvp.Xml  
library.  Silverlight provides support for XmlReader and XmlWriter, and  
Silverlight itself is a full fledged CLR, or in other words, their is full  
support for CIL, which means their is full support for the C#, VB.NET, and  
any other CLR compliant language (F# is the latest entry I have seen in  
the "hey, look what Silverlight can do" language support-fest.)  And to  
put the cherry on top of all of this, Silverlight is supported on not just  
IE, but on Firefox (Windows, Mac) and (soon) Opera (Windows, Mac), with  
the Mono project folks developing support as part of their Moonlight  
project[1] which is suggested will be complete by the end of this year.

In short: An opportunity now exists to both get MSFT's attention and have  
a reasonable chance of gaining at least some level of support for EXSLT  
inside of Silverlight and as such have that same support provided  
cross-browser/cross-platform, as well as taking the bull by the horns and  
building that support by using existing code that already provides *FULL*  
support for XSLT 1.0/EXSLT, or in other words, developing support  
ourselves that could then be used inside of any Silverlight-based project  
would be pretty straight forward.  Gaining direct support would obviously  
be quite a bit better, but creating a community-based project would at  
very least ensure that support is available, while at the same time act as  
a good way to flesh out what portions of the EXSLT spec make sense inside  
of the browser space and which of those do not.

I've started a project on CodePlex called SilverLiteXSLT  
(http://www.codeplex.com/silverlitexslt < Haven't published it yet, so you  
probably won't see anything if you visit this link.) Please contact me  
off-list if you have interest in being a part of this.

NOTE: The Atomictalk project is specifically focused at providing the  
ability to build out cross-breed web applications, using pre-defined  
modules in XHTML, Silverlight, Flash, etc... so I will be using this is as  
the foundation for SilverLiteXSLT in regards to finding the most practical  
feature-set using a hands-on, pragramatic approach.  Will be OOF for the  
rest of the morning, but when I come back I plan to spend some time  
finishing out getting this project setup and the code from the various  
projects checked-in to begin the "mashup" process.  < This is going to be  
fun! :D  Anyone want to join me?  Let me know :)

[1] http://mono-project.com/Moonlight

-- 
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |  
http://dev.aol.com/blog/3155

------------------------------

Date: Mon, 28 May 2007 17:12:21 +0200
To:  xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Julian Reschke <julian(_dot_)reschke(_at_)gmx(_dot_)de>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: <465AF155(_dot_)8000400(_at_)gmx(_dot_)de>

M. David Peterson wrote:
On Mon, 28 May 2007 05:11:06 -0600, Julian Reschke 
<julian(_dot_)reschke(_at_)gmx(_dot_)de> wrote:

Microsoft: please give us exslt:node-set in IE. Please.

An interesting point in time to be asking MSFT for "favors."  via a 
comment from Mike Champion (formerly of MSFT XML Team, now a part of the 
WS-* team; He's the one that lobbied for and obtained support for XSLT 
2.0, so it's fair to assume that his advice on how to get MSFT's 
attention in this space is quite sound)

@http://www.oreillynet.com/xml/blog/2007/05/xml_silverlight_and.html#comment-590145
 
...

David, that's all very interesting, but what *I* am looking for is more 
power in client side XSLT -- in this case, this means MSXML-inside-IE, 
no .NET, no Silverlight.

Best regards, Julian

------------------------------

Date: Mon, 28 May 2007 18:27:11 +0100
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "Andrew Welch" <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: 
<74a894af0705281027s585f23b5lc1948c4d33aa6b7c(_at_)mail(_dot_)gmail(_dot_)com>

On 5/28/07, Julian Reschke <julian(_dot_)reschke(_at_)gmx(_dot_)de> wrote:
David Carlisle wrote:
functionality via msxsl:node-set()[2].  Kind of a pain to work between the
two of them inside of the same transformation file, but a simple check

you can probably just use msxsl:script to define exslt:node set can't
you,and then just use the exslt version in the actual code.
I don't think I've tried that though (but I may have done, hard to
remember:-)

I just tried, and the first hurdle is that I can't define a function
called "node-set" in JScript (it's not a legal identifier). But
otherwise a cool idea :-)

Microsoft: please give us exslt:node-set in IE. Please.

There's msxsl:node-set().... used in combination with
function-available() and exslt:node-set() that should be sufficient
for what you need (if a bit of a pain)?

------------------------------

Date: Mon, 28 May 2007 11:27:09 -0600
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "M. David Peterson" <m(_dot_)david(_at_)xmlhacker(_dot_)com>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: 
<op(_dot_)ts1r3j0jgb2xtc(_at_)m-david-petersons-computer(_dot_)local>

On Mon, 28 May 2007 09:12:21 -0600, Julian Reschke 
<julian(_dot_)reschke(_at_)gmx(_dot_)de>  
wrote:

but what *I* am looking for is more power in client side XSLT

Silverlight is a client-side browser technology.  As such, this *is*  
client-side XSLT that I am referring to.

-- 
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |  
http://dev.aol.com/blog/3155

------------------------------

Date: Mon, 28 May 2007 23:04:29 -0600
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "M. David Peterson" <m(_dot_)david(_at_)xmlhacker(_dot_)com>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: 
<op(_dot_)ts2odrmrgb2xtc(_at_)m-david-petersons-computer(_dot_)local>

On Mon, 28 May 2007 08:45:25 -0600, M. David Peterson  
<m(_dot_)david(_at_)xmlhacker(_dot_)com> wrote:

Will be OOF for the rest of the morning, but when I come back I plan to  
spend some time finishing out getting this project setup and the code  
from the various projects checked-in to begin

This is now setup and the intitial code base from both Mono  
(System.Xml.XPath, System.Xml.Xsl, Mono.Xml, Mono.XPath) and the Mvp.Xml  
project (Mvp.Xml.Exslt, Mvp.Xml.Common) checked in.  This has to be  
completely rebuilt on top of XmlReader/XmlWriter so while the code is in  
place, it's going to take some work to get it to compile.  Still, it's  
worth the effort.

If you have any desire what-so-ever to get involved, please let me know.

http://www.codeplex.com/silverlitexslt

-- 
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |  
http://dev.aol.com/blog/3155

------------------------------

Date: Mon, 28 May 2007 23:08:25 -0600
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "M. David Peterson" <m(_dot_)david(_at_)xmlhacker(_dot_)com>
Subject: Re: [xsl] XSLT and XML in the same document
Message-ID: 
<op(_dot_)ts2okb0ngb2xtc(_at_)m-david-petersons-computer(_dot_)local>

On Mon, 28 May 2007 23:04:29 -0600, M. David Peterson  =

<m(_dot_)david(_at_)xmlhacker(_dot_)com> wrote:

If you have any desire what-so-ever to get involved, please let me kno=
w.

BTW... If you want to browse through the source, you can do so via  =

http://www.codeplex.com/silverlitexslt/SourceControl/DirectoryView.aspx?=
SourcePath=3D%24%2fsilverlitexslt%2fSilverlitEXSLT&changeSetId=3D3840

-- =

/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |  =

http://dev.aol.com/blog/3155

------------------------------

Date: Mon, 28 May 2007 13:25:18 +0100
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: Tony Graham <Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com>
Subject: Re: [xsl] Entities Conversion
Message-ID: <87tztx6spd(_dot_)fsf(_at_)zako(_dot_)menteithconsulting(_dot_)com>

On Sat, May 26 2007 23:39:12 +0100, Abel Braaksma wrote:
J. S. Rawat wrote:
...
DESIRED OUTPUT
&ldquo; &rdquo; &ndash; &mdash;

there's a way to get this in XSLT 2.0 using character-sets, but it is
usually not the way to go as you will invalidate your xml.

...unless your output includes (or is included as an external general
parsed entity in a document that includes) the DOCTYPE declaration for
a DTD that defines those entities.

It's generally not necessary to turn the characters back into entity
references since your XML parser will turn them back into characters
again anyway when you come to parse your XML.

About the only use that I can see for turning the characters back into
entities is if you both need to eyeball the XML and it would make more
sense to you if you saw named entity references rather than numeric
references.

If you want to, your stylesheet can import a set of XSLT 2.0 character
maps for the ISO entity sets that can be downloaded from
http://www.w3.org/2003/entities/iso8879doc/overview.html.

While DTDs sometimes map multiple different ISO entities to
the same numeric entity reference, these character maps can only
convert a character back to a single entity reference.  If you use
these character maps, you might particularly look at the mappings to
'rsquor' and 'rdquor' in the ISOpub mapping since you may want 'rsquo'
and 'rdquo' instead.

Regards,

Tony Graham.
======================================================================
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com   
http://www.menteithconsulting.com

Menteith Consulting Ltd             Registered in Ireland - No. 428599
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
----------------------------------------------------------------------
Menteith Consulting -- Understanding markup
======================================================================

------------------------------

End of xsl-list Digest
***********************************

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] REMOVE FROM MAILING LIST, JASON TREPANIER <=