Subject: Re: [xsl] [XSL] Controlling Output Based on XML Processing Instructions From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 18 Jan 2002 18:26:20 -0500 |
Dear fellow list members;
Question: Is it possible to use XML processing instructions from the source XML document to control what is included in the output tree?
Example: <xmlRoot> <parent> <child1/> <?insertStart?> <child2/> <?insertEnd?> <?deleteStart?> <child3/> </parent> </xmlRoot>
Now, since XML processing instructions are not considered part of the XML node hierarchy,
is it possible to use them in XSL to control things such as whether anything between the <?insertStart?> and <?insertEnd?> is included in the XSL output and anything between the <?deleteStart?> and <?deleteEnd?> is not included in the output?
I know that it is possible to use the processing-instruction() function to get the name and text values of the content, but it seems that it would be difficult to use this to control the output.
Has anyone done anything like this before?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl-fo: table border width in, yan bai | Thread | [xsl] NMTOKENS enumeration?, Martijn |
[xsl] xsl-fo: table border width in, yan bai | Date | Re: [xsl] NMTOKENS enumeration?, Wendell Piez |
Month |