[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: parsing entities

Subject: RE: parsing entities
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 25 Aug 2003 15:51:50 +0100
parse entities with xsl
Imaginative, but it won't work.

Entity references are expanded by the XML parser, they are never seen by
the XSLT processor. The XSLT processor cannot influence how XML entities
are expanded, by the time it gets to see the source tree, the job has
already been done.

Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of silvan
> Sent: 25 August 2003 14:19
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  parsing entities
> 
> 
> Dear List
> 
> Does anyone has an idea about how to do
> dynamic calls of external entities?
> In the xslfile i have a set of Entities defined
> which should get included according to the parsed
> xml;
> 
> <!ENTITY foo "value_foo">
> <!ENTITY bar "value_bar">
> 
> 
> the xml looks somewhat similar to;
> 
> <elem name="foo">
>  <elem_foo>blah</elem_foo>
> </elem>
> <elem name="bar">
>  <elem_bar>blah</elem_bar>
> </elem>
> 
> 
> ... and now i try to fetch the appropriate
> entities according to an element's name attribute
> 
> 
> <xsl:for-each select="elem">
>   <!--  &{@name}; -->
> </xsl:for-each>
> 
> The above obviously won't work, just shows the
> basic idea of assigning Entities depending on
> a node's attribute.
> 
> Maybe there's already a mistake in understanding...
> Any ideas etc. highly appreciated 
> 
> 
> thanx
> silvan
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • parsing entities
    • silvan - Mon, 25 Aug 2003 09:40:02 -0400 (EDT)
      • Michael Kay - Mon, 25 Aug 2003 10:50:53 -0400 (EDT) <=
        • silvan - Mon, 25 Aug 2003 15:23:29 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.